Source/WebCore: [WebKit2] Changing the cookie accept policy in Private Browsing doesn...
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2011-07-22  Jessie Berlin  <jberlin@apple.com>
2
3         [WebKit2] Changing the cookie accept policy in Private Browsing doesn’t work.
4         https://bugs.webkit.org/show_bug.cgi?id=64997
5
6         Reviewed by Ada Chan.
7
8         * WebProcess/Cookies/mac/WebCookieManagerMac.mm:
9         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
10         Set the policy on the Cookie Storage used by the Private Browsing Storage Session as well.
11         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
12         (InitWebCoreSystemInterface):
13
14 2011-07-21  Yael Aharon  <yael.aharon@nokia.com>
15
16         [Qt][WK2] Code cleanup for drag-and-drop
17         https://bugs.webkit.org/show_bug.cgi?id=64916
18
19         Reviewed by Andreas Kling.
20
21         * UIProcess/WebPageProxy.cpp:
22         (WebKit::WebPageProxy::startDrag):
23         Allow receiving a NULL bitmap from the web process.
24         
25         * UIProcess/qt/qdesktopwebpageproxy.cpp:
26         (QDesktopWebPageProxy::handleEvent):
27         Fix typo introduced in http://trac.webkit.org/changeset/90458.
28         All DnD related events should be GraphicsScene events.
29         
30         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp:
31         (WebKit::convertQPixmapToShareableBitmap):
32         Remove hack that creates a 1x1 bitmap.
33         It is no longer needed after http://trac.webkit.org/changeset/91016.
34         
35         (WebKit::WebDragClient::startDrag):
36         Allow sending a NULL bitmap to the UI process.
37
38 2011-07-20  Tim Horton  <timothy_horton@apple.com>
39
40         Scrollbar color heuristic needs to be hooked up in WebKit1
41         https://bugs.webkit.org/show_bug.cgi?id=64220
42         <rdar://problem/9589140>
43
44         Reviewed by Darin Adler.
45
46         Store the scroller style on ScrollableArea, and recompute it whenever
47         the document or body element background color changes or the base background
48         color of the scrollview changes. Also, make sure to repaint the scrollbars
49         whenever the style changes.
50
51         * WebProcess/WebPage/WebFrame.cpp:
52         (WebKit::WebFrame::getDocumentBackgroundColor):
53
54 2011-07-20  James Robinson  <jamesr@chromium.org>
55
56         Revert worker and WebKit2 runloops to use currentTime() for scheduling instead of the monotonic clock
57         https://bugs.webkit.org/show_bug.cgi?id=64841
58
59         Reviewed by Mark Rowe.
60
61         http://trac.webkit.org/changeset/91206 converted most of WebKit's deferred work scheduling to using the
62         monotonic clock instead of WTF::currentTime().  This broke many plugin tests on WebKit2 for reasons that are
63         unclear.  This reverts everything except for WebCore::ThreadTimers back to the previous behavior.
64
65         * Platform/CoreIPC/Connection.cpp:
66         (CoreIPC::Connection::waitForMessage):
67         (CoreIPC::Connection::waitForSyncReply):
68         * Platform/RunLoop.h:
69
70 2011-07-19  Ryosuke Niwa  <rniwa@webkit.org>
71
72         Build fix after r91307.
73
74         * Platform/Logging.h:
75
76 2011-07-19  Lukasz Slachciak  <lukasz.slachciak@gmail.com>
77
78         [GTK] [WK2] Implement missing initializeLogChannel function.
79         https://bugs.webkit.org/show_bug.cgi?id=63381
80
81         Reviewed by Martin Robinson.
82
83         Implemented logging for GTK platform in WebKit2 - function initializeLogChannel is called for all ports,
84         so added missing implementation. Aslo helper function added for getting channels from names.
85
86         * GNUmakefile.am: Added reference to new file LoggingGtk.cpp.
87         * Platform/Logging.cpp: Logging implementation for GTK port enabled.
88         (WebKit::getChannelFromName): Helper to connect name with WTFLogChannel.
89         * Platform/Logging.h: New helper method added.
90         * Platform/gtk/LoggingGtk.cpp: Added. GTK logging implementation.
91         (WebKit::initializeLogChannel): Channel is initialized if its name is found in WEBKIT_DEBUG.
92
93 2011-07-19  Brian Weinstein  <bweinstein@apple.com>
94
95         Add back a change that was accidentally removed in r91266.
96         
97         Make sure to retain the WKPasteboardFilePromiseOwner before calling draggedImage because draggedImage releases
98         its responder. Also make the comment more explicit, to keep this mistake from being made in the future.
99         
100         Rubber-stamped by Darin Adler.
101
102         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
103         (WebKit::WebDragClient::dragEnded):
104
105 2011-07-18  Brian Weinstein  <bweinstein@apple.com>
106
107         Speculative fix for: Crash under WebPage::platformDragEnded when dragging on Mac
108         https://bugs.webkit.org/show_bug.cgi?id=64766
109         <rdar://problem/9548174>
110
111         Reviewed by Enrica Casucci.
112
113         I was unable to reproduce this bug, but Darin Adler and I discussed the probable issue. When starting the drag, we create 
114         a WKPasteboardFilePromiseOwner, and a WKPasteboardOwner. When the drag is concluded, we call a method on the WKPasteboardFilePromiseOwner
115         which uses the WKPasteboardOwner. However, we are not guaranteeing that the WKPasteboardOwner will be around when the 
116         WKPasteboardFilePromiseOwner method is called.
117         
118         The fix is to retain both the WKPasteboardFilePromiseOwner and the WKPasteboardOwner that we need, making sure that we are keeping
119         both objects alive.
120         
121         This patch also uses r91222 to replace WebPage::platformDragEnded, so WebPage doesn't need to know about the drag source.
122
123         * WebProcess/WebCoreSupport/WebDragClient.cpp:
124         (WebKit::WebDragClient::dragEnded): Add a non-Mac stub method, since the Mac is the only platform that does something here.
125         * WebProcess/WebCoreSupport/WebDragClient.h:
126         * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
127         (WebKit::WebDragClient::declareAndWriteDragImage): Use member variables instead of local variables.
128         (WebKit::WebDragClient::dragEnded): Move code from WebPageMac::platformDragEnded to here, and clear both member variables.
129         * WebProcess/WebPage/WebPage.cpp:
130         (WebKit::WebPage::dragEnded): Don't call platformDragEnded anymore. WebCore::DragController::dragEnded calls WebDragClient::dragEnded,
131             which does the same thing.
132         * WebProcess/WebPage/WebPage.h:
133         * WebProcess/WebPage/mac/WebPageMac.mm: Remove platformDragEnded.
134
135 2011-07-18  Alexis Menard  <alexis.menard@openbossa.org>
136
137         [Qt][WK2] Make QDesktopWebView::navigationAction method usable in QML.
138         https://bugs.webkit.org/show_bug.cgi?id=64690
139
140         Make the API usable with QML by declaring what's needed
141         with the macros.
142
143         Reviewed by Benjamin Poulain.
144
145         * UIProcess/API/qt/qdesktopwebview.h:
146
147 2011-07-18  MORITA Hajime  <morrita@google.com>
148
149         [ShadowContentElement] forwarded node should be able to access its hosting content element.
150         https://bugs.webkit.org/show_bug.cgi?id=64251
151
152         Reviewed by Dimitri Glazkov.
153
154         Exported additional symbols for window.internals object.
155
156         * win/WebKit2.def:
157         * win/WebKit2CFLite.def:
158
159 2011-07-18  Dean Jackson  <dino@apple.com>
160
161         https://bugs.webkit.org/show_bug.cgi?id=64742
162         Expose WebPreferences for media playback requiring user gestures and inline playback
163
164         Reviewed by Simon Fraser.
165
166         Two new WebPreferences: MediaPlaybackRequiresUserGesture and
167         MediaPlaybackAllowsInline.
168
169         * Shared/WebPreferencesStore.h:
170         * UIProcess/API/C/WKPreferences.cpp:
171         (WKPreferencesSetMediaPlaybackRequiresUserGesture):
172         (WKPreferencesGetMediaPlaybackRequiresUserGesture):
173         (WKPreferencesSetMediaPlaybackAllowsInline):
174         (WKPreferencesGetMediaPlaybackAllowsInline):
175         * UIProcess/API/C/WKPreferencesPrivate.h:
176         * WebProcess/WebPage/WebPage.cpp:
177         (WebKit::WebPage::updatePreferences):
178
179 2011-07-18  James Robinson  <jamesr@chromium.org>
180
181         Timer scheduling should be based off the monotonic clock
182         https://bugs.webkit.org/show_bug.cgi?id=64544
183
184         Reviewed by Darin Adler.
185
186         Converts the WebKit2 RunLoop and CoreIPC timeouts to use monotonicallyIncreasingTime().
187
188         * Platform/CoreIPC/Connection.cpp:
189         (CoreIPC::Connection::waitForMessage):
190         (CoreIPC::Connection::waitForSyncReply):
191         * Platform/RunLoop.h:
192
193 2011-07-18  Anders Carlsson  <andersca@apple.com>
194
195         Make using lowercase parameter names for AppleConnect be a plug-in quirk
196         https://bugs.webkit.org/show_bug.cgi?id=64638
197
198         Reviewed by Sam Weinig.
199
200         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
201         (WebKit::NetscapePluginModule::determineQuirks):
202         Set the WantsLowercaseParameterNames quirk for the AppleConnect plug-in.
203
204         * Shared/Plugins/PluginQuirks.h:
205         Add WantsLowercaseParameterNames quirk.
206
207         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
208         (WebKit::NetscapePlugin::initialize):
209         If the plug-in has the WantsLowercaseParameterNames quirk, convert the parameter
210         names to lowercase.
211
212         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
213         (WebKit::WebFrameLoaderClient::createPlugin):
214         Remove the code that would convert the parameters here. Also remove the FIXME; plug-in quirks
215         aren't really the same thing as site-specific quirks.
216
217 2011-07-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
218
219         [Qt] Consider QTouchWebPage's transform when scrolling the viewport.
220         https://bugs.webkit.org/show_bug.cgi?id=64541
221
222         Reviewed by Benjamin Poulain.
223
224         Currently the scroll deltas are given to moveBy in page coordinates
225         which doesn't match when the page view is scalled.
226         This patch gives the scroll delta to the viewport in it's own coordinates.
227
228         * UIProcess/qt/TouchViewInterface.cpp:
229         (WebKit::TouchViewInterface::panGestureRequestScroll):
230
231 2011-07-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
232
233         [Qt] Push the new viewport rect to the drawing area after committing the scale.
234         https://bugs.webkit.org/show_bug.cgi?id=64597
235
236         Reviewed by Benjamin Poulain.
237
238         * UIProcess/qt/TouchViewInterface.cpp:
239         (WebKit::TouchViewInterface::pinchGestureEnded):
240
241 2011-07-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
242
243         [Qt] Remove the scale commit timer from QTouchWebPage.
244         https://bugs.webkit.org/show_bug.cgi?id=64600
245
246         Reviewed by Benjamin Poulain.
247
248         Since we don't currently need unprepared page view scale changes,
249         this timer isn't useful.
250
251         * UIProcess/API/qt/qtouchwebpage.cpp:
252         (QTouchWebPage::QTouchWebPage):
253         (QTouchWebPagePrivate::QTouchWebPagePrivate):
254         (QTouchWebPagePrivate::commitScaleChange):
255         * UIProcess/API/qt/qtouchwebpage.h:
256         * UIProcess/API/qt/qtouchwebpage_p.h:
257         * UIProcess/qt/TouchViewInterface.cpp:
258         (WebKit::TouchViewInterface::pinchGestureStarted):
259
260 2011-07-15  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
261
262         TiledDrawingArea: map the visibleArea rect from page to tiles coordinates.
263         https://bugs.webkit.org/show_bug.cgi?id=64538
264
265         Reviewed by Benjamin Poulain.
266
267         TiledDrawingAreaProxy expects its coordinates to be scaled according to
268         contentsScale. This patch keep the pushed visibleArea as page coordinates
269         and convert it each time to scaled coordinates in case the contents scale was
270         changed afterward.
271         This is a regression introduced in r90750.
272         Also:
273         - Rename visibleArea to visibleContentRect
274         - Remove an unnecessary mapToContents in QTouchWebPageProxy::setVisibleContentRect
275
276         * UIProcess/API/qt/qtouchwebpage.cpp:
277         (QTouchWebPagePrivate::setViewportRect):
278         * UIProcess/TiledDrawingAreaProxy.cpp:
279         (WebKit::TiledDrawingAreaProxy::invalidate):
280         (WebKit::TiledDrawingAreaProxy::setVisibleContentRect):
281         (WebKit::TiledDrawingAreaProxy::createTiles):
282         (WebKit::TiledDrawingAreaProxy::visibleRect):
283         * UIProcess/TiledDrawingAreaProxy.h:
284         * UIProcess/qt/qtouchwebpageproxy.cpp:
285         (QTouchWebPageProxy::setVisibleContentRect):
286         * UIProcess/qt/qtouchwebpageproxy.h:
287
288 2011-07-17  Amruth Raj  <amruthraj@motorola.com>
289
290         [GTK] Fix selection of elements in a multi select list and remove an unnecessary include in WorkQueue
291         https://bugs.webkit.org/show_bug.cgi?id=64666
292
293         Reviewed by Martin Robinson.
294
295         * Platform/gtk/WorkQueueGtk.cpp: Remove an include which is no longer required
296         * Shared/gtk/WebEventFactory.cpp:
297         (WebKit::modifiersForEvent): Fix an incorrect ASSERT statement
298         (WebKit::WebEventFactory::createWebMouseEvent): Call the function to determine the modifier keys
299
300 2011-07-17  Lukasz Slachciak  <l.slachciak@samsung.com>
301
302         Reviewed by Martin Robinson.
303
304          [GTK] [WK2] Fix for getting editor client commands.
305          https://bugs.webkit.org/show_bug.cgi?id=63081
306
307          Editor client commands intepretation was incorrect. It was based on the NativeWebKeyboardEvent only.
308          In fact EventHandler is generating interpreted events - keypress and keydown. These event types
309          are now passed from UIProcess to WebProcess so KeyBindingTranslator can correctly find editor commands.
310          Also build break for Debug build was fixed.
311
312         * UIProcess/API/gtk/PageClientImpl.cpp: KeyboardEvent type is used for KeyBindingTranslator.
313         (WebKit::PageClientImpl::getEditorCommandsForKeyEvent): getEditorCommandsForKeyEvent now has additional
314         parameter describing KeyboardEvent type.
315         * UIProcess/API/gtk/PageClientImpl.h:
316         * UIProcess/PageClient.h:
317         * UIProcess/WebPageProxy.h:
318         * UIProcess/WebPageProxy.messages.in:
319         * UIProcess/gtk/WebPageProxyGtk.cpp:
320         (WebKit::WebPageProxy::getEditorCommandsForKeyEvent): KeyboardEvent type passed to PageClient.
321         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
322         (WebKit::WebEditorClient::getEditorCommandsForKeyEvent): Sync message send with KeyboardEvent type.
323
324 2011-07-16  Daniel Bates  <dbates@webkit.org>
325
326         Fix Win Cairo Debug build after <http://trac.webkit.org/changeset/91085>.
327
328         Add stub implementation of scale factor overloaded ShareableBitmap::paint() for
329         Cairo WebKit2 port after its usage in changeset <http://trac.webkit.org/changeset/91085>.
330
331         Also add stub implementation for GTK.
332
333         We'll need to actually implement this. See <https://bugs.webkit.org/show_bug.cgi?id=64664>
334         and <https://bugs.webkit.org/show_bug.cgi?id=64665> for Cairo and GTK, respectively.
335
336         * Shared/cairo/ShareableBitmapCairo.cpp:
337         (WebKit::ShareableBitmap::paint): Added scale-factor variant.
338         * Shared/gtk/ShareableBitmapGtk.cpp:
339         (WebKit::ShareableBitmap::paint): Added scale-factor variant.
340
341 2011-07-16  Daniel Bates  <dbates@webkit.org>
342
343         Fix Qt Linux Release build after changeset <http://trac.webkit.org/changeset/91085>
344         (https://bugs.webkit.org/show_bug.cgi?id=64611).
345
346         Stub out scale factor-variant implementation of ShareableBitmap::paint().
347         We'll need to implement this. See <https://bugs.webkit.org/show_bug.cgi?id=64663>
348         for more details.
349
350         * Shared/qt/ShareableBitmapQt.cpp:
351         (WebKit::ShareableBitmap::paint): Added scale-factor variant.
352
353 2011-07-16  Simon Fraser  <simon.fraser@apple.com>
354
355         Add code to attempt to align compositing layers to pixel boundaries when page scale changes
356         https://bugs.webkit.org/show_bug.cgi?id=64658
357
358         Reviewed by Dan Bernstein.
359         
360         Removed implementation of pageScaleFactor() now that GraphicsLayerClient has
361         a default implementation.
362
363         * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
364         * WebProcess/WebPage/ca/LayerTreeHostCA.h:
365
366 2011-07-16  Daniel Bates  <dbates@webkit.org>
367
368         Attempt to fix the Qt Linux Release build after changeset <http://trac.webkit.org/changeset/91097>
369         (https://bugs.webkit.org/show_bug.cgi?id=64615).
370
371         * UIProcess/qt/QtWebPageProxy.cpp:
372         (QtWebPageProxy::setCursorHiddenUntilMouseMoves): Added stub method.
373         * UIProcess/qt/QtWebPageProxy.h:
374
375 2011-07-15  Pratik Solanki  <psolanki@apple.com>
376
377         Part of https://bugs.webkit.org/show_bug.cgi?id=63674
378         Get webkit to compile with USE(CFNETWORK) enabled on Mac
379
380         Reviewed by David Kilzer.
381
382         New WebKitSystemInterface functions for CFNetwork-based loader.
383
384         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
385         (InitWebCoreSystemInterface):
386
387 2011-07-15  Tim Horton  <timothy_horton@apple.com>
388
389         Overlay scrollbars in overflow areas no longer pulse when revealed
390         https://bugs.webkit.org/show_bug.cgi?id=64606
391         <rdar://problem/9390674>
392
393         Reviewed by Simon Fraser.
394
395         Ensure that the state of the scrollbar implementation is kept in sync
396         with WebCore's internal representation. Previously, we synchronized them
397         at paint time, causing pulsing to be skipped due to the scrollbars being
398         disabled.
399
400         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
401         (InitWebCoreSystemInterface):
402
403 2011-07-15  Simon Fraser  <simon.fraser@apple.com>
404
405         Have GraphicsLayer pull their contentsScale, rather than pushing it onto them
406         https://bugs.webkit.org/show_bug.cgi?id=64643
407
408         Reviewed by Darin Adler.
409         
410         Impement new GraphicsLayerClient methods related to contents scale,
411         and don't push the scale.
412
413         * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
414         (WebKit::LayerTreeHostCA::initialize):
415         (WebKit::LayerTreeHostCA::backingScaleFactor):
416         (WebKit::LayerTreeHostCA::pageScaleFactor):
417         (WebKit::LayerTreeHostCA::createPageOverlayLayer):
418         * WebProcess/WebPage/ca/LayerTreeHostCA.h:
419         (WebKit::LayerTreeHostCA::didCommitChangesForLayer):
420
421 2011-07-15  Ada Chan  <adachan@apple.com>
422
423         Implement "Jump to Selection" in WebKit2
424         https://bugs.webkit.org/show_bug.cgi?id=64569
425
426         Reviewed by Anders Carlsson.
427
428         * UIProcess/API/mac/WKView.mm:
429         (-[WKView centerSelectionInVisibleArea:]): Call WebPageProxy::centerSelectionInVisibleArea().
430         (-[WKView validateUserInterfaceItem:]): Enable the centerSelectionInVisibleArea: selector if there's a selection
431         range or if there's an insertion point in an editable area.
432         * WebProcess/WebPage/FindController.cpp:
433         (WebKit::FindController::showFindIndicatorInSelection): Call updateFindIndicator() to show the find indicator.
434         * WebProcess/WebPage/FindController.h:
435         * WebProcess/WebPage/WebPage.cpp:
436         (WebKit::WebPage::centerSelectionInVisibleArea): Use the selection in the focused or main frame.
437         After scrolling the selection into view, flash the find indicator.
438
439 2011-07-15  Dan Bernstein  <mitz@apple.com>
440
441         Windows build fix.
442
443         * UIProcess/win/WebView.cpp:
444
445 2011-07-15  Dan Bernstein  <mitz@apple.com>
446
447         Windows build fix.
448
449         * UIProcess/win/WebView.h:
450
451 2011-07-15  Dan Bernstein  <mitz@apple.com>
452
453         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
454         https://bugs.webkit.org/show_bug.cgi?id=64615
455
456         Reviewed by Anders Carlsson.
457
458         * UIProcess/API/efl/PageClientImpl.cpp:
459         (WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): Added this stub.
460         * UIProcess/API/efl/PageClientImpl.h:
461         * UIProcess/API/gtk/PageClientImpl.cpp:
462         (WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): Ditto.
463         * UIProcess/API/gtk/PageClientImpl.h:
464         * UIProcess/API/mac/PageClientImpl.h:
465         * UIProcess/API/mac/PageClientImpl.mm:
466         (WebKit::PageClientImpl::setCursorHiddenUntilMouseMoves): Added. Calls +[NSCursor setHiddenUntilMouseMoves:].
467         * UIProcess/PageClient.h:
468         * UIProcess/WebPageProxy.cpp:
469         (WebKit::WebPageProxy::setCursorHiddenUntilMouseMoves): Added. Calls through to the PageClient.
470         * UIProcess/WebPageProxy.h:
471         * UIProcess/WebPageProxy.messages.in: Added SetCursorHiddenUntilMouseMoves message.
472         * UIProcess/win/WebView.cpp:
473         (WebKit::WebView::setCursorHiddenUntilMouseMoves): Added this stub.
474         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
475         (WebKit::WebChromeClient::setCursorHiddenUntilMouseMoves): Added. Sends SetCursorHiddenUntilMouseMoves message
476         to the page proxy.
477         * WebProcess/WebCoreSupport/WebChromeClient.h:
478
479 2011-07-14  Gavin Barraclough  <barraclough@apple.com>
480
481         https://bugs.webkit.org/show_bug.cgi?id=64250
482         Global strict mode function leaking global object as "this".
483
484         Reviewed by Oliver Hunt.
485
486         * WebProcess/Plugins/Netscape/NPJSObject.cpp:
487         (WebKit::NPJSObject::invoke):
488             - Change call to pass DOM Window shell, instead of the global varaible object.
489
490 2011-07-15  Anders Carlsson  <andersca@apple.com>
491
492         Find indicator should take scale factor into account
493         https://bugs.webkit.org/show_bug.cgi?id=64611
494         <rdar://problem/9761020>
495
496         Reviewed by Sam Weinig.
497
498         * UIProcess/FindIndicator.cpp:
499         (WebKit::FindIndicator::create):
500         (WebKit::FindIndicator::FindIndicator):
501         Keep track of the scale factor of the find indicator bitmap.
502
503         (WebKit::FindIndicator::draw):
504         Pass the scale factor to ShareableBitmap::draw.
505
506         * UIProcess/FindIndicator.h:
507         Add scale factor member variable.
508
509         * UIProcess/WebPageProxy.cpp:
510         (WebKit::WebPageProxy::setFindIndicator):
511         This now takes the content image scale factor.
512
513         * UIProcess/WebPageProxy.messages.in:
514         Add the scale factor.
515
516         * WebProcess/WebPage/FindController.cpp:
517         (WebKit::FindController::updateFindIndicator):
518         Size the backing store correctly, and apply the scale factor to
519         the graphics context.
520
521         (WebKit::FindController::hideFindIndicator):
522         Pass the scale factor along.
523
524 2011-07-15  Martin Robinson  <mrobinson@igalia.com>
525
526         Build fixes for WebKit2. Ensure that all generated sources are
527         on nodist primaries, that they are on forward declared variables
528         so that BUILT_SOURCES is calculated properly and that zlib is 
529         included during linking (for WOFF support).
530
531         * GNUmakefile.am:
532
533 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
534
535         Upstream QtWebKit/N9 changes related to visibleContentRect
536         https://bugs.webkit.org/show_bug.cgi?id=64589
537
538         Reviewed by Simon Hausmann.
539
540         Rename setActualVisibleContentRect to setFixedVisibleContentRect
541         as that makes it more obvious that it is an override. It is also
542         consistent with the setFixedLayout which is often used in
543         conjunction with it.
544
545         * UIProcess/WebPageProxy.cpp:
546         (WebKit::WebPageProxy::setFixedVisibleContentRect):
547         * UIProcess/WebPageProxy.h:
548         * UIProcess/qt/qtouchwebpageproxy.cpp:
549         (QTouchWebPageProxy::setVisibleArea):
550         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
551         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
552         Only set fixedVisibleContentRect for the mainframe.
553         * WebProcess/WebPage/WebPage.cpp:
554         (WebKit::WebPage::setFixedVisibleContentRect):
555         * WebProcess/WebPage/WebPage.h:
556         * WebProcess/WebPage/WebPage.messages.in:
557
558 2011-07-15  Carlos Garcia Campos  <cgarcia@igalia.com>
559
560         Reviewed by Martin Robinson.
561
562         [GTK] Install a custom X error handler in plugin process
563         https://bugs.webkit.org/show_bug.cgi?id=63248
564
565         Some plugins, specially flash, can cause X errors that when
566         handled by the default X error handler (or the GDK one) abort the
567         process. Since we don't want to crash due to buggy plugins, we
568         install a custom error handler to show a warning when a X error
569         happens without aborting.
570
571         * PluginProcess/gtk/PluginProcessMainGtk.cpp:
572         (WebKit::webkitgtkXError):
573         (WebKit::PluginProcessMainGtk):
574
575 2011-07-14  Carlos Garcia Campos  <cgarcia@igalia.com>
576
577         Reviewed by Anders Carlsson.
578
579         [UNIX] Allow sending null handles in messages
580         https://bugs.webkit.org/show_bug.cgi?id=60621
581
582         Only valid file descriptors are now sent using sendmsg() control
583         messages, and instead of sending a list of attachment sizes we now
584         send a list of AttachmentInfo structs. AttachmentInfo contains
585         information about the attachments including the size for
586         MappedMemory attachmens and whether the attachment is null or not.
587
588         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
589         (CoreIPC::AttachmentInfo::AttachmentInfo): New class containing
590         information about the attachments sent.
591         (CoreIPC::AttachmentInfo::setType): Set the attachment type.
592         (CoreIPC::AttachmentInfo::getType): Return the attachment type.
593         (CoreIPC::AttachmentInfo::setSize): Set the size for MappedMemory attachments.
594         (CoreIPC::AttachmentInfo::getSize): Get the size for MappedMemory attachments.
595         (CoreIPC::AttachmentInfo::setNull): Set attachment as null, it
596         contains an invalid file descriptor, so the receiver shouldn't
597         expect a file desriptor for this attachment.
598         (CoreIPC::AttachmentInfo::isNull): Return whether attachment is
599         null, it contains an invalid file descriptor.
600         (CoreIPC::Connection::processMessage):
601         (CoreIPC::Connection::sendOutgoingMessage):
602
603 2011-07-14  Carlos Garcia Campos  <cgarcia@igalia.com>
604
605         Reviewed by Martin Robinson.
606
607         [GTK] Implement Plugin Process
608         https://bugs.webkit.org/show_bug.cgi?id=60546
609
610         * GNUmakefile.am: Add new files to compilation.
611         * PluginProcess/gtk/PluginProcessMainGtk.cpp: Added.
612         (WebKit::PluginProcessMainGtk):
613         * PluginProcess/gtk/PluginProcessMainGtk.h: Added.
614         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
615         (WebKit::ProcessLauncher::launchProcess):
616         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
617         (WebKit::moduleMixesGtkSymbols):
618         * gtk/PluginMainGtk.cpp: Added.
619         (main):
620
621 2011-07-14  Balazs Kelemen  <kbalazs@webkit.org> and Carlos Garcia Campos  <cgarcia@igalia.com>
622
623         Reviewed by Anders Carlsson.
624
625         Implement plugin process for UNIX platform
626         https://bugs.webkit.org/show_bug.cgi?id=60629
627
628         * Platform/CoreIPC/Attachment.h:
629         * Platform/CoreIPC/unix/AttachmentUnix.cpp:
630         (CoreIPC::Attachment::Attachment): Add the ability to pass a
631         socket via Attachment.
632         * Platform/unix/SharedMemoryUnix.cpp:
633         (WebKit::SharedMemory::Handle::encode): Remove assertions that
634         check that the Handle is not null. In
635         PluginProxy::geometryDidChange we pass a null Handle if we do not
636         need to allocate a new backing store.
637         (WebKit::SharedMemory::Handle::releaseToAttachment): Ditto.
638         * PluginProcess/PluginProcess.cpp:
639         (WebKit::PluginProcess::createWebProcessConnection): Use
640         Attachment. Set up the connection with socketpair.
641         * UIProcess/Plugins/PluginProcessProxy.cpp:
642         (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
643         (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
644         * UIProcess/Plugins/PluginProcessProxy.h:
645         * UIProcess/Plugins/PluginProcessProxy.messages.in:
646         * UIProcess/WebProcessProxy.messages.in:
647         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
648         (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
649         Use Attachment to pass the connection.
650
651 2011-07-14  Ada Chan  <adachan@apple.com>
652
653         Implement support to center selection on a page for WebKit2.
654         https://bugs.webkit.org/show_bug.cgi?id=64481
655
656         Reviewed by Anders Carlsson.
657
658         * UIProcess/API/C/WKPage.cpp:
659         (WKPageCenterSelectionInVisibleArea): Added.  Call WebPageProxy::centerSelectionInVisibleArea().
660         * UIProcess/API/C/WKPage.h:
661         * UIProcess/WebPageProxy.cpp:
662         (WebKit::WebPageProxy::centerSelectionInVisibleArea): Send message to the WebProcess to center selection.
663         * UIProcess/WebPageProxy.h:
664         * WebProcess/WebPage/WebPage.cpp:
665         (WebKit::WebPage::centerSelectionInVisibleArea): Get the FrameSelection from the main frame and call
666         revealSelection() to center it.
667         * WebProcess/WebPage/WebPage.h:
668         * WebProcess/WebPage/WebPage.messages.in: Add the CenterSelectionInVisibleArea message.
669
670 2011-07-14  MORITA Hajime  <morrita@google.com>
671
672         Unreviewed, rolling out r90976, r90981, and r90985.
673         http://trac.webkit.org/changeset/90976
674         http://trac.webkit.org/changeset/90981
675         http://trac.webkit.org/changeset/90985
676         https://bugs.webkit.org/show_bug.cgi?id=64251
677
678         build break
679
680         * win/WebKit2.def:
681         * win/WebKit2CFLite.def:
682
683 2011-07-13  MORITA Hajime <morrita@google.com>
684
685         Unreviewed attempt at a build fix.
686
687         * win/WebKit2CFLite.def:
688
689 2011-07-13  MORITA Hajime  <morrita@google.com>
690
691         [ShadowContentElement] forwarded node should be able to access its hosting content element.
692         https://bugs.webkit.org/show_bug.cgi?id=64251
693
694         Reviewed by Dimitri Glazkov.
695
696         Exported additional symbols for window.internals object.
697         
698         * win/WebKit2.def:
699
700 2011-07-13  David Levin  <levin@chromium.org>
701
702         Possible race condition in ThreadIdentifierData::initializeKeyOnce and shouldCallRealDebugger.
703         https://bugs.webkit.org/show_bug.cgi?id=64465
704
705         Reviewed by Dmitry Titov.
706
707         There isn't a good way to test this as it is very highly unlikely to occur.
708
709         * PluginProcess/mac/PluginProcessMac.mm:
710         (WebKit::shouldCallRealDebugger): :Since scoped static initialization
711         isn't thread-safe, change the initialization to be global.
712
713 2011-07-13  Andreas Kling  <kling@webkit.org>
714
715         [Qt][WK2] Remove invalid signal/slot connection in QTouchWebView.
716         https://bugs.webkit.org/show_bug.cgi?id=64450
717
718         Reviewed by Benjamin Poulain.
719
720         The focusNextPrevChild() signal was removed, so we shouldn't try to
721         connect to it.
722
723         * UIProcess/API/qt/qtouchwebpage.cpp:
724         (QTouchWebPagePrivate::setPage):
725
726 2011-07-13  Andreas Kling  <kling@webkit.org>
727
728         [Qt][WK2] Undelayed WorkItems are leaked after execution.
729         https://bugs.webkit.org/show_bug.cgi?id=64447
730
731         Reviewed by Benjamin Poulain.
732
733         * Platform/qt/WorkQueueQt.cpp:
734         (WorkQueue::WorkItemQt::executeAndDelete):
735         (WorkQueue::WorkItemQt::timerEvent):
736         (WorkQueue::scheduleWork):
737
738 2011-07-12  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
739
740         [Qt] Also stop the scale commit timer when commitScaleChange is called explicitly.
741         https://bugs.webkit.org/show_bug.cgi?id=64357
742
743         Reviewed by Benjamin Poulain.
744
745         * UIProcess/API/qt/qtouchwebpage.cpp:
746         (QTouchWebPage::timerEvent):
747         (QTouchWebPagePrivate::commitScaleChange):
748
749 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
750
751         ApplicationCache update should not immediately fail when reaching per-origin quota
752         https://bugs.webkit.org/show_bug.cgi?id=64177
753
754         Reviewed by Alexey Proskuryakov.
755
756         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
757         (WebKit::WebChromeClient::reachedApplicationCacheOriginQuota):
758         * WebProcess/WebCoreSupport/WebChromeClient.h:
759
760 2011-06-22  Jer Noble  <jer.noble@apple.com>
761
762         Full-screen: Don't change the collectionBehavior of the WebView's NSWindow if not necessary
763         https://bugs.webkit.org/show_bug.cgi?id=63217
764         <rdar://problem/9660291>
765
766         Reviewed by Darin Adler.
767
768         Check to see if the NSWindow hosting the WebView is not on the active space before changing the window's
769         collectionBehavior.
770
771         * UIProcess/mac/WKFullScreenWindowController.mm:
772         (-[WKFullScreenWindowController beganExitFullScreenAnimation]):
773
774 2011-07-12  Andreas Kling  <kling@webkit.org>
775
776         [Qt][WK2] Navigation actions in incorrect state when loadStarted() is emitted.
777         https://bugs.webkit.org/show_bug.cgi?id=64383
778
779         Reviewed by Kenneth Rohde Christiansen.
780
781         Update the navigation actions before emitting loadStarted().
782
783         * UIProcess/API/qt/tests/qdesktopwebview/tst_qdesktopwebview.cpp:
784         (LoadStartedCatcher::LoadStartedCatcher):
785         (LoadStartedCatcher::onLoadStarted):
786         (tst_QDesktopWebView::stopActionEnabledAfterLoadStarted):
787         * UIProcess/qt/ClientImpl.cpp:
788         (qt_wk_didStartProvisionalLoadForFrame):
789
790 2011-07-12  Benjamin Poulain  <benjamin@webkit.org>
791
792         [Qt][WK2] Add a basic Pinch gesture recognizer for WebKit2
793         https://bugs.webkit.org/show_bug.cgi?id=64373
794
795         Reviewed by Andreas Kling.
796
797         This patch adds QtPinchGestureRecognizer to recognize pinch gesture out of
798         the events not handled by the WebProcess.
799
800         TouchViewInterface::pinchGestureRequestScale() has a basic default implementation
801         so the feature can be tested manually.
802
803         * UIProcess/qt/QtGestureRecognizer.cpp:
804         QtGestureRecognizer is the private base class for both gesture recognizer
805         in order to be able to share some code.
806         (WebKit::QtGestureRecognizer::QtGestureRecognizer):
807         (WebKit::QtGestureRecognizer::reset):
808         * UIProcess/qt/QtGestureRecognizer.h:
809         * UIProcess/qt/QtPanGestureRecognizer.cpp:
810         (WebKit::QtPanGestureRecognizer::QtPanGestureRecognizer):
811         (WebKit::QtPanGestureRecognizer::reset):
812         * UIProcess/qt/QtPanGestureRecognizer.h:
813         * UIProcess/qt/QtPinchGestureRecognizer.cpp: Added.
814         (WebKit::findTouchPointIndex):
815         (WebKit::computeTouchCenter):
816         (WebKit::QtPinchGestureRecognizer::QtPinchGestureRecognizer):
817         (WebKit::QtPinchGestureRecognizer::recognize):
818         (WebKit::QtPinchGestureRecognizer::reset):
819         (WebKit::QtPinchGestureRecognizer::initializeGesture):
820         * UIProcess/qt/QtPinchGestureRecognizer.h: Copied from Source/WebKit2/UIProcess/qt/QtPanGestureRecognizer.h.
821         (WebKit::QtPinchGestureRecognizer::TouchPointInformation::TouchPointInformation):
822         (WebKit::QtPinchGestureRecognizer::TouchPointInformation::isValid):
823         * UIProcess/qt/TouchViewInterface.cpp:
824         (WebKit::TouchViewInterface::TouchViewInterface):
825         (WebKit::TouchViewInterface::pinchGestureStarted):
826         (WebKit::TouchViewInterface::pinchGestureRequestScale):
827         The scale factor reported by the recognizer to the TouchViewInterface is the total scale since the start
828         of the gesture in order to avoid numerical instabilities.
829         (WebKit::TouchViewInterface::pinchGestureEnded):
830         * UIProcess/qt/TouchViewInterface.h:
831         * UIProcess/qt/qtouchwebpageproxy.cpp:
832         (QTouchWebPageProxy::QTouchWebPageProxy):
833         (QTouchWebPageProxy::processDidCrash):
834         (QTouchWebPageProxy::doneWithTouchEvent):
835         * UIProcess/qt/qtouchwebpageproxy.h:
836         * WebKit2.pro:
837
838 2011-07-12  Andreas Kling  <kling@webkit.org>
839
840         [Qt][WK2] Navigation actions should react to web process availability.
841         https://bugs.webkit.org/show_bug.cgi?id=64375
842
843         Reviewed by Benjamin Poulain.
844
845         When the web process is unavailable, the reload and stop actions should
846         behave slightly differently. Stop should always be disabled, and reload
847         should be enabled if there's a reloadable item in the back/forward list.
848
849         * UIProcess/API/qt/tests/qdesktopwebview/tst_qdesktopwebview.cpp:
850         (tst_QDesktopWebView::navigationActionEnabledStatusAtStartup):
851         * UIProcess/API/qt/tests/qtouchwebview/tst_qtouchwebview.cpp:
852         (tst_QTouchWebView::navigationActionEnabledStatusAtStartup):
853         * UIProcess/qt/QtWebPageProxy.cpp:
854         (QtWebPageProxy::updateAction):
855         (QtWebPageProxy::didRelaunchProcess):
856         (QtWebPageProxy::processDidCrash):
857
858 2011-07-12  Andreas Kling  <kling@webkit.org>
859
860         [Qt][WK2] QDesktopWebView crashes if resized without web process.
861         https://bugs.webkit.org/show_bug.cgi?id=64371
862
863         Reviewed by Benjamin Poulain.
864
865         * UIProcess/qt/QtWebPageProxy.cpp:
866         (QtWebPageProxy::paint): Remove an invalid assertion. The drawing
867         area may be null if the web process has crashed.
868         (QtWebPageProxy::setDrawingAreaSize): Fail silently if there is no
869         drawing area.
870
871 2011-07-12  Andreas Kling  <kling@webkit.org>
872
873         [Qt][WK2] Add informative loadFailed() signal to web views.
874         https://bugs.webkit.org/show_bug.cgi?id=64362
875
876         Reviewed by Benjamin Poulain.
877
878         The web views will now emit loadFailed(QWebError) when a load failure occurs.
879
880         The QWebError object currently contains:
881         - Type of failure (whether it's an engine, network or protocol error.)
882         - The failing URL.
883         - Any error code associated with the failure.
884
885         * UIProcess/API/qt/qdesktopwebview.cpp:
886         (QDesktopWebViewPrivate::loadDidFail):
887         * UIProcess/API/qt/qdesktopwebview.h:
888         * UIProcess/API/qt/qdesktopwebview_p.h:
889         * UIProcess/API/qt/qtouchwebpage.h:
890         * UIProcess/API/qt/qweberror.cpp: Added.
891         (QWebError::QWebError):
892         (QWebErrorPrivate::createQWebError):
893         (QWebErrorPrivate::QWebErrorPrivate):
894         (QWebErrorPrivate::~QWebErrorPrivate):
895         (QWebError::type):
896         (QWebError::errorCode):
897         (QWebError::url):
898         * UIProcess/API/qt/qweberror.h: Added.
899         * UIProcess/API/qt/qweberror_p.h: Added.
900         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
901         (tst_CommonViewTests::loadNonexistentFileUrl):
902         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
903         (WebViewAbstraction::WebViewAbstraction):
904         (WebViewAbstraction::touchViewLoadFailed):
905         (WebViewAbstraction::desktopViewLoadFailed):
906         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
907         * UIProcess/qt/ClientImpl.cpp:
908         (dispatchLoadSucceeded):
909         (dispatchLoadFailed):
910         (qt_wk_didFailProvisionalLoadWithErrorForFrame):
911         (qt_wk_didFinishLoadForFrame):
912         (qt_wk_didFailLoadWithErrorForFrame):
913         * UIProcess/qt/QtWebPageProxy.cpp:
914         (QtWebPageProxy::loadDidFail):
915         * UIProcess/qt/QtWebPageProxy.h:
916         * UIProcess/qt/TouchViewInterface.cpp:
917         (WebKit::TouchViewInterface::loadDidFail):
918         * UIProcess/qt/TouchViewInterface.h:
919         * UIProcess/qt/ViewInterface.h:
920         * WebKit2API.pri:
921
922 2011-07-12  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
923
924         [Qt] Forward the touch view scale changes to the tiled drawing area.
925         https://bugs.webkit.org/show_bug.cgi?id=64357
926
927         Reviewed by Kenneth Rohde Christiansen.
928
929         The drawing area needs to know the new scale to render tiles accordingly.
930
931         * UIProcess/API/qt/qtouchwebpage.cpp:
932         (QTouchWebPagePrivate::commitScaleChange):
933         * UIProcess/qt/qtouchwebpageproxy.cpp:
934         (QTouchWebPageProxy::setContentsScale):
935         * UIProcess/qt/qtouchwebpageproxy.h:
936         (QTouchWebPageProxy::drawingArea):
937
938 2011-07-12  Adam Roben  <aroben@apple.com>
939
940         Export some symbols needed by TestWebKitAPI
941
942         Part of <http://webkit.org/b/63330> Concatenating string literals and WTF::Strings using
943         operator+ is suboptimal
944
945         Reviewed by Darin Adler.
946
947         * win/WebKit2.def:
948
949 2011-07-11  Hironori Bono  <hbono@chromium.org>
950
951         Reviewed by Adam Roben.
952
953         Implement layoutTestController.setTextDirection for WebKit2 and Windows.
954         https://bugs.webkit.org/show_bug.cgi?id=61931
955
956         This change implements layoutTextController.setTextDirection for WebKit2
957         and Windows so we can run a layout test added by r87770 on them. Each
958         implementation adds a wrapper function for Editor::setBaseWritingDirection()
959         so LayoutTestController can call it.
960
961         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: Added
962         WKBundleFrameSetTextDirection to allow LayoutTestController to change the
963         text direction.
964         (WKBundleFrameSetTextDirection):
965         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: ditto.
966         * WebProcess/WebPage/WebFrame.cpp: Added setTextDirection to allow
967         WKBundleFrame to change the text direction.
968         (WebKit::WebFrame::setTextDirection):
969         * WebProcess/WebPage/WebFrame.h: ditto.
970
971 2011-07-11  Benjamin Poulain  <benjamin@webkit.org>
972
973         [Qt][WK2] Get rid of focusNextPrevChild()
974         https://bugs.webkit.org/show_bug.cgi?id=64289
975
976         Reviewed by Andreas Kling.
977
978         Qt 5 does not use focusNextPrevChild() but uses setFocusNavigation(), and
979         the focus is not based on QWidget.
980
981         We can get rid of the method since the new implementation will be totally
982         different.
983
984         * UIProcess/API/qt/qtouchwebpage.cpp:
985         * UIProcess/API/qt/qtouchwebpage.h:
986         * UIProcess/qt/ClientImpl.cpp:
987         (qt_wk_takeFocus):
988         * UIProcess/qt/QtWebPageProxy.h:
989
990 2011-07-11  Anders Carlsson  <andersca@apple.com>
991
992         Implement getFormValue for WebKit2
993         https://bugs.webkit.org/show_bug.cgi?id=64294
994         <rdar://problem/3964087>
995
996         Reviewed by Kevin Decker.
997
998         * PluginProcess/PluginControllerProxy.cpp:
999         (WebKit::PluginControllerProxy::getFormValue):
1000         Call Plugin::getFormValue.
1001
1002         * PluginProcess/PluginControllerProxy.messages.in:
1003         Add new GetFormValue message.
1004
1005         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1006         (WebKit::NetscapePlugin::getFormValue):
1007         Get the form value and convert it to a String.
1008
1009         * WebProcess/Plugins/Plugin.h:
1010         Add getFormValue pure virtual member function.
1011
1012         * WebProcess/Plugins/PluginProxy.cpp:
1013         (WebKit::PluginProxy::getFormValue):
1014         Send a GetFormValue message to the plug-in process.
1015
1016         * WebProcess/Plugins/PluginView.cpp:
1017         (WebKit::PluginView::getFormValue):
1018         Call Plugin::getFormValue.
1019
1020 2011-07-11  Ada Chan  <adachan@apple.com>
1021
1022         The original request should be accessible from WebNavigationData.
1023         https://bugs.webkit.org/show_bug.cgi?id=64227
1024
1025         Reviewed by Anders Carlsson.
1026
1027         * Shared/WebNavigationDataStore.h:
1028         (WebKit::WebNavigationDataStore::encode): Handle the encoding of the original request.
1029         (WebKit::WebNavigationDataStore::decode): Handle the decoding of the original request.
1030         * UIProcess/API/C/WKNavigationData.cpp:
1031         (WKNavigationDataCopyOriginalRequest): 
1032         * UIProcess/API/C/WKNavigationData.h:
1033         * UIProcess/WebNavigationData.h:
1034         (WebKit::WebNavigationData::originalRequest):
1035         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1036         (WebKit::WebFrameLoaderClient::updateGlobalHistory): Store the original request in the WebNavigationDataStore.
1037
1038 2011-07-11  Benjamin Poulain  <benjamin@webkit.org>
1039
1040         [Qt][WK2] Forward the viewport visible area from the view instead of inferring it from the TiledDrawingAreaProxy
1041         https://bugs.webkit.org/show_bug.cgi?id=64275
1042
1043         Reviewed by Simon Hausmann.
1044
1045         This patch refactors the way the viewport visible area is handled.
1046         Previously, the TiledDrawingAreaProxy would ask for the visible rect
1047         when painting or updating. This is reversed with this patch, and the viewport
1048         informs the page of any change in the view area.
1049
1050         With this change, the TiledDrawingAreaProxy does not need to know about QTouchWebPage,
1051         and can use the TouchViewInterface directly.
1052
1053         * UIProcess/API/qt/qtouchwebpage.cpp:
1054         (QTouchWebPagePrivate::setViewportRect):
1055         * UIProcess/API/qt/qtouchwebpage.h:
1056         * UIProcess/API/qt/qtouchwebpage_p.h:
1057         * UIProcess/API/qt/qtouchwebview.cpp:
1058         (QTouchWebViewPrivate::scroll):
1059         (QTouchWebViewPrivate::viewportRectUpdated):
1060         (QTouchWebView::resizeEvent):
1061         * UIProcess/API/qt/qtouchwebview.h:
1062         * UIProcess/API/qt/qtouchwebview_p.h:
1063         * UIProcess/PageClient.h:
1064         * UIProcess/TiledDrawingAreaProxy.cpp:
1065         (WebKit::TiledDrawingAreaProxy::invalidate):
1066         (WebKit::TiledDrawingAreaProxy::paint):
1067         (WebKit::TiledDrawingAreaProxy::setVisibleArea):
1068         (WebKit::TiledDrawingAreaProxy::createTiles):
1069         * UIProcess/TiledDrawingAreaProxy.h:
1070         * UIProcess/WebPageProxy.h:
1071         * UIProcess/qt/QtWebPageProxy.cpp:
1072         * UIProcess/qt/QtWebPageProxy.h:
1073         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
1074         (WebKit::TiledDrawingAreaProxy::updateWebView):
1075         * UIProcess/qt/TouchViewInterface.cpp:
1076         (WebKit::TouchViewInterface::contentSizeChanged):
1077         * UIProcess/qt/TouchViewInterface.h:
1078         * UIProcess/qt/WebPageProxyQt.cpp:
1079         * UIProcess/qt/qtouchwebpageproxy.cpp:
1080         (QTouchWebPageProxy::createDrawingAreaProxy):
1081         (QTouchWebPageProxy::setVisibleArea):
1082         * UIProcess/qt/qtouchwebpageproxy.h:
1083
1084 2011-07-11  Andreas Kling  <kling@webkit.org>
1085
1086         [Qt][WK2] Move zoomable-area-for-point functionality to QTouchWebPageProxy
1087         https://bugs.webkit.org/show_bug.cgi?id=64273
1088
1089         Reviewed by Kenneth Rohde Christiansen.
1090
1091         * UIProcess/qt/QtWebPageProxy.cpp:
1092         * UIProcess/qt/QtWebPageProxy.h:
1093         * UIProcess/qt/qdesktopwebpageproxy.cpp:
1094         (QDesktopWebPageProxy::didFindZoomableArea):
1095         * UIProcess/qt/qdesktopwebpageproxy.h:
1096         * UIProcess/qt/qtouchwebpageproxy.cpp:
1097         (QTouchWebPageProxy::findZoomableAreaForPoint):
1098         (QTouchWebPageProxy::didFindZoomableArea):
1099         * UIProcess/qt/qtouchwebpageproxy.h:
1100
1101 2011-07-10  Anders Carlsson  <andersca@apple.com>
1102
1103         WebKit2 is leaking NSCursors created by leakNamedCursor
1104         https://bugs.webkit.org/show_bug.cgi?id=64241
1105         <rdar://problem/9507151>
1106
1107         Reviewed by Oliver Hunt.
1108
1109         * Shared/WebCoreArgumentCoders.cpp:
1110         (CoreIPC::::decode):
1111         When decoding a cursor of a known type, make sure to eagerly create the platform cursor
1112         for the cursor singleton. This way we avoid re-creating new NSCursor objects over and over for
1113         standard cursors.
1114
1115 2011-07-10  Benjamin Poulain  <benjamin@webkit.org>
1116
1117         [Qt][WK2] Move setResizesToContentsUsingLayoutSize() to the touch specific page proxy
1118         https://bugs.webkit.org/show_bug.cgi?id=64238
1119
1120         Reviewed by Andreas Kling.
1121
1122         The method is specific to the touch view, so it should be in QTouchWebPageProxy instead
1123         of QtWebPageProxy.
1124
1125         * UIProcess/qt/QtWebPageProxy.cpp:
1126         * UIProcess/qt/QtWebPageProxy.h:
1127         * UIProcess/qt/qtouchwebpageproxy.cpp:
1128         (QTouchWebPageProxy::setResizesToContentsUsingLayoutSize):
1129         * UIProcess/qt/qtouchwebpageproxy.h:
1130
1131 2011-07-09  Noel Gordon  <noel.gordon@gmail.com>
1132
1133         Reviewed by Adam Roben.
1134
1135         [WebKit2] Forward focus events to windowless plugins on the windows port.
1136         https://bugs.webkit.org/show_bug.cgi?id=63251
1137
1138         No new tests. Covered by existing tests: plugins/mouse-events.html and
1139         plugins/keyboard-events.html.
1140
1141         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
1142         (WebKit::NetscapePlugin::platformSetFocus):
1143
1144 2011-07-08  Andreas Kling  <kling@webkit.org>
1145
1146         [Qt][WK2] Views should expose QActions for basic navigation.
1147         https://bugs.webkit.org/show_bug.cgi?id=64174
1148
1149         Add navigationAction() methods to the views to provide default
1150         QActions for Back, Forward, Stop and Reload.
1151
1152         Reviewed by Benjamin Poulain.
1153
1154         * UIProcess/API/qt/WKView.h:
1155         * UIProcess/API/qt/qdesktopwebview.cpp:
1156         (QDesktopWebView::navigationAction):
1157         * UIProcess/API/qt/qdesktopwebview.h:
1158         * UIProcess/API/qt/qtouchwebpage.cpp:
1159         (QTouchWebPage::navigationAction):
1160         * UIProcess/API/qt/qtouchwebpage.h:
1161         * UIProcess/API/qt/qwebkittypes.h: Added.
1162         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp:
1163         (tst_CommonViewTests::backAndForward):
1164         (tst_CommonViewTests::reload):
1165         (tst_CommonViewTests::stop):
1166         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp:
1167         (WebViewAbstraction::triggerNavigationAction):
1168         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h:
1169         * UIProcess/API/qt/tests/html/basic_page2.html: Added.
1170         * UIProcess/qt/QtWebPageProxy.cpp:
1171         (QtWebPageProxy::navigationAction):
1172         * UIProcess/qt/QtWebPageProxy.h:
1173         * WebKit2API.pri:
1174
1175 2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
1176
1177         [Qt][WK2] Get rid of the check for TILED_BACKING_STORE in Qt
1178         https://bugs.webkit.org/show_bug.cgi?id=64175
1179
1180         Reviewed by Kenneth Rohde Christiansen.
1181
1182         Qt no longer supports building WebKit2 without TILED_BACKING_STORE.
1183
1184         * UIProcess/API/qt/qtouchwebpage.cpp:
1185         (QTouchWebPagePrivate::onScaleChanged):
1186         * UIProcess/qt/QtWebPageProxy.cpp:
1187         (QtWebPageProxy::setResizesToContentsUsingLayoutSize):
1188         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
1189         * UIProcess/qt/TiledDrawingAreaTileQt.cpp:
1190         * WebProcess/WebPage/qt/TiledDrawingAreaQt.cpp:
1191
1192 2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
1193
1194         [WK2] Do not forward touch events to the web process when it does not need them
1195         https://bugs.webkit.org/show_bug.cgi?id=64164
1196
1197         Reviewed by Kenneth Rohde Christiansen.
1198
1199         The call to ChromeClient::needTouchEvent() is now forwarded to the WebPageProxy
1200         to change the way events are delivered.
1201
1202         When the WebPage does not need touch events, and there is no queued touch events,
1203         the incoming events just bounce back through PageClient::doneWithTouchEvent().
1204
1205         In the case when new events come to WebPageProxy and there are still touch events
1206         incoming from the WebProcess, the new events are deferred with the corresponding
1207         pending touch events.
1208         Deferring the new events iafter the corresponding forwarded event ensure
1209         the delivery is always done in order when PageClient::doneWithTouchEvent()
1210         is called.
1211
1212         * UIProcess/WebPageProxy.cpp:
1213         (WebKit::WebPageProxy::WebPageProxy):
1214         (WebKit::WebPageProxy::handleTouchEvent):
1215         (WebKit::WebPageProxy::needTouchEvents):
1216         (WebKit::WebPageProxy::didReceiveEvent):
1217         (WebKit::WebPageProxy::processDidCrash):
1218         * UIProcess/WebPageProxy.h:
1219         (WebKit::QueuedTouchEvents:::forwardedEvent):
1220         * UIProcess/WebPageProxy.messages.in:
1221         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1222         (WebKit::WebChromeClient::needTouchEvents):
1223
1224 2011-07-08  Benjamin Poulain  <benjamin@webkit.org>
1225
1226         [Qt][WK2] Add basic support for panning gestures to the QTouchWebView
1227         https://bugs.webkit.org/show_bug.cgi?id=64105
1228
1229         Reviewed by Kenneth Rohde Christiansen.
1230
1231         This patch adds basic support for the panning gesture on the UI process side.
1232
1233         The events coming back from the WebProcess are processed through
1234         the QtPanGestureRecognizer to recognize the pan gesture. When the
1235         gesture is recognized, the actions are performed on the view through
1236         the TouchViewInterface.
1237
1238         Currently, the viewport just move the page around without limit.
1239         This will be improved when a physics engine is integrated.
1240
1241         * UIProcess/API/qt/qtouchwebview.cpp:
1242         (QTouchWebViewPrivate::scroll):
1243         * UIProcess/API/qt/qtouchwebview.h:
1244         * UIProcess/API/qt/qtouchwebview_p.h:
1245         * UIProcess/qt/QtPanGestureRecognizer.cpp: Added.
1246         (WebKit::QtPanGestureRecognizer::QtPanGestureRecognizer):
1247         (WebKit::QtPanGestureRecognizer::recognize):
1248         (WebKit::QtPanGestureRecognizer::reset):
1249         * UIProcess/qt/QtPanGestureRecognizer.h: Added.
1250         * UIProcess/qt/TouchViewInterface.cpp:
1251         (WebKit::TouchViewInterface::panGestureStarted):
1252         (WebKit::TouchViewInterface::panGestureRequestScroll):
1253         (WebKit::TouchViewInterface::panGestureEnded):
1254         (WebKit::TouchViewInterface::panGestureCancelled):
1255         * UIProcess/qt/TouchViewInterface.h:
1256         * UIProcess/qt/qtouchwebpageproxy.cpp:
1257         (QTouchWebPageProxy::QTouchWebPageProxy):
1258         (QTouchWebPageProxy::processDidCrash):
1259         (QTouchWebPageProxy::doneWithTouchEvent):
1260         * UIProcess/qt/qtouchwebpageproxy.h:
1261         * WebKit2.pro:
1262
1263 2011-07-07  Andreas Kling  <kling@webkit.org>
1264
1265         [Qt][WK2] Remove Symbian code.
1266         https://bugs.webkit.org/show_bug.cgi?id=64101
1267
1268         Reviewed by Benjamin Poulain.
1269
1270         * DerivedSources.pro:
1271         * Platform/CoreIPC/Attachment.h:
1272         * Platform/CoreIPC/Connection.h:
1273         * Platform/SharedMemory.h:
1274         * Platform/qt/SharedMemorySymbian.cpp: Removed.
1275         * UIProcess/API/qt/tests/tests.pri:
1276         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
1277         * WebKit2.pri:
1278         * WebKit2.pro:
1279         * WebProcess.pro:
1280         * config.h:
1281
1282 2011-07-07  Andreas Kling  <kling@webkit.org>
1283
1284         [Qt][WK2] Don't support ridiculous matrix of QT_NO_FEATURE combinations.
1285         https://bugs.webkit.org/show_bug.cgi?id=64099
1286
1287         Reviewed by Benjamin Poulain.
1288
1289         * Shared/qt/WebEventFactoryQt.cpp:
1290         (WebKit::WebEventFactory::createWebWheelEvent):
1291         * UIProcess/API/qt/qdesktopwebview_p.h:
1292         * UIProcess/qt/QtWebPageProxy.cpp:
1293         (QtWebPageProxy::QtWebPageProxy):
1294         (QtWebPageProxy::setCursor):
1295         (QtWebPageProxy::registerEditCommand):
1296         (QtWebPageProxy::clearAllEditCommands):
1297         (QtWebPageProxy::canUndoRedo):
1298         (QtWebPageProxy::executeUndoRedo):
1299         (QtWebPageProxy::updateAction):
1300         (QtWebPageProxy::webActionTriggered):
1301         (QtWebPageProxy::triggerAction):
1302         (QtWebPageProxy::action):
1303         * UIProcess/qt/QtWebPageProxy.h:
1304         * UIProcess/qt/TouchViewInterface.cpp:
1305         (WebKit::TouchViewInterface::didChangeCursor):
1306         * UIProcess/qt/TouchViewInterface.h:
1307         * UIProcess/qt/ViewInterface.h:
1308         * UIProcess/qt/WebUndoCommandQt.cpp:
1309         (WebUndoCommandQt::WebUndoCommandQt):
1310         * UIProcess/qt/WebUndoCommandQt.h:
1311         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp:
1312         (WebKit::WebDragClient::startDrag):
1313
1314 2011-07-07  Andreas Kling  <kling@webkit.org>
1315
1316         [Qt][WK2] Views should know about WebProcess crash/relaunch.
1317         https://bugs.webkit.org/show_bug.cgi?id=64093
1318
1319         Reviewed by Benjamin Poulain.
1320
1321         Add processDidCrash() and didRelaunchProcess() to ViewInterface.
1322
1323         QDesktopWebView now displays a simple sad smiley ":(" when the
1324         web process crashes.
1325
1326         * UIProcess/API/qt/qdesktopwebview.cpp:
1327         (QDesktopWebViewPrivate::QDesktopWebViewPrivate):
1328         (paintCrashedPage):
1329         (QDesktopWebView::paint):
1330         (QDesktopWebViewPrivate::processDidCrash):
1331         (QDesktopWebViewPrivate::didRelaunchProcess):
1332         * UIProcess/API/qt/qdesktopwebview_p.h:
1333         * UIProcess/qt/QtWebPageProxy.cpp:
1334         (QtWebPageProxy::QtWebPageProxy):
1335         (QtWebPageProxy::didRelaunchProcess):
1336         (QtWebPageProxy::processDidCrash):
1337         * UIProcess/qt/QtWebPageProxy.h:
1338         * UIProcess/qt/TouchViewInterface.cpp:
1339         (WebKit::TouchViewInterface::showContextMenu):
1340         (WebKit::TouchViewInterface::hideContextMenu):
1341         (WebKit::TouchViewInterface::processDidCrash):
1342         (WebKit::TouchViewInterface::didRelaunchProcess):
1343         * UIProcess/qt/TouchViewInterface.h:
1344         * UIProcess/qt/ViewInterface.h:
1345
1346 2011-07-07  Benjamin Poulain  <benjamin@webkit.org>
1347
1348         [Qt] [WK2] Improve the handling of touch events to use them as main input
1349         https://bugs.webkit.org/show_bug.cgi?id=63991
1350
1351         Reviewed by Kenneth Rohde Christiansen.
1352
1353         Promote touch event for use as primary input.
1354
1355         The touch events now use the responsiveness timer like the other input events.
1356
1357         The touch events also have a callback to the UI signaling if the event was used
1358         or not: PageClient::doneWithTouchEvent().
1359         This is similar to what is done with key events (PageClient::doneWithKeyEvent()).
1360
1361         * Shared/NativeWebTouchEvent.h: Copied from Source/WebKit2/Shared/qt/WebEventFactoryQt.h.
1362         (WebKit::NativeWebTouchEvent::nativeEvent):
1363         * Shared/qt/NativeWebTouchEventQt.cpp: Copied from Source/WebKit2/Shared/qt/WebEventFactoryQt.h.
1364         (WebKit::NativeWebTouchEvent::NativeWebTouchEvent):
1365         * Shared/qt/WebEventFactoryQt.cpp:
1366         (WebKit::webEventTypeForEvent):
1367         (WebKit::WebEventFactory::createWebTouchEvent):
1368         * Shared/qt/WebEventFactoryQt.h:
1369         * UIProcess/PageClient.h:
1370         * UIProcess/WebPageProxy.cpp:
1371         (WebKit::WebPageProxy::handleTouchEvent):
1372         (WebKit::WebPageProxy::didReceiveEvent):
1373         * UIProcess/WebPageProxy.h:
1374         * UIProcess/qt/qdesktopwebpageproxy.cpp:
1375         (QDesktopWebPageProxy::doneWithTouchEvent):
1376         * UIProcess/qt/qdesktopwebpageproxy.h:
1377         * UIProcess/qt/qtouchwebpageproxy.cpp:
1378         (QTouchWebPageProxy::doneWithTouchEvent):
1379         (QTouchWebPageProxy::touchEvent):
1380         * UIProcess/qt/qtouchwebpageproxy.h:
1381         * WebKit2.pro:
1382
1383 2011-07-06  Andreas Kling  <kling@webkit.org>
1384
1385         [Qt][WK2] Split Qt API into two different web views (touch and desktop)
1386         https://bugs.webkit.org/show_bug.cgi?id=63950
1387
1388         Co-authored with Benjamin Poulain <benjamin@webkit.org>.
1389
1390         Reviewed by Kenneth Rohde Christiansen.
1391
1392         Replace the QGraphicsWKView/QWKPage mess with QDesktopWebView and QTouchWebView.
1393
1394         QDesktopWebView is a traditional web view, similar to QGraphicsWebView. It will
1395         will have the expected "desktop" behavior for things like subframes and
1396         fixed-position elements.
1397
1398         QTouchWebView is intended for use on touch devices, and will manage the viewport,
1399         gestures, tiled rendering, and other things that the user should never have to
1400         worry about. It will use "resize to contents" and frame flattening by default.
1401
1402         API-wise, the biggest difference between the two is that QTouchWebView is really
1403         a viewport that contains a QTouchWebPage. These are decoupled for flexibility in
1404         UI design. This decoupling is not necessary for the desktop use-case, and so
1405         QDesktopWebView is the only class we need.
1406
1407         Much of the Qt/WebKit2 API has been removed (snapshots, history, preferences..)
1408         but will be re-added incrementally in a way that fits the new API vision.
1409
1410         * UIProcess/API/qt/WKView.h:
1411         * UIProcess/API/qt/qdesktopwebview.cpp: Added.
1412         (QDesktopWebViewPrivate::QDesktopWebViewPrivate):
1413         (QDesktopWebViewPrivate::setViewNeedsDisplay):
1414         (QDesktopWebViewPrivate::drawingAreaSize):
1415         (QDesktopWebViewPrivate::contentSizeChanged):
1416         (QDesktopWebViewPrivate::isActive):
1417         (QDesktopWebViewPrivate::hasFocus):
1418         (QDesktopWebViewPrivate::isVisible):
1419         (QDesktopWebViewPrivate::startDrag):
1420         (QDesktopWebViewPrivate::didChangeUrl):
1421         (QDesktopWebViewPrivate::didChangeTitle):
1422         (QDesktopWebViewPrivate::didChangeToolTip):
1423         (QDesktopWebViewPrivate::didChangeStatusText):
1424         (QDesktopWebViewPrivate::didChangeCursor):
1425         (QDesktopWebViewPrivate::loadDidBegin):
1426         (QDesktopWebViewPrivate::loadDidSucceed):
1427         (QDesktopWebViewPrivate::didChangeLoadProgress):
1428         (QDesktopWebViewPrivate::showContextMenu):
1429         (QDesktopWebViewPrivate::hideContextMenu):
1430         (QDesktopWebView::QDesktopWebView):
1431         (QDesktopWebView::init):
1432         (QDesktopWebView::~QDesktopWebView):
1433         (QDesktopWebView::load):
1434         (QDesktopWebView::url):
1435         (QDesktopWebView::title):
1436         (QDesktopWebView::resizeEvent):
1437         (QDesktopWebView::paint):
1438         (QDesktopWebView::event):
1439         (QDesktopWebView::pageRef):
1440         * UIProcess/API/qt/qdesktopwebview.h: Added.
1441         * UIProcess/API/qt/qdesktopwebview_p.h: Added.
1442         * UIProcess/API/qt/qgraphicswkview.cpp: Removed.
1443         * UIProcess/API/qt/qgraphicswkview.h: Removed.
1444         * UIProcess/API/qt/qtouchwebpage.cpp: Added.
1445         (QTouchWebPage::QTouchWebPage):
1446         (QTouchWebPage::~QTouchWebPage):
1447         (QTouchWebPage::paint):
1448         (QTouchWebPage::load):
1449         (QTouchWebPage::url):
1450         (QTouchWebPage::title):
1451         (QTouchWebPage::focusNextPrevChildCallback):
1452         (QTouchWebPage::focusNextPrevChild):
1453         (QTouchWebPage::event):
1454         (QTouchWebPage::timerEvent):
1455         (QTouchWebPage::resizeEvent):
1456         (QTouchWebPagePrivate::QTouchWebPagePrivate):
1457         (QTouchWebPage::visibleRect):
1458         (QTouchWebPagePrivate::prepareScaleChange):
1459         (QTouchWebPagePrivate::commitScaleChange):
1460         (QTouchWebPagePrivate::onScaleChanged):
1461         (QTouchWebPagePrivate::setPage):
1462         * UIProcess/API/qt/qtouchwebpage.h: Added.
1463         * UIProcess/API/qt/qtouchwebpage_p.h: Added.
1464         (QTouchWebPagePrivate::getPageViewPrivate):
1465         * UIProcess/API/qt/qtouchwebview.cpp: Added.
1466         (QTouchWebViewPrivate::QTouchWebViewPrivate):
1467         (QTouchWebView::QTouchWebView):
1468         (QTouchWebView::~QTouchWebView):
1469         (QTouchWebView::page):
1470         * UIProcess/API/qt/qtouchwebview.h: Added.
1471         * UIProcess/API/qt/qtouchwebview_p.h: Added.
1472         * UIProcess/API/qt/qwkpage.cpp: Removed.
1473         * UIProcess/API/qt/qwkpage.h: Removed.
1474         * UIProcess/API/qt/tests/commonviewtests/commonviewtests.pro: Added.
1475         * UIProcess/API/qt/tests/commonviewtests/tst_commonviewtests.cpp: Added.
1476         (tst_CommonViewTests::init):
1477         (tst_CommonViewTests::cleanup):
1478         (tst_CommonViewTests::baseUrl):
1479         (tst_CommonViewTests::loadEmptyUrl):
1480         (tst_CommonViewTests::loadEmptyPageViewVisible):
1481         (tst_CommonViewTests::loadEmptyPageViewHidden):
1482         (tst_CommonViewTests::show):
1483         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.cpp: Added.
1484         (WebViewAbstraction::WebViewAbstraction):
1485         (WebViewAbstraction::show):
1486         (WebViewAbstraction::hide):
1487         (WebViewAbstraction::load):
1488         (WebViewAbstraction::url):
1489         (WebViewAbstraction::touchViewLoadStarted):
1490         (WebViewAbstraction::desktopViewLoadStarted):
1491         (WebViewAbstraction::touchViewLoadSucceeded):
1492         (WebViewAbstraction::desktopViewLoadSucceeded):
1493         (WebViewAbstraction::touchWebView):
1494         (WebViewAbstraction::desktopWebView):
1495         * UIProcess/API/qt/tests/commonviewtests/webviewabstraction.h: Copied from Source/WebKit2/UIProcess/API/qt/tests/qwkpage/tst_qwkpage.cpp.
1496         * UIProcess/API/qt/tests/html/a.htm: Removed.
1497         * UIProcess/API/qt/tests/html/b.htm: Removed.
1498         * UIProcess/API/qt/tests/html/c.htm: Removed.
1499         * UIProcess/API/qt/tests/html/d.htm: Removed.
1500         * UIProcess/API/qt/tests/qdesktopwebview/qdesktopwebview.pro: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qgraphicswkview/qgraphicswkview.pro.
1501         * UIProcess/API/qt/tests/qdesktopwebview/tst_qdesktopwebview.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qwkpage/tst_qwkpage.cpp.
1502         (tst_QDesktopWebView::init):
1503         (tst_QDesktopWebView::cleanup):
1504         (tst_QDesktopWebView::webView):
1505         * UIProcess/API/qt/tests/qgraphicswkview/tst_qgraphicswkview.cpp: Removed.
1506         * UIProcess/API/qt/tests/qtouchwebview/qtouchwebview.pro: Renamed from Source/WebKit2/UIProcess/API/qt/tests/qwkhistory/qwkhistory.pro.
1507         * UIProcess/API/qt/tests/qtouchwebview/tst_qtouchwebview.cpp: Added.
1508         (tst_QTouchWebView::tst_QTouchWebView):
1509         (tst_QTouchWebView::init):
1510         (tst_QTouchWebView::cleanup):
1511         (tst_QTouchWebView::webView):
1512         (tst_QTouchWebView::accessPage):
1513         * UIProcess/API/qt/tests/qwkhistory/tst_qwkhistory.cpp: Removed.
1514         * UIProcess/API/qt/tests/qwkpage/qwkpage.pro: Removed.
1515         * UIProcess/API/qt/tests/tests.pro:
1516         * UIProcess/API/qt/tests/testwindow.h: Added.
1517         (TestWindow::TestWindow):
1518         (TestWindow::resizeEvent):
1519         * UIProcess/TiledDrawingAreaProxy.cpp:
1520         * UIProcess/TiledDrawingAreaProxy.h:
1521         * UIProcess/WebFullScreenManagerProxy.h:
1522         * UIProcess/qt/ClientImpl.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/ClientImpl.cpp.
1523         (toQWKContext):
1524         (toQtWebPageProxy):
1525         (loadFinished):
1526         (qt_wk_didStartProvisionalLoadForFrame):
1527         (qt_wk_didReceiveServerRedirectForProvisionalLoadForFrame):
1528         (qt_wk_didFailProvisionalLoadWithErrorForFrame):
1529         (qt_wk_didCommitLoadForFrame):
1530         (qt_wk_didFinishDocumentLoadForFrame):
1531         (qt_wk_didFinishLoadForFrame):
1532         (qt_wk_didFailLoadWithErrorForFrame):
1533         (qt_wk_didReceiveTitleForFrame):
1534         (qt_wk_didFirstLayoutForFrame):
1535         (qt_wk_didRemoveFrameFromHierarchy):
1536         (qt_wk_didFirstVisuallyNonEmptyLayoutForFrame):
1537         (qt_wk_didStartProgress):
1538         (qt_wk_didChangeProgress):
1539         (qt_wk_didFinishProgress):
1540         (qt_wk_didBecomeUnresponsive):
1541         (qt_wk_didBecomeResponsive):
1542         (qt_wk_createNewPage):
1543         (qt_wk_showPage):
1544         (qt_wk_close):
1545         (qt_wk_takeFocus):
1546         (qt_wk_runJavaScriptAlert):
1547         (qt_wk_setStatusText):
1548         (qt_wk_didSameDocumentNavigationForFrame):
1549         (qt_wk_didChangeIconForPageURL):
1550         (qt_wk_didRemoveAllIcons):
1551         * UIProcess/qt/ClientImpl.h: Renamed from Source/WebKit2/UIProcess/API/qt/ClientImpl.h.
1552         * UIProcess/qt/QtWebPageProxy.cpp: Added.
1553         (defaultWKContext):
1554         (contextMenuActionForWebAction):
1555         (dragOperationToDropActions):
1556         (dropActionToDragOperation):
1557         (QtWebPageProxy::QtWebPageProxy):
1558         (QtWebPageProxy::init):
1559         (QtWebPageProxy::~QtWebPageProxy):
1560         (QtWebPageProxy::handleEvent):
1561         (QtWebPageProxy::handleKeyPressEvent):
1562         (QtWebPageProxy::handleKeyReleaseEvent):
1563         (QtWebPageProxy::handleFocusInEvent):
1564         (QtWebPageProxy::handleFocusOutEvent):
1565         (QtWebPageProxy::setCursor):
1566         (QtWebPageProxy::setViewNeedsDisplay):
1567         (QtWebPageProxy::displayView):
1568         (QtWebPageProxy::scrollView):
1569         (QtWebPageProxy::viewSize):
1570         (QtWebPageProxy::isViewWindowActive):
1571         (QtWebPageProxy::isViewFocused):
1572         (QtWebPageProxy::isViewVisible):
1573         (QtWebPageProxy::isViewInWindow):
1574         (QtWebPageProxy::enterAcceleratedCompositingMode):
1575         (QtWebPageProxy::exitAcceleratedCompositingMode):
1576         (QtWebPageProxy::pageDidRequestScroll):
1577         (QtWebPageProxy::didChangeContentsSize):
1578         (QtWebPageProxy::toolTipChanged):
1579         (QtWebPageProxy::registerEditCommand):
1580         (QtWebPageProxy::clearAllEditCommands):
1581         (QtWebPageProxy::canUndoRedo):
1582         (QtWebPageProxy::executeUndoRedo):
1583         (QtWebPageProxy::convertToDeviceSpace):
1584         (QtWebPageProxy::screenToWindow):
1585         (QtWebPageProxy::windowToScreen):
1586         (QtWebPageProxy::convertToUserSpace):
1587         (QtWebPageProxy::selectionChanged):
1588         (QtWebPageProxy::doneWithKeyEvent):
1589         (QtWebPageProxy::createPopupMenuProxy):
1590         (QtWebPageProxy::createContextMenuProxy):
1591         (QtWebPageProxy::setFindIndicator):
1592         (QtWebPageProxy::didCommitLoadForMainFrame):
1593         (QtWebPageProxy::didFinishLoadingDataForCustomRepresentation):
1594         (QtWebPageProxy::flashBackingStoreUpdates):
1595         (QtWebPageProxy::pageRef):
1596         (QtWebPageProxy::didChangeUrl):
1597         (QtWebPageProxy::didChangeTitle):
1598         (QtWebPageProxy::didChangeStatusText):
1599         (QtWebPageProxy::showContextMenu):
1600         (QtWebPageProxy::hideContextMenu):
1601         (QtWebPageProxy::loadDidBegin):
1602         (QtWebPageProxy::loadDidSucceed):
1603         (QtWebPageProxy::didChangeLoadProgress):
1604         (QtWebPageProxy::paint):
1605         (QtWebPageProxy::updateAction):
1606         (QtWebPageProxy::updateNavigationActions):
1607         (QtWebPageProxy::webActionTriggered):
1608         (QtWebPageProxy::didRelaunchProcess):
1609         (QtWebPageProxy::processDidCrash):
1610         (QtWebPageProxy::setActualVisibleContentsRect):
1611         (QtWebPageProxy::preferences):
1612         (QtWebPageProxy::setCreateNewPageFunction):
1613         (QtWebPageProxy::setCustomUserAgent):
1614         (QtWebPageProxy::customUserAgent):
1615         (QtWebPageProxy::load):
1616         (QtWebPageProxy::url):
1617         (QtWebPageProxy::title):
1618         (QtWebPageProxy::setDrawingAreaSize):
1619         (QtWebPageProxy::textZoomFactor):
1620         (QtWebPageProxy::setTextZoomFactor):
1621         (QtWebPageProxy::pageZoomFactor):
1622         (QtWebPageProxy::setPageZoomFactor):
1623         (QtWebPageProxy::setPageAndTextZoomFactors):
1624         (QtWebPageProxy::history):
1625         (QtWebPageProxy::setResizesToContentsUsingLayoutSize):
1626         (QtWebPageProxy::triggerAction):
1627         (QtWebPageProxy::action):
1628         (QtWebPageProxy::findZoomableAreaForPoint):
1629         (QtWebPageProxy::didFindZoomableArea):
1630         (QtWebPageProxy::startDrag):
1631         (QtWebPageProxy::viewportVisibleRect):
1632         (QtWebPageProxy::isConnectedToEngine):
1633         (QtWebPageProxy::setPageIsVisible):
1634         * UIProcess/qt/QtWebPageProxy.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkpage_p.h.
1635         (QtWebPageProxy::pageClosed):
1636         (QtWebPageProxy::customRepresentationZoomFactor):
1637         (QtWebPageProxy::setCustomRepresentationZoomFactor):
1638         (QtWebPageProxy::didChangeScrollbarsForMainFrame):
1639         (QtWebPageProxy::findStringInCustomRepresentation):
1640         (QtWebPageProxy::countStringMatchesInCustomRepresentation):
1641         (QtWebPageProxy::userSpaceScaleFactor):
1642         (QtWebPageProxy::createNewPageFunction):
1643         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp:
1644         (WebKit::TiledDrawingAreaProxy::page):
1645         * UIProcess/qt/TouchViewInterface.cpp: Added.
1646         (WebKit::TouchViewInterface::TouchViewInterface):
1647         (WebKit::TouchViewInterface::setViewNeedsDisplay):
1648         (WebKit::TouchViewInterface::drawingAreaSize):
1649         (WebKit::TouchViewInterface::contentSizeChanged):
1650         (WebKit::TouchViewInterface::isActive):
1651         (WebKit::TouchViewInterface::hasFocus):
1652         (WebKit::TouchViewInterface::isVisible):
1653         (WebKit::TouchViewInterface::startDrag):
1654         (WebKit::TouchViewInterface::didChangeUrl):
1655         (WebKit::TouchViewInterface::didChangeTitle):
1656         (WebKit::TouchViewInterface::didChangeToolTip):
1657         (WebKit::TouchViewInterface::didChangeStatusText):
1658         (WebKit::TouchViewInterface::didChangeCursor):
1659         (WebKit::TouchViewInterface::loadDidBegin):
1660         (WebKit::TouchViewInterface::loadDidSucceed):
1661         (WebKit::TouchViewInterface::didChangeLoadProgress):
1662         (WebKit::TouchViewInterface::showContextMenu):
1663         (WebKit::TouchViewInterface::hideContextMenu):
1664         * UIProcess/qt/TouchViewInterface.h: Added.
1665         (WebKit::TouchViewInterface::pageView):
1666         * UIProcess/qt/ViewInterface.cpp: Added.
1667         (WebKit::ViewInterface::ownerWidget):
1668         * UIProcess/qt/ViewInterface.h: Added.
1669         * UIProcess/qt/WebContextMenuProxyQt.cpp:
1670         (WebKit::webActionForContextMenuAction):
1671         (WebKit::WebContextMenuProxyQt::WebContextMenuProxyQt):
1672         (WebKit::WebContextMenuProxyQt::create):
1673         (WebKit::WebContextMenuProxyQt::showContextMenu):
1674         (WebKit::WebContextMenuProxyQt::hideContextMenu):
1675         (WebKit::WebContextMenuProxyQt::createContextMenu):
1676         * UIProcess/qt/WebContextMenuProxyQt.h:
1677         * UIProcess/qt/qdesktopwebpageproxy.cpp: Added.
1678         (dragOperationToDropAction):
1679         (QDesktopWebPageProxy::QDesktopWebPageProxy):
1680         (QDesktopWebPageProxy::createDrawingAreaProxy):
1681         (QDesktopWebPageProxy::paintContent):
1682         (QDesktopWebPageProxy::setViewportArguments):
1683         (QDesktopWebPageProxy::handleEvent):
1684         (QDesktopWebPageProxy::handleMouseMoveEvent):
1685         (QDesktopWebPageProxy::handleMousePressEvent):
1686         (QDesktopWebPageProxy::handleMouseReleaseEvent):
1687         (QDesktopWebPageProxy::handleMouseDoubleClickEvent):
1688         (QDesktopWebPageProxy::handleWheelEvent):
1689         (QDesktopWebPageProxy::handleHoverMoveEvent):
1690         (QDesktopWebPageProxy::handleDragEnterEvent):
1691         (QDesktopWebPageProxy::handleDragLeaveEvent):
1692         (QDesktopWebPageProxy::handleDragMoveEvent):
1693         (QDesktopWebPageProxy::handleDropEvent):
1694         (QDesktopWebPageProxy::timerEvent):
1695         * UIProcess/qt/qdesktopwebpageproxy.h: Added.
1696         * UIProcess/qt/qtouchwebpageproxy.cpp: Added.
1697         (QTouchWebPageProxy::QTouchWebPageProxy):
1698         (QTouchWebPageProxy::createDrawingAreaProxy):
1699         (QTouchWebPageProxy::paintContent):
1700         (QTouchWebPageProxy::setViewportArguments):
1701         (QTouchWebPageProxy::handleEvent):
1702         (QTouchWebPageProxy::touchEvent):
1703         * UIProcess/qt/qtouchwebpageproxy.h: Added.
1704         (QTouchWebPageProxy::touchViewInterface):
1705         (QTouchWebPageProxy::pageView):
1706         * UIProcess/qt/qwkcontext.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qwkcontext.cpp.
1707         (initializePlatformStrategiesIfNeeded):
1708         (QWKContextPrivate::QWKContextPrivate):
1709         (QWKContextPrivate::~QWKContextPrivate):
1710         (QWKContext::QWKContext):
1711         (QWKContext::~QWKContext):
1712         (QWKContext::setIconDatabasePath):
1713         (QWKContext::iconForPageURL):
1714         * UIProcess/qt/qwkcontext.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkcontext.h.
1715         * UIProcess/qt/qwkcontext_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkcontext_p.h.
1716         * UIProcess/qt/qwkhistory.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qwkhistory.cpp.
1717         (QWKHistoryItemPrivate::QWKHistoryItemPrivate):
1718         (QWKHistoryItemPrivate::~QWKHistoryItemPrivate):
1719         (QWKHistoryItem::QWKHistoryItem):
1720         (QWKHistoryItem::QWKHistoryItem::operator=):
1721         (QWKHistoryItem::~QWKHistoryItem):
1722         (QWKHistoryItem::title):
1723         (QWKHistoryItem::url):
1724         (QWKHistoryPrivate::QWKHistoryPrivate):
1725         (QWKHistoryPrivate::createHistory):
1726         (QWKHistoryPrivate::~QWKHistoryPrivate):
1727         (QWKHistory::QWKHistory):
1728         (QWKHistory::~QWKHistory):
1729         (QWKHistory::backListCount):
1730         (QWKHistory::forwardListCount):
1731         (QWKHistory::count):
1732         (QWKHistory::currentItem):
1733         (QWKHistory::backItem):
1734         (QWKHistory::forwardItem):
1735         (QWKHistory::itemAt):
1736         (QWKHistory::goToItemAt):
1737         (QWKHistory::backItems):
1738         (QWKHistory::forwardItems):
1739         * UIProcess/qt/qwkhistory.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkhistory.h.
1740         * UIProcess/qt/qwkhistory_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkhistory_p.h.
1741         * UIProcess/qt/qwkpreferences.cpp: Renamed from Source/WebKit2/UIProcess/API/qt/qwkpreferences.cpp.
1742         (QWKPreferencesPrivate::createPreferences):
1743         (QWKPreferencesPrivate::createSharedPreferences):
1744         (QWKPreferences::sharedPreferences):
1745         (QWKPreferences::QWKPreferences):
1746         (QWKPreferences::~QWKPreferences):
1747         (QWKPreferences::setFontFamily):
1748         (QWKPreferences::fontFamily):
1749         (QWKPreferences::testAttribute):
1750         (QWKPreferences::setAttribute):
1751         (QWKPreferences::setFontSize):
1752         (QWKPreferences::fontSize):
1753         * UIProcess/qt/qwkpreferences.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkpreferences.h.
1754         * UIProcess/qt/qwkpreferences_p.h: Renamed from Source/WebKit2/UIProcess/API/qt/qwkpreferences_p.h.
1755         * WebKit2.pro:
1756         * WebKit2API.pri:
1757         * WebProcess/WebPage/TiledDrawingArea.cpp:
1758         * WebProcess/WebPage/TiledDrawingArea.h:
1759
1760 2011-07-05  Jeff Miller  <jeffm@apple.com>
1761
1762         Add WKPageCopyStandardUserAgentWithApplicationName
1763         https://bugs.webkit.org/show_bug.cgi?id=63953
1764
1765         Reviewed by Adam Roben.
1766
1767          * UIProcess/API/C/WKPage.cpp:
1768         (WKPageCopyStandardUserAgentWithApplicationName): Added.
1769         * UIProcess/API/C/WKPagePrivate.h: Added WKPageCopyStandardUserAgentWithApplicationName().
1770
1771         * UIProcess/WebPageProxy.h: Make standardUserAgent() public.
1772
1773 2011-07-05  Vsevolod Vlasov  <vsevik@chromium.org>
1774
1775         Web Inspector: Show content for plugin requests in network panel.
1776         https://bugs.webkit.org/show_bug.cgi?id=30080
1777
1778         Added win symbols for new window.internals methods.
1779
1780         Reviewed by Pavel Feldman.
1781
1782         * win/WebKit2.def:
1783         * win/WebKit2CFLite.def:
1784
1785 2011-07-04  Sheriff Bot  <webkit.review.bot@gmail.com>
1786
1787         Unreviewed, rolling out r90373.
1788         http://trac.webkit.org/changeset/90373
1789         https://bugs.webkit.org/show_bug.cgi?id=63917
1790
1791         Breaks Qt Linux Release minimal (Requested by vsevik on
1792         #webkit).
1793
1794         * win/WebKit2.def:
1795         * win/WebKit2CFLite.def:
1796
1797 2011-07-04  Vsevolod Vlasov  <vsevik@chromium.org>
1798
1799         Web Inspector: Show content for plugin requests in network panel.
1800         https://bugs.webkit.org/show_bug.cgi?id=30080
1801
1802         Reviewed by Pavel Feldman.
1803
1804         * win/WebKit2.def:
1805         * win/WebKit2CFLite.def:
1806
1807 2011-07-04  Anders Carlsson  <andersca@apple.com>
1808
1809         NP_RemoveProperty is not called back by Safari when delete npObject.prop is encountered in JavaScript
1810         https://bugs.webkit.org/show_bug.cgi?id=63915
1811         <rdar://problem/7124300>
1812
1813         Reviewed by Sam Weinig.
1814
1815         * WebProcess/Plugins/Netscape/JSNPObject.cpp:
1816         (WebKit::JSNPObject::deleteProperty):
1817         Call NP_RemoveProperty on the NPObject.
1818
1819         * WebProcess/Plugins/Netscape/JSNPObject.h:
1820         Add deleteProperty.
1821
1822 2011-06-23  Robert Hogan  <robert@webkit.org>
1823
1824         Reviewed by Simon Hausmann.
1825
1826         [Qt] Windowless Plugins : <input> cursor blinks even after transferring focus to plugin
1827         https://bugs.webkit.org/show_bug.cgi?id=30355
1828
1829         PluginView needs to use page->focusController()->setFocusedNode() when focusing a plugin
1830         in order to clear the FrameSelection in the currently focused node. In its platform-specific
1831         code Chromium already does this (WebPluginContainerImpl.cpp).
1832
1833         * WebProcess/Plugins/PluginView.cpp:
1834         (WebCore::PluginView::focusPluginElement): Using FocusController::setFocusedNode() makes
1835                                                    the call to FocusController:setFocusedFrame() redundant, since the
1836                                                    former calls it.
1837
1838 2011-07-02  Anders Carlsson  <andersca@apple.com>
1839
1840         Have another go at fixing the Windows build.
1841
1842         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1843         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
1844         (WebKit::NetscapePlugin::containingWindow):
1845         (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
1846         (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
1847
1848 2011-07-02  Anders Carlsson  <andersca@apple.com>
1849
1850         Null out the plug-in controller after destroying the plug-in.
1851         https://bugs.webkit.org/show_bug.cgi?id=63869
1852
1853         Reviewed by Maciej Stachowiak.
1854
1855         * PluginProcess/PluginControllerProxy.cpp:
1856         (WebKit::PluginControllerProxy::destroy):
1857         Call destroyPlugin.
1858
1859         * WebProcess/Plugins/Plugin.cpp:
1860         (WebKit::Plugin::destroyPlugin):
1861         Call destroy and null out the plug-in controller.
1862
1863         * WebProcess/Plugins/Plugin.h:
1864         Add destroyPlugin, make destroy private.
1865
1866         * WebProcess/Plugins/PluginView.cpp:
1867         (WebKit::PluginView::~PluginView):
1868         Call destroyPlugin.
1869
1870 2011-07-02  Anders Carlsson  <andersca@apple.com>
1871
1872         Fix Windows build for real.
1873
1874         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
1875         (WebKit::NetscapePlugin::containingWindow):
1876         (WebKit::NetscapePlugin::scheduleWindowedGeometryUpdate):
1877         (WebKit::NetscapePlugin::platformPaint):
1878         (WebKit::NetscapePlugin::platformHandleMouseEvent):
1879
1880 2011-07-02  Anders Carlsson  <andersca@apple.com>
1881
1882         Implement NPN_PluginThreadAsyncCall
1883         https://bugs.webkit.org/show_bug.cgi?id=63868
1884
1885         Reviewed by Dan Bernstein.
1886
1887         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
1888         (WebKit::NPN_PluginThreadAsyncCall):
1889         Call NetscapePlugin::pluginThreadAsyncCall.
1890
1891         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1892         (WebKit::NetscapePlugin::pluginThreadAsyncCall):
1893         Schedule a work item to call the function on the main run loop.
1894
1895         (WebKit::NetscapePlugin::handlePluginThreadAsyncCall):
1896         If the plug-in is still running, run the function.
1897
1898         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1899         Add new member function.
1900
1901         * WebProcess/Plugins/Plugin.h:
1902         Make plug-in inherit from ThreadSafeRefCounted since plug-ins can potentially
1903         ref the plug-in from other threads.
1904
1905 2011-07-02  Anders Carlsson  <andersca@apple.com>
1906
1907         Fix Windows build.
1908
1909         * WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
1910         (WebKit::NetscapePlugin::containingWindow):
1911         (WebKit::NetscapePlugin::scheduleWindowedGeometryUpdate):
1912         (WebKit::NetscapePlugin::platformPaint):
1913         (WebKit::NetscapePlugin::platformHandleMouseEvent):
1914         (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
1915         (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
1916
1917 2011-07-02  Anders Carlsson  <andersca@apple.com>
1918
1919         Move the plug-in controller member variable up to the shared Plugin base class
1920         https://bugs.webkit.org/show_bug.cgi?id=63867
1921
1922         Reviewed by Sam Weinig.
1923
1924         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1925         (WebKit::NetscapePlugin::NetscapePlugin):
1926         Remove m_pluginController.
1927
1928         (WebKit::NetscapePlugin::invalidate):
1929         (WebKit::NetscapePlugin::userAgent):
1930         (WebKit::NetscapePlugin::loadURL):
1931         (WebKit::NetscapePlugin::setStatusbarText):
1932         (WebKit::NetscapePlugin::evaluate):
1933         (WebKit::NetscapePlugin::isPrivateBrowsingEnabled):
1934         (WebKit::NetscapePlugin::windowScriptNPObject):
1935         (WebKit::NetscapePlugin::pluginElementNPObject):
1936         (WebKit::NetscapePlugin::tryToShortCircuitInvoke):
1937         (WebKit::NetscapePlugin::cancelStreamLoad):
1938         (WebKit::NetscapePlugin::isAcceleratedCompositingEnabled):
1939         (WebKit::NetscapePlugin::proxiesForURL):
1940         (WebKit::NetscapePlugin::cookiesForURL):
1941         (WebKit::NetscapePlugin::setCookiesForURL):
1942         (WebKit::NetscapePlugin::getAuthenticationInfo):
1943         Use controller() instead of m_pluginController.
1944
1945         (WebKit::NetscapePlugin::initialize):
1946         This doesn't take a PluginController parameter anymore.
1947
1948         (WebKit::NetscapePlugin::destroy):
1949         No need to null out the plug-in controller.
1950
1951         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
1952         Remove m_pluginController member variable.
1953
1954         * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm:
1955         (WebKit::NetscapePlugin::compositingRenderServerPort):
1956         (WebKit::NetscapePlugin::platformSetFocus):
1957         (WebKit::NetscapePlugin::windowFocusChanged):
1958         Use controller() instead of m_pluginController.
1959         
1960         * WebProcess/Plugins/Plugin.cpp:
1961         (WebKit::Plugin::Plugin):
1962         Initialize m_pluginController.
1963
1964         (WebKit::Plugin::initialize):
1965         New function that initializes the plug-in controller and then calls the real
1966         virtual initialize member function.
1967
1968         * WebProcess/Plugins/Plugin.h:
1969         Add m_pluginController member variable and a new initialize virtual member function that doesn't take a
1970         PluginController parameter. Make the "old" initialize member function set up the plug-in controller.
1971
1972         (WebKit::Plugin::controller):
1973         This is now a simple getter.
1974
1975         * WebProcess/Plugins/PluginProxy.cpp:
1976         (WebKit::PluginProxy::PluginProxy):
1977         Remove m_pluginController.
1978
1979         (WebKit::PluginProxy::pluginProcessCrashed):
1980         Use controller(), remove a bogus null check.
1981
1982         (WebKit::PluginProxy::initialize):
1983         This doesn't take a PluginController parameter now.
1984
1985         (WebKit::PluginProxy::destroy):
1986         No need to null out the plug-in controller member variable.
1987
1988         (WebKit::PluginProxy::loadURL):
1989         (WebKit::PluginProxy::proxiesForURL):
1990         (WebKit::PluginProxy::cookiesForURL):
1991         (WebKit::PluginProxy::setCookiesForURL):
1992         (WebKit::PluginProxy::getAuthenticationInfo):
1993         (WebKit::PluginProxy::windowNPObjectID):
1994         (WebKit::PluginProxy::getPluginElementNPObject):
1995         (WebKit::PluginProxy::evaluate):
1996         (WebKit::PluginProxy::cancelStreamLoad):
1997         (WebKit::PluginProxy::cancelManualStreamLoad):
1998         (WebKit::PluginProxy::setStatusbarText):
1999         (WebKit::PluginProxy::setComplexTextInputEnabled):
2000         (WebKit::PluginProxy::update):
2001         Use controller() instead of m_pluginController.
2002         
2003         * WebProcess/Plugins/PluginProxy.h:
2004         Remove m_pluginController.
2005
2006 2011-07-01  Darin Adler  <darin@apple.com>
2007
2008         Consider backing scale factor when setting up graphics layers
2009         https://bugs.webkit.org/show_bug.cgi?id=63848
2010
2011         Reviewed by Simon Fraser.
2012
2013         * WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
2014         (WebKit::LayerTreeHostCA::initialize): Set contents scale on the
2015         non-composited content layer based on the backing scale factor.
2016         (WebKit::LayerTreeHostCA::createPageOverlayLayer): Set contents
2017         scale on the page overlay layer based on the backing scale factor.
2018
2019 2011-06-30  Brian Weinstein  <bweinstein@apple.com>
2020
2021         Reviewed by Darin Adler.
2022
2023         WebKit2: DidFinishLoadForFrame is never called on iframes when loads are 
2024         cancelled by willSendRequest
2025         https://bugs.webkit.org/show_bug.cgi?id=63753
2026         
2027         When deciding a policy for a null request, call the callback that was passed
2028         to WebKit2 and say that we used the loader.
2029
2030         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2031         (WebKit::WebFrameLoaderClient::dispatchDecidePolicyForResponse):
2032
2033 2011-07-01  Balazs Kelemen  <kbalazs@webkit.org>
2034
2035         Reviewed by Andreas Kling.
2036
2037         [X11][WK2] plugins/mouse-evets-fixedpos.html is failing because of broken event propagation
2038         https://bugs.webkit.org/show_bug.cgi?id=63239
2039
2040         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2041         Revert the return value of NPP_HandleEvent because the plugin function
2042         returns with 0 if it handled the event.
2043         (WebKit::NetscapePlugin::platformHandleMouseEvent):
2044         (WebKit::NetscapePlugin::platformHandleWheelEvent):
2045         (WebKit::NetscapePlugin::platformHandleMouseEnterEvent):
2046         (WebKit::NetscapePlugin::platformHandleMouseLeaveEvent):
2047         (WebKit::NetscapePlugin::platformHandleKeyboardEvent):
2048
2049 2011-07-01  Mark Rowe  <mrowe@apple.com>
2050
2051         Unreviewed due to fixing of a broken world.
2052
2053         REGRESSION (r90163): WebKit2 bot is failing 100% of the tests.
2054
2055         r90163 bumped the version of the WKBundlePageLoaderClient passed in by WebKitTestRunner from 0 to 1.
2056         This made it run in to the ad-hoc client version checking implemented directly in WKBundlePageSetPageLoaderClient,
2057         resulting in no client being set. After r90162 the ad-hoc checking is not necessary as the APIClient
2058         template takes care of the relevant version checks.
2059
2060         * Shared/APIClient.h:
2061         (WebKit::APIClient::initialize): Fix a bug I noticed along the way: don't attempt to copy anything if
2062         the client version is newer than what we support. This matches the behavior of the ad-hoc version checking.
2063         * UIProcess/API/C/WKContext.cpp:
2064         (WKContextSetInjectedBundleClient): Drop the ad-hoc version checking.
2065         (WKContextSetHistoryClient): Ditto.
2066         (WKContextSetDownloadClient): Ditto.
2067         * UIProcess/API/C/WKCookieManager.cpp:
2068         (WKCookieManagerSetClient): Ditto.
2069         * UIProcess/API/C/WKGeolocationManager.cpp:
2070         (WKGeolocationManagerSetProvider): Ditto.
2071         * UIProcess/API/C/WKIconDatabase.cpp:
2072         (WKIconDatabaseSetIconDatabaseClient): Ditto.
2073         * UIProcess/API/C/WKPage.cpp:
2074         (WKPageSetPageContextMenuClient): Ditto.
2075         (WKPageSetPageFindClient): Ditto.
2076         (WKPageSetPageFormClient): Ditto.
2077         (WKPageSetPageLoaderClient): Ditto.
2078         (WKPageSetPagePolicyClient): Ditto.
2079         (WKPageSetPageResourceLoadClient): Ditto.
2080         (WKPageSetPageUIClient): Ditto.
2081         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
2082         (WKBundleSetClient): Ditto.
2083         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2084         (WKBundlePageSetContextMenuClient): Ditto.
2085         (WKBundlePageSetEditorClient): Ditto.
2086         (WKBundlePageSetFormClient): Ditto.
2087         (WKBundlePageSetPageLoaderClient): Ditto.
2088         (WKBundlePageSetResourceLoadClient): Ditto.
2089         (WKBundlePageSetPolicyClient): Ditto.
2090         (WKBundlePageSetUIClient): Ditto.
2091         (WKBundlePageSetFullScreenClient): Ditto.
2092
2093 2011-06-30  Darin Adler  <darin@apple.com>
2094
2095         Reviewed by Anders Carlsson.
2096
2097         [WebKit2] Consider scale factor when allocating backing store
2098         https://bugs.webkit.org/show_bug.cgi?id=63766
2099
2100         This is the first step in considering scale factor. It considers
2101         scale factor for the primary backing store, not graphics layers,
2102         and for CG only.
2103
2104         * Platform/cg/CGUtilities.cpp:
2105         (WebKit::paintImage): Added a scale factor argument.
2106         (WebKit::paintBitmapContext): Pass 1 for scale factor.
2107         * Platform/cg/CGUtilities.h: Updated for above.
2108
2109         * Shared/ShareableBitmap.h: Added an overload of paint that can handle
2110         a scale factor.
2111
2112         * Shared/UpdateInfo.cpp:
2113         (WebKit::UpdateInfo::encode): Encode scale factor.
2114         (WebKit::UpdateInfo::decode): Decode scale factor.
2115         * Shared/UpdateInfo.h: Added scale factor.
2116
2117         * Shared/cg/ShareableBitmapCG.cpp:
2118         (WebKit::ShareableBitmap::paint): Added the overload that can handle
2119         a scale factor.
2120
2121         * UIProcess/BackingStore.cpp:
2122         (WebKit::BackingStore::create): Take a scale factor.
2123         (WebKit::BackingStore::BackingStore): Store the scale factor.
2124         (WebKit::BackingStore::incorporateUpdate): Consider the scale factor
2125         when asserting the size is correct.
2126
2127         * UIProcess/BackingStore.h: Add a scale factor.
2128
2129         * UIProcess/DrawingAreaProxyImpl.cpp:
2130         (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState): Check the
2131         scale factor too when deciding whether to reuse a backing store.
2132         (WebKit::DrawingAreaProxyImpl::incorporateUpdate): Pass in the scale
2133         factor when creating a backing store.
2134
2135         * UIProcess/mac/BackingStoreMac.mm:
2136         (WebKit::BackingStore::incorporateUpdate): Take the scale factor into
2137         account when painting.
2138
2139         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2140         (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState): Put the
2141         scale factor into the UpdateInfo.
2142         (WebKit::DrawingAreaImpl::exitAcceleratedCompositingMode): Ditto.
2143         (WebKit::DrawingAreaImpl::display): Take the scale factor into account
2144         when allocating the bitmap and creating a graphics context for it.
2145
2146 2011-06-30  Mark Rowe  <mrowe@apple.com>
2147
2148         Fix the Windows build.
2149
2150         * UIProcess/API/C/win/WKTextChecker.h:
2151         * UIProcess/API/C/win/WKView.h:
2152         * UIProcess/win/WebTextCheckerClient.h:
2153         * UIProcess/win/WebUndoClient.h:
2154
2155 2011-06-30  Mark Rowe  <mrowe@apple.com>
2156
2157         Reviewed by Anders Carlsson.
2158
2159         Teach APIClient to correctly handle multiple versions of a client interface.
2160
2161         If a client struct is not the current version then we can't copy it via assignment
2162         since that will read past the end of the smaller, older struct. To deal with this
2163         APIClient needs to be aware of the sizes of the older client version structs so that
2164         it can copy only the appropriate amount of the struct.
2165         
2166         * Shared/APIClient.h:
2167         (WebKit::APIClient::initialize): Assign through to our client if the new in client is the
2168         latest version. If an older client version was passed then we zero out our client and memcpy
2169         the appropriate number of bytes in to it. This ensures that any new members in the client
2170         are initialized to 0.
2171         * Shared/APIClientTraits.cpp:
2172         * Shared/APIClientTraits.h: Client interfaces are the size of their struct unless otherwise stated.
2173         * WebKit2.xcodeproj/project.pbxproj:
2174         * WebProcess/InjectedBundle/API/c/WKBundlePage.h: Bump the version and add comments indicating
2175         which components belong to which versions.
2176
2177 2011-06-30  Mark Rowe  <mrowe@apple.com>
2178
2179         Reviewed by Anders Carlsson.
2180
2181         Make the APIClient template aware of the latest client interface version number.
2182
2183         This will be used in an upcoming patch.
2184
2185         * Shared/APIClient.h:
2186         * UIProcess/WebContextInjectedBundleClient.h:
2187         * UIProcess/WebCookieManagerProxyClient.h:
2188         * UIProcess/WebDatabaseManagerProxyClient.h:
2189         * UIProcess/WebDownloadClient.h:
2190         * UIProcess/WebFindClient.h:
2191         * UIProcess/WebFormClient.h:
2192         * UIProcess/WebGeolocationProvider.h:
2193         * UIProcess/WebHistoryClient.h:
2194         * UIProcess/WebIconDatabaseClient.h:
2195         * UIProcess/WebLoaderClient.h:
2196         * UIProcess/WebPageContextMenuClient.h:
2197         * UIProcess/WebPolicyClient.h:
2198         * UIProcess/WebResourceLoadClient.h:
2199         * UIProcess/WebUIClient.h:
2200         * WebProcess/InjectedBundle/InjectedBundleClient.h:
2201         * WebProcess/InjectedBundle/InjectedBundlePageContextMenuClient.h:
2202         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
2203         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
2204         * WebProcess/InjectedBundle/InjectedBundlePageFullScreenClient.h:
2205         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2206         * WebProcess/InjectedBundle/InjectedBundlePagePolicyClient.h:
2207         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.h:
2208         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
2209
2210 2011-06-30  Mark Rowe  <mrowe@apple.com>
2211
2212         Reviewed by Anders Carlsson.
2213
2214         WebKit2 client interfaces should have constant declaring latest version.
2215
2216         * UIProcess/API/C/WKContext.h:
2217         * UIProcess/API/C/WKCookieManager.h:
2218         * UIProcess/API/C/WKDatabaseManager.h:
2219         * UIProcess/API/C/WKGeolocationManager.h:
2220         * UIProcess/API/C/WKIconDatabase.h:
2221         * UIProcess/API/C/WKPage.h:
2222         * WebProcess/InjectedBundle/API/c/WKBundle.h:
2223         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2224         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.h:
2225
2226 2011-06-30  Anders Carlsson  <andersca@apple.com>
2227
2228         Build fix.
2229
2230         * UIProcess/win/WebPopupMenuProxyWin.h:
2231         (WebKit::WebPopupMenuProxyWin::enclosingScrollableArea):
2232
2233 2011-06-30  Martin Robinson  <mrobinson@igalia.com>
2234
2235         Reviewed by Anders Carlsson.
2236
2237         [GTK] Crash observed with nspluginwrapper and flash
2238         https://bugs.webkit.org/show_bug.cgi?id=62249
2239
2240         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
2241         (WebKit::NPN_InvalidateRect): Guard against null instances here.
2242
2243 2011-06-30  Mark Rowe  <mrowe@apple.com>
2244
2245         Reviewed by Anders Carlsson.
2246
2247         Reinstate WKSecurityOriginGetHost and WKSecurityOriginGetProtocol as wrappers around the correctly-named functions.
2248
2249         They're needed for ABI compatibility.
2250
2251         * Shared/API/c/WKSecurityOrigin.cpp:
2252         (WKSecurityOriginGetHost):
2253         (WKSecurityOriginGetProtocol):
2254
2255 2011-06-29  Darin Adler  <darin@apple.com>
2256
2257         Reviewed by Dan Bernstein.
2258
2259         [Mac] Use system cursors instead of custom bitmaps where possible
2260         https://bugs.webkit.org/show_bug.cgi?id=63679
2261
2262         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
2263         (InitWebCoreSystemInterface): Added WKCursor.
2264
2265 2011-06-29  Darin Adler  <darin@apple.com>
2266
2267         Reviewed by Anders Carlsson.
2268
2269         [WebKit2] Crash loading page that adds/removes frame in DOMContentLoaded/loaded
2270         https://bugs.webkit.org/show_bug.cgi?id=63483
2271
2272         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2273         (WebKit::WebFrameLoaderClient::createFrame): Added a check for null when creating
2274         a frame. Also added a check that was in the WebKit1 code, but not here. Strangely,
2275         the comment from the second check was still here, but not the code.
2276
2277 2011-06-28  Chang Shu  <cshu@webkit.org>
2278
2279         Reviewed by Andreas Kling.
2280
2281         [Qt][WK2] Random crashes in fast/frames/ tests
2282         https://bugs.webkit.org/show_bug.cgi?id=63459
2283
2284         Investigation on the crashes has revealed that sometimes, a frame could
2285         have been destroyed before it is removed from the hierachy in Qt WebKit2 UI process.
2286         The root cause lies in the fact that the order of the two contiguous asynchronous
2287         messages may not be respected on the receiving side. And it is Qt's implementation,
2288         which uses QTimer::startTimer(0), that causes the reverse order. This patch replaces
2289         the timer approach with QMetaObject::invokeMethod approach and no crash happens afterwards.
2290
2291         * Platform/qt/WorkQueueQt.cpp:
2292         (WorkQueue::scheduleWork):
2293
2294 2011-06-28  Balazs Kelemen  <kbalazs@webkit.org>
2295
2296         Reviewed by Kenneth Rohde Christiansen.
2297
2298         [X11][WK2] X error with plugin tests
2299         https://bugs.webkit.org/show_bug.cgi?id=63520
2300
2301         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2302         Never create a pixmap with (0,0) dimensions.
2303         (WebKit::NetscapePlugin::platformGeometryDidChange):
2304         (WebKit::NetscapePlugin::platformPaint):
2305
2306 2011-06-28  Balazs Kelemen  <kbalazs@webkit.org>
2307
2308         Reviewed by Kenneth Rohde Christiansen.
2309
2310         [X11][WK2] plugins/plugin-javascript-access fails
2311         https://bugs.webkit.org/show_bug.cgi?id=63464
2312
2313         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2314         (WebKit::NetscapePluginModule::getPluginInfo):
2315         Determine the name of the plugin.
2316
2317 2011-06-27  Yuta Kitamura  <yutak@chromium.org>
2318
2319         Reviewed by Alexey Proskuryakov.
2320
2321         [WebKit2] Add hixie76WebSocketProtocolEnabled flag to WebPreferences
2322         https://bugs.webkit.org/show_bug.cgi?id=63447
2323
2324         Make a new flag added in WebCore::Settings (useHixie76WebSocketProtocol)
2325         switchable from WebPage and WebPreferences.
2326
2327         * Shared/WebPreferencesStore.h:
2328         * UIProcess/API/C/WKPreferences.cpp:
2329         (WKPreferencesSetHixie76WebSocketProtocolEnabled):
2330         (WKPreferencesGetHixie76WebSocketProtocolEnabled):
2331         * UIProcess/API/C/WKPreferencesPrivate.h:
2332         * WebProcess/WebPage/WebPage.cpp:
2333         (WebKit::WebPage::updatePreferences):
2334
2335 2011-06-27  Jeff Miller  <jeffm@apple.com>
2336
2337         Reviewed by Oliver Hunt.
2338
2339         Web process always pauses on launch
2340         https://bugs.webkit.org/show_bug.cgi?id=63487
2341         
2342         In the absence of the WEBKIT2_PAUSE_WEB_PROCESS_ON_LAUNCH environment variable, only pause the web process on
2343         launch if the shift, control, and alt keys are all held down. This regressed in r89685, which always caused the
2344         web process to pause if the shift and alt keys were not held down.
2345
2346         * WebProcess/WebKitMain.cpp:
2347         (pauseProcessIfNeeded): Add some parentheses.
2348
2349 2011-06-27  Huang Dongsung  <luxtella@company100.net>
2350
2351         Reviewed by Kenneth Rohde Christiansen.
2352
2353         TiledBackingStore endlessly creates and destroys tiles due to an off-by-one
2354         error.
2355         https://bugs.webkit.org/show_bug.cgi?id=62422
2356
2357         REGRESSION(r77286): Remove bottomRight().
2358         REGRESSION(r77312): Change the logic to get the bottom right point.
2359         REGRESSION(r77928): Cause off-by-one error in TiledBackingStore.
2360         REGRESSION(r78783): Cause off-by-one error in TiledDrawingAreaProxy.
2361         REGRESSION(r78785): Cause off-by-one error in TiledDrawingAreaProxy.
2362
2363         If the viewport width equals the contents width, especially in the mobile
2364         device, TiledBackingStore endlessly creates and deletes the rightmost
2365         column and bottom row of tiles.
2366         In the detail, dropTilesOutsideRect() in TiledBackingStore::createTiles()
2367         deletes tiles and setTile(coordinate, Tile::create(this, coordinate)) creates
2368         tiles infinitely.
2369         Modified TiledDrawingAreaProxy also.
2370
2371         * UIProcess/TiledDrawingAreaProxy.cpp:
2372         (WebKit::innerBottomRight):
2373         (WebKit::TiledDrawingAreaProxy::invalidate):
2374         (WebKit::TiledDrawingAreaProxy::paint):
2375         (WebKit::TiledDrawingAreaProxy::createTiles):
2376
2377 2011-06-26  Mark Rowe  <mrowe@apple.com>
2378
2379         Reviewed by Dan Bernstein.
2380
2381         Use a separate file name for Lion's WebKitSystemInterface.
2382
2383         * Configurations/DebugRelease.xcconfig:
2384
2385 2011-06-26  Mark Rowe  <mrowe@apple.com>
2386
2387         Rubber-stamped by Maciej Stachowiak.
2388
2389         <rdar://problem/9679221&9679235> Work around an issue with sandbox.h.
2390
2391         * WebProcess/mac/WebProcessMac.mm:
2392
2393 2011-06-26  Anders Carlsson  <andersca@apple.com>
2394
2395         Reviewed by Dan Bernstein.
2396
2397         Don't use a Mutex for protecting access to the connection queue clients
2398         https://bugs.webkit.org/show_bug.cgi?id=63403
2399
2400         Make sure to only access the queue client vector from the connection work queue.
2401         This gets rid of a lock and ensures that adding/removing clients from callbacks works correctly.
2402
2403         * Platform/CoreIPC/Connection.cpp:
2404         (CoreIPC::Connection::addQueueClient):
2405         (CoreIPC::Connection::removeQueueClient):
2406         (CoreIPC::Connection::addQueueClientOnWorkQueue):
2407         (CoreIPC::Connection::removeQueueClientOnWorkQueue):
2408         (CoreIPC::Connection::processIncomingMessage):
2409         * Platform/CoreIPC/Connection.h:
2410
2411 2011-06-25  Brent Fulgham  <bfulgham@webkit.org>
2412
2413         Unreviewed build correction after r89426.
2414
2415         * Shared/API/c/cairo/WKImageCairo.h: Declare cairo type
2416           as struct (in keeping with other declarations).
2417         * win/WebKit2.vcproj: Add new WKImageCairo.cpp file to
2418           WinCairo build.
2419
2420 2011-06-25  Brent Fulgham  <bfulgham@webkit.org>
2421
2422         Unreviewed build correction after r89503.
2423         See http://trac.webkit.org/changeset/89503. The modifications
2424         to the WebKit2.def need to be mirrored in WebKit2CFLite.def.
2425
2426         * win/WebKit2CFLite.def: Add new exported symbol for isPreloaded.
2427
2428 2011-06-24  Brent Fulgham  <bfulgham@webkit.org>
2429
2430         Unreviewed build correction after r89426.
2431         See http://trac.webkit.org/changeset/89426. The new WebKit2
2432         header file (WKImageCairo.h) is needed.
2433
2434         * win/WebKit2Generated.make: Make sure to copy the WKImageCairo.h
2435         header file to the WebKit2 API directory after building.
2436
2437 2011-06-24  Anders Carlsson  <andersca@apple.com>
2438
2439         Reviewed by John Sullivan.
2440
2441         Drag-and-drop tab in same window makes web process falsely report unresponsiveness
2442         https://bugs.webkit.org/show_bug.cgi?id=63369
2443         <rdar://problem/9673120>
2444
2445         If the view becomes invisible, stop the responsiveness timer, because we might not get any
2446         messages that will cause it to stop (such as painting notifications since we don't paint
2447         when we're not visible).
2448
2449         * UIProcess/WebPageProxy.cpp:
2450         (WebKit::WebPageProxy::viewStateDidChange):
2451
2452 2011-06-24  Anders Carlsson  <andersca@apple.com>
2453
2454         Reviewed by Kevin Decker.
2455
2456         Not possible for plug-ins to override the internal PDF viewer
2457         https://bugs.webkit.org/show_bug.cgi?id=63356
2458         <rdar://problem/9673382>
2459
2460         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2461         (WebKit::WebFrameLoaderClient::transitionToCommittedFromCachedFrame):
2462         (WebKit::WebFrameLoaderClient::transitionToCommittedForNewPage):
2463         Pass the entire resource response to shouldUseCustomRepresentationForResponse.
2464
2465         * WebProcess/WebProcess.cpp:
2466         (WebKit::canPluginHandleResponse):
2467         Ask for the plug-in path for a plug-in that can handle the given resource response.
2468         If we fail to send the message, or if the path comes back empty, we assume that there's no plug-in
2469         that can handle it.
2470
2471         (WebKit::WebProcess::shouldUseCustomRepresentationForResponse):
2472         If the response MIME type is in the m_mimeTypesWithCustomRepresentations map, check if there's
2473         a plug-in that can handle the given response. If that is the case, it should have precedence over
2474         the custom representation.
2475
2476         * WebProcess/WebProcess.h:
2477         Rename shouldUseCustomRepresentationForMIMEType to shouldUseCustomRepresentationForResponse.
2478
2479 2011-06-24  Adam Roben  <aroben@apple.com>
2480
2481         Mac build fix after r89685
2482
2483         * WebProcess/WebKitMain.cpp: Make a Windows-only #include really be Windows-only.
2484
2485 2011-06-24  Adam Roben  <aroben@apple.com>
2486
2487         Make the web process pause dialog look better on Vista/7 and robust against executable
2488         renames
2489
2490         Fixes <http://webkit.org/b/63335> Web process pause dialog looks bad on Vista/7
2491
2492         Reviewed by Brian Weinstein.
2493
2494         * WebProcess/WebKitMain.cpp:
2495         (pauseProcessIfNeeded): Moved code to show the pause dialog here from WebKitMain. We now
2496         fetch the executable name using ::GetModuleFileNameW instead of hard-coding it. The string
2497         we pass to ::MessageBoxW no longer has embedded newlines, which improves its appearance on
2498         Vista/7 (which were doing their own wrapping in addition to our newlines). Appearance is
2499         different but fine on XP. Note that the message text now contains the "[_debug].exe" suffix when
2500         referring to the process; that is different from before but seems fine.
2501         (WebKitMain): Call the new function.
2502
2503 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
2504
2505         Reviewed by Dimitri Glazkov.
2506
2507         Convert shadow DOM-related tests to use window.internals
2508         https://bugs.webkit.org/show_bug.cgi?id=61671
2509
2510         Remove shadow DOM-related methods from WebKit2 API. These are not
2511         required any more.
2512
2513         * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
2514         * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
2515         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
2516         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
2517         * win/WebKit2.def: Re-exports for symbols used by WebCoreTestSupport.
2518         * win/WebKit2CFLite.def: Same for Cairo.
2519
2520 2011-06-24  Carlos Garcia Campos  <cgarcia@igalia.com>
2521
2522         Reviewed by Martin Robinson.
2523
2524         [X11] Do not call NPP_SetWindow with a null window handle on destroy
2525         https://bugs.webkit.org/show_bug.cgi?id=62981
2526
2527         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2528         (WebKit::NetscapePlugin::destroy):
2529
2530 2011-06-23 Jamie Cooley  <james.cooley@nokia.com>
2531
2532         Reviewed by Andreas Kling.
2533
2534         [Qt][WK2] Qt port needs load-from-history implementation
2535         https://bugs.webkit.org/show_bug.cgi?id=57784
2536  
2537         Created "random access" BackForwardHistory public API method,
2538         QWKHistory::goToItemAt(int)
2539
2540         * UIProcess/API/qt/qwkhistory.cpp:
2541         (QWKHistoryItem::QWKHistoryItem::itemRef):
2542         Added access method to fetch WKBackForwardListRef
2543
2544         (QWKHistoryPrivate::QWKHistoryPrivate):
2545         (QWKHistoryPrivate::createHistory):
2546         Updated createHistory method and QWKHistoryPrivate constructor to take a pointer
2547         to the owning QWKPage in addition to the WebBackForwardList. This will be saved so that the
2548         new API can ask the page to load a HistoryItem.
2549
2550         (QWKHistory::goToItemAt):
2551         New Public API. Like QWKHistory::itemAt, callee gives an integer.
2552         <0 means jump back to that item, 0 means the current item, >0 means jump forwards.
2553         If an out-of-range index is given, the function silently fails.
2554         This will invoke WKPageGoToBackForwardListItem.
2555
2556         * UIProcess/API/qt/qwkhistory.h:
2557         * UIProcess/API/qt/qwkhistory_p.h:
2558         * UIProcess/API/qt/qwkpage.cpp:
2559         (QWKPagePrivate::QWKPagePrivate):
2560         Update instantiation of QWKHistory to include QWKPage.
2561
2562         * UIProcess/API/qt/tests/qwkhistory/tst_qwkhistory.cpp:
2563         (tst_QWKHistory::historyForwardBackTest_data):
2564         (tst_QWKHistory::historyForwardBackTest):
2565         Add test content for the new API
2566
2567 2011-06-23  Yael Aharon  <yael.aharon@nokia.com>
2568
2569         Reviewed by Andreas Kling.
2570
2571         [Qt] [WK2] Add drag and drop support
2572         https://bugs.webkit.org/show_bug.cgi?id=62838
2573
2574         Added missing pieces to add support for DnD in QtWebKit.
2575
2576         * Shared/qt/ArgumentCodersQt.cpp: Added.
2577         (CoreIPC::::encode):
2578         (CoreIPC::::decode):
2579         * Shared/qt/ArgumentCodersQt.h: Added.
2580         Encode DragData so that we can transfer the QMimeData between the
2581         WebProcess and the UI Process.
2582         I encode the DragData and not QMimeData directly because we don't
2583         have an associated QMimeData for each message.
2584
2585         * UIProcess/API/qt/qgraphicswkview.cpp:
2586         (QGraphicsWKView::init):
2587         (QGraphicsWKView::dragEnterEvent):
2588         (QGraphicsWKView::dragLeaveEvent):
2589         (QGraphicsWKView::dragMoveEvent):
2590         (QGraphicsWKView::dropEvent):
2591         * UIProcess/API/qt/qgraphicswkview.h:
2592         * UIProcess/API/qt/qwkpage.cpp:
2593         (dropActionToDragOperation):
2594         (dragOperationToDropAction):
2595         (dragOperationToDropActions):
2596         (QWKPagePrivate::dragEnterEvent):
2597         (QWKPagePrivate::dragLeaveEvent):
2598         (QWKPagePrivate::dragMoveEvent):
2599         (QWKPagePrivate::dropEvent):
2600         (QWKPagePrivate::startDrag):
2601
2602         Send drag-and-drop related events to WebKit.
2603
2604         * UIProcess/API/qt/qwkpage_p.h:
2605         * UIProcess/PageClient.h:
2606         * UIProcess/WebPageProxy.cpp:
2607         (WebKit::WebPageProxy::performDragControllerAction):
2608         (WebKit::WebPageProxy::startDrag):
2609         * UIProcess/WebPageProxy.h:
2610
2611          Start the HTML5 drag operation from the UI process, because QDrag
2612          needs a handle to the QWidget under the mouse.
2613
2614         * UIProcess/WebPageProxy.messages.in:
2615
2616         Add message type that takes DragData as a parameter.
2617
2618         * WebKit2.pro:
2619         * WebProcess/WebCoreSupport/WebDragClient.cpp:
2620         * WebProcess/WebCoreSupport/qt/WebDragClientQt.cpp: Added.
2621         (WebKit::convertImageToBitmap):
2622         (WebKit::WebDragClient::startDrag):
2623
2624         Send a message to the UI process to start the HTML5 drag operation.
2625
2626         * WebProcess/WebPage/WebPage.cpp:
2627         (WebKit::WebPage::performDragControllerAction):
2628         * WebProcess/WebPage/WebPage.h:
2629         * WebProcess/WebPage/WebPage.messages.in:
2630
2631         Add message type that takes DragData as a parameter.
2632
2633 2011-06-23  Carlos Garcia Campos  <cgarcia@igalia.com>
2634
2635         Reviewed by Martin Robinson.
2636
2637         [UNIX] Fix compile warnings in NetscapePluginX11.cpp
2638         https://bugs.webkit.org/show_bug.cgi?id=63249
2639
2640         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2641         (WebKit::setXButtonEventFields):
2642         (WebKit::NetscapePlugin::platformHandleMouseEvent):
2643
2644 2011-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2645
2646         Reviewed by Martin Robinson.
2647
2648         [UNIX] Increment/decrement module load conter in NetscapePluginModule::getPluginInfo()
2649         https://bugs.webkit.org/show_bug.cgi?id=63150
2650
2651         Since the method is static, we are using
2652         NetscapePluginModule::getOrCreate() to get the module. If it's
2653         created, the load counter is 0, so that when module is deleted,
2654         shutdown() hasn't been called and the destructor crashes in the
2655         assert that checks the module has been removed from the
2656         initialized module list. We should increment the load counter, and
2657         decrement it before getPluginInfo() returns, so that
2658         decrementLoadCount() will call shutdown() if counter is 0 and the
2659         module will be deleted from the list.
2660
2661         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2662         (WebKit::NetscapePluginModule::getPluginInfo):
2663
2664 2011-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2665
2666         Reviewed by Martin Robinson.
2667
2668         [UNIX] Check for npp directly when getting X display in NetscapeBrowserFuncs
2669         https://bugs.webkit.org/show_bug.cgi?id=63149
2670
2671         NetscapePlugin::fromNPP() shouldn't be called with a null npp, it
2672         contains an assert that make it crash when building with debug enabled.
2673
2674         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
2675         (WebKit::NPN_GetValue):
2676
2677 2011-06-22  Nate Chapin  <japhet@chromium.org>
2678
2679         Reviewed by Adam Barth.
2680
2681         Add win symbols for new window.internals functionality.
2682         https://bugs.webkit.org/show_bug.cgi?id=62066
2683
2684         * win/WebKit2.def:
2685
2686 2011-06-22  Balazs Kelemen  <kbalazs@webkit.org>
2687
2688         Reviewed by Andreas Kling.
2689
2690         [Qt][WK2] Set up plugin tests
2691         https://bugs.webkit.org/show_bug.cgi?id=63066
2692
2693         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2694         (WebKit::WebFrameLoaderClient::createPlugin):
2695         Force windowless mode for the test plugin because we
2696         don't support windowed plugins yet.
2697
2698 2011-06-22  Geoffrey Garen  <ggaren@apple.com>
2699
2700         Reviewed by Oliver Hunt.
2701
2702         Removed unnecessary #include <stdio.h>.
2703
2704         * PluginProcess/mac/PluginProcessMainMac.mm:
2705         * Shared/WebMemorySampler.cpp:
2706         * UIProcess/WebFrameProxy.cpp:
2707         * UIProcess/WebProcessProxy.cpp:
2708         * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
2709         * WebProcess/mac/WebProcessMac.mm: Added #include back to places where it
2710         was needed.
2711
2712 2011-06-22  Balazs Kelemen  <kbalazs@webkit.org>
2713
2714         Unreviewed build fix after r89461.
2715
2716         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2717         (WebKit::NetscapePlugin::platformSetFocus):
2718         Forgot to name the parameter, fix it.
2719
2720 2011-06-22  Balazs Kelemen  <kbalazs@webkit.org>
2721
2722         Reviewed by Darin Adler.
2723
2724         [X11][WK2] Implement NetscapePlugin::platformSetFocus
2725         https://bugs.webkit.org/show_bug.cgi?id=63154
2726
2727         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2728         (WebKit::NetscapePlugin::platformSetFocus):
2729         Implement focus setting based on the WebKit1 path.
2730
2731 2011-06-22  Eunmi Lee  <eunmi15.lee@samsung.com>
2732
2733         Reviewed by Martin Robinson.
2734
2735         Change GtkWidgetBackingStore.h to WidgetBackingStore.h in order to use in the EFL port.
2736         https://bugs.webkit.org/show_bug.cgi?id=62848
2737
2738         Change GtkWidgetBackingStore to WidgetBackingStore in the BackingStore.h and
2739         gtk/BackingStoreGtk.cpp.
2740
2741         * UIProcess/BackingStore.h:
2742         * UIProcess/gtk/BackingStoreGtk.cpp:
2743         (WebKit::BackingStore::incorporateUpdate):
2744
2745 2011-06-22  Adam Roben  <aroben@apple.com>
2746
2747         Don't use an alpha channel when drawing the web page on Windows
2748
2749         We never use the alpha channel in the end anyway (because we never render into a layered
2750         window, which is the only kind of window that supports alpha). And using an alpha channel is
2751         tricky to get right since GDI doesn't support alpha (and often writes 0x0 into the alpha
2752         channel).
2753
2754         Fixes <http://webkit.org/b/63075> <rdar://problem/9648113> REGRESSION (r88978): Text inside
2755         form controls looks really awful on Windows XP
2756
2757         Reviewed by Anders Carlsson.
2758
2759         * WebProcess/WebPage/win/DrawingAreaImplWin.cpp:
2760         (WebKit::DrawingAreaImpl::createGraphicsContext): Specify false for the hasAlpha parameter
2761         to the GraphicsContext constructor.
2762
2763 2011-06-22  Carlos Garcia Campos  <cgarcia@igalia.com>
2764
2765         Reviewed by Martin Robinson.
2766
2767         [GTK] Remove Connection::setShouldCloseConnectionOnProcessTermination()
2768         https://bugs.webkit.org/show_bug.cgi?id=61627
2769
2770         Don't use Connection::setShouldCloseConnectionOnProcessTermination() for the
2771         GTK port, when the process finishes the connection is closed and
2772         the other process is already notified. We still need to monitor
2773         the child process so that it doesn't become a zombie when it dntabi
2774
2775         * Platform/CoreIPC/Connection.h:
2776         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2777         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
2778         (WebKit::childFinishedFunction):
2779         (WebKit::ProcessLauncher::launchProcess):
2780         * UIProcess/WebProcessProxy.cpp:
2781         (WebKit::WebProcessProxy::didFinishLaunching):
2782
2783 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
2784
2785         Reviewed by Kent Tamura.
2786
2787         FileChooser should be only created when we need to choose files.
2788         https://bugs.webkit.org/show_bug.cgi?id=63039
2789
2790         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2791         (WebKit::WebChromeClient::runOpenPanel): Changed to use settings.
2792
2793 2011-06-22  Martin Robinson  <mrobinson@igalia.com>
2794
2795         Reviewed by Adam Roben.
2796
2797         [GTK] Implement pixel dump support for WebKitTestRunner
2798         https://bugs.webkit.org/show_bug.cgi?id=58242
2799
2800         * GNUmakefile.am: Added new Cairo specific image handling files to the build.
2801         * Shared/API/c/cairo/WKImageCairo.cpp: Copied from Source/WebKit2/Shared/cairo/ShareableBitmapCairo.cpp.
2802         (WKImageCreateCairoSurface): Added
2803         (WKImageCreateFromCairoSurface): Added
2804         * Shared/API/c/cairo/WKImageCairo.h: Copied from Source/WebKit2/Shared/cairo/ShareableBitmapCairo.cpp.
2805
2806 2011-06-21  MORITA Hajime  <morrita@google.com>
2807
2808         Unreviewed, rolling out r89401 and r89403.
2809         http://trac.webkit.org/changeset/89401
2810         http://trac.webkit.org/changeset/89403
2811         https://bugs.webkit.org/show_bug.cgi?id=62970
2812
2813         Breaks mac build and mistakenly enables the spellcheck API
2814
2815         * Configurations/FeatureDefines.xcconfig:
2816
2817 2011-06-20  MORITA Hajime  <morrita@google.com>
2818
2819         Reviewed by Kent Tamura.
2820
2821         Spellcheck API should be build-able.
2822         https://bugs.webkit.org/show_bug.cgi?id=62970
2823
2824         No new tests, changing only build related files
2825
2826         * Configurations/FeatureDefines.xcconfig:
2827
2828 2011-06-21  Jer Noble  <jer.noble@apple.com>
2829
2830         Reviewed by Simon Fraser.
2831
2832         REGRESSION: Fullscreen videos are broken (affects embedded vimeo, vimeo.com, and apple.com)
2833         https://bugs.webkit.org/show_bug.cgi?id=63098
2834         <rdar://problem/9645393>
2835
2836         Force a repaint after completing entering full-screen mode only after the notification 
2837         is sent for the QTMovie to tear down its layer.  Then, the QTMovie will build up its
2838         layer again during the repaint.
2839
2840         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
2841         (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer):
2842
2843 2011-06-21  Yael Aharon  <yael.aharon@nokia.com>
2844
2845         Reviewed by Kenneth Rohde Christiansen.
2846
2847         [Qt] Add an internal API for accessing the QGraphicsView.
2848         https://bugs.webkit.org/show_bug.cgi?id=63095
2849
2850         * UIProcess/API/qt/qwkpage.cpp:
2851         (QWKPagePrivate::ownerWidget):
2852         * UIProcess/API/qt/qwkpage_p.h:
2853
2854 2011-06-21  Lukasz Slachciak  <l.slachciak@samsung.com>
2855
2856         Reviewed by Sam Weinig.
2857
2858         [GTK] [WK2] WebKit2 build break fixes.
2859         https://bugs.webkit.org/show_bug.cgi?id=62950
2860
2861         When building WebKit2 for GTK there are few build breaks connected with missing include files.
2862
2863         * Platform/unix/SharedMemoryUnix.cpp:
2864         * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
2865         * UIProcess/API/gtk/PageClientImpl.cpp:
2866
2867 2011-06-20  Martin Robinson  <mrobinson@igalia.com>
2868
2869         Reviewed by Eric Seidel.
2870
2871         [GTK] [WebKit2] Disable GDK double buffering
2872         https://bugs.webkit.org/show_bug.cgi?id=62770
2873
2874         Explicitly disable GDK double-buffering when instantiating
2875         a WebKit2 view widget. This prevents one extra pixmap copy.
2876
2877         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
2878         (webkit_web_view_base_init):
2879
2880 2011-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2881
2882         Reviewed by Martin Robinson.
2883
2884         [UNIX] Don't use WebCore::PluginPackage to get plugin information
2885         https://bugs.webkit.org/show_bug.cgi?id=62899
2886
2887         The problem is that both PluginPackage in WebCore and
2888         NetscapePluginModule in webkit2 install their own netscape browser
2889         functions and that can cause conflicts in some situations.
2890
2891         * Shared/Plugins/Netscape/NetscapePluginModule.h: Add helper
2892         function to set plugin mime type descriptions.
2893         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2894         (WebKit::NetscapePluginModule::setMIMEDescription): Helper
2895         function to set plugin mime type descriptions.
2896         (WebKit::NetscapePluginModule::getPluginInfo): Use
2897         NetscapePluginModule instead of PluginPackage.
2898         * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp: Remove unneeded
2899         header include.
2900         * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
2901         (WebKit::NPN_GetValue): Do not try to get the XDisplay if the
2902         plugin doesn't have a view. It fixes a crash with flash plugin and
2903         matches WebCore.
2904
2905 2011-06-20  Carlos Garcia Campos  <cgarcia@igalia.com>
2906
2907         Reviewed by Xan Lopez.
2908
2909         [GTK] Split libWebCore into two libWebCore and libWebCoreGtk
2910         https://bugs.webkit.org/show_bug.cgi?id=60539
2911
2912         * GNUmakefile.am: Link to libWebCoreGtk.la too.
2913
2914 2011-06-19  MORITA Hajime <morrita@google.com>
2915
2916         Unreviewed wincairo build fix.
2917
2918         * win/WebKit2CFLite.def:
2919
2920 2011-06-19  MORITA Hajime  <morrita@google.com>
2921
2922         Reviewed by Dimitri Glazkov.
2923
2924         The internals object should have createShadowContentElement()
2925         https://bugs.webkit.org/show_bug.cgi?id=62432
2926
2927         * win/WebKit2.def: Added some more symbols necessary for
2928         window.internals to function to the global symbol list.
2929
2930 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
2931
2932         Reviewed by Darin Adler.
2933
2934         Separate concerns of loading file icons and choosing files.
2935         https://bugs.webkit.org/show_bug.cgi?id=62931
2936
2937         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2938         (WebKit::WebChromeClient::loadIconForFiles): Renamed.
2939         * WebProcess/WebCoreSupport/WebChromeClient.h:
2940
2941 2011-06-18  Eunmi Lee  <eunmi15.lee@samsung.com>
2942
2943         Reviewed by Sam Weinig.
2944
2945         [EFL][WK2] add WebKit2 EFL port's NativeWebMouseEvent, NativeWebWheelEvent and NativeWebKeyboardEvent
2946         https://bugs.webkit.org/show_bug.cgi?id=61993
2947
2948         Add native mouse and keyboard event classes to convert EFL's events to NativeWebEvent.
2949
2950         * Shared/NativeWebKeyboardEvent.h:
2951         (WebKit::NativeWebKeyboardEvent::nativeEvent):
2952         * Shared/NativeWebMouseEvent.h:
2953         (WebKit::NativeWebMouseEvent::nativeEvent):
2954         * Shared/NativeWebWheelEvent.h:
2955         (WebKit::NativeWebWheelEvent::nativeEvent):
2956         * Shared/efl/NativeWebKeyboardEventEfl.cpp: Added.
2957         (WebKit::NativeWebKeyboardEvent::NativeWebKeyboardEvent):
2958         * Shared/efl/NativeWebMouseEventEfl.cpp: Added.
2959         (WebKit::NativeWebMouseEvent::NativeWebMouseEvent):
2960         * Shared/efl/NativeWebWheelEventEfl.cpp: Added.
2961         (WebKit::NativeWebWheelEvent::NativeWebWheelEvent):
2962         * Shared/efl/WebEventFactory.cpp: Added.
2963         (WebKit::modifiersForEvent):
2964         (WebKit::buttonForEvent):
2965         (WebKit::clickCountForEvent):
2966         (WebKit::WebEventFactory::createWebMouseEvent):
2967         (WebKit::WebEventFactory::createWebWheelEvent):
2968         (WebKit::WebEventFactory::createWebKeyboardEvent):
2969         * Shared/efl/WebEventFactory.h: Added.
2970
2971 2011-06-18  Eunmi Lee  <eunmi15.lee@samsung.com>
2972
2973         Reviewed by Sam Weinig.
2974
2975         [EFL][WK2] Add missing functions of EFL port's PageClientImpl
2976         https://bugs.webkit.org/show_bug.cgi?id=62711
2977
2978         Three functions are added in the PageClient.h, so add them to the EFL's PageClientImpl.
2979
2980         * UIProcess/API/efl/PageClientImpl.cpp:
2981         (WebKit::PageClientImpl::screenToWindow):
2982         (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
2983         (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
2984         * UIProcess/API/efl/PageClientImpl.h:
2985
2986 2011-06-17  Brent Fulgham  <bfulgham@webkit.org>
2987
2988         [WinCairo] Unreviewed build fix after r89060 and r89161.
2989
2990         * Shared/win/WebCoreArgumentCodersWin.cpp: WinCairo build fixes
2991           (1) Include proper header files for WinCairo build
2992           (2) Exclude unused namespace declaration
2993
2994 2011-06-17  Anders Carlsson  <andersca@apple.com>
2995
2996         Reviewed by Sam Weinig.
2997
2998         Remove unused ArgumentEncoder and ArgumentDecoder functions
2999         https://bugs.webkit.org/show_bug.cgi?id=62909
3000
3001         * Platform/CoreIPC/ArgumentDecoder.cpp:
3002         * Platform/CoreIPC/ArgumentDecoder.h:
3003         * Platform/CoreIPC/ArgumentEncoder.cpp:
3004         * Platform/CoreIPC/ArgumentEncoder.h:
3005         
3006         * Shared/win/PlatformCertificateInfo.cpp:
3007         (WebKit::PlatformCertificateInfo::encode):
3008         (WebKit::PlatformCertificateInfo::decode):
3009         Replace calls to encodeBytes/decodeBytes with
3010         encodeVariableLengthByteArray/decodeVariableLengthByteArray.
3011
3012 2011-06-17  Anders Carlsson  <andersca@apple.com>
3013
3014         Yet another Qt build fix attempt.
3015
3016         * UIProcess/API/qt/ClientImpl.cpp:
3017         * UIProcess/API/qt/qgraphicswkview.cpp:
3018         * UIProcess/API/qt/qwkpage.cpp:
3019         * UIProcess/API/qt/qwkpage_p.h:
3020
3021 2011-06-17  Anders Carlsson  <andersca@apple.com>
3022
3023         Another attempt at fixing the Qt build.
3024
3025         * UIProcess/API/qt/ClientImpl.cpp:
3026         * UIProcess/API/qt/qgraphicswkview.cpp:
3027         * UIProcess/API/qt/qwkcontext.cpp:
3028
3029 2011-06-17  Anders Carlsson  <andersca@apple.com>
3030
3031         Fix Qt build.
3032
3033         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
3034
3035 2011-06-17  Anders Carlsson  <andersca@apple.com>
3036
3037         Windows build fix.
3038
3039         * UIProcess/win/WebView.cpp:
3040
3041 2011-06-17  Anders Carlsson  <andersca@apple.com>
3042
3043         Reviewed by Sam Weinig.
3044
3045         Move the remaining WebCore argument coders to the .cpp file
3046         https://bugs.webkit.org/show_bug.cgi?id=62874
3047
3048         Also add includes that other files need that used to be provided by WebCoreArgumentCoders.h,
3049         and get rid of the LAZY_NATIVE_CURSOR #if check because all WebKit2 platforms now support it.
3050         
3051         * Shared/ContextMenuState.h:
3052         * Shared/WebCoreArgumentCoders.cpp:
3053         (CoreIPC::::encode):
3054         (CoreIPC::::decode):
3055         * Shared/WebCoreArgumentCoders.h:
3056         * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
3057         * Shared/mac/WebCoreArgumentCodersMac.mm:
3058         * Shared/qt/WebCoreArgumentCodersQt.cpp:
3059         * UIProcess/API/mac/PDFViewController.mm:
3060         * UIProcess/PageClient.h:
3061         * UIProcess/WebIconDatabase.cpp:
3062         * UIProcess/WebPageProxy.cpp:
3063         * UIProcess/WebPageProxy.h:
3064         * UIProcess/mac/WKFullScreenWindowController.mm:
3065
3066 2011-06-17  Chang Shu  <cshu@webkit.org>
3067
3068         Reviewed by Anders Carlsson.
3069
3070         [Qt] [WK2] Debug info leaks to stdout from plugins in Qt WebKit2 layout tests
3071         https://bugs.webkit.org/show_bug.cgi?id=61940
3072
3073         Tempararily supress stdout during getPluginInfo during which debug info was leaked out.
3074
3075         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
3076         (WebKit::StdoutRedirect::StdoutRedirect):
3077         (WebKit::StdoutRedirect::~StdoutRedirect):
3078         (WebKit::NetscapePluginModule::getPluginInfo):
3079
3080 2011-06-17  Anders Carlsson  <andersca@apple.com>
3081
3082         Reviewed by Andreas Kling.
3083
3084         Remove WebCore:: qualifier from names in WebPageProxy.
3085
3086         * UIProcess/WebPageProxy.cpp:
3087         (WebKit::WebPageProxy::dragEntered):
3088         (WebKit::WebPageProxy::dragUpdated):
3089         (WebKit::WebPageProxy::dragExited):
3090         (WebKit::WebPageProxy::performDrag):
3091         (WebKit::WebPageProxy::performDragControllerAction):
3092         (WebKit::WebPageProxy::dragEnded):
3093         (WebKit::WebPageProxy::setResizesToContentsUsingLayoutSize):
3094         (WebKit::WebPageProxy::unableToImplementPolicy):
3095         (WebKit::WebPageProxy::didChangeContentsSize):
3096         (WebKit::WebPageProxy::didFindZoomableArea):
3097         (WebKit::WebPageProxy::findZoomableAreaForPoint):
3098         (WebKit::WebPageProxy::setComposition):
3099         (WebKit::WebPageProxy::checkTextOfParagraph):
3100         (WebKit::WebPageProxy::checkGrammarOfString):
3101         (WebKit::WebPageProxy::setCursor):
3102         (WebKit::WebPageProxy::computedPagesCallback):
3103         (WebKit::WebPageProxy::canAuthenticateAgainstProtectionSpaceInFrame):
3104         (WebKit::WebPageProxy::didReceiveAuthenticationChallenge):
3105         (WebKit::WebPageProxy::showCorrectionPanel):
3106         (WebKit::WebPageProxy::dismissCorrectionPanel):
3107         (WebKit::WebPageProxy::dismissCorrectionPanelSoon):
3108         (WebKit::WebPageProxy::recordAutocorrectionResponse):
3109
3110 2011-06-17  Anders Carlsson  <andersca@apple.com>
3111
3112         Reviewed by Darin Adler.
3113
3114         Fix message generator to include headers for all types
3115         https://bugs.webkit.org/show_bug.cgi?id=62870
3116
3117         Previously, if we found an argument coder header for a type, we'd assume
3118         that that header includes the necessary headers for the type.
3119
3120         * Scripts/webkit2/messages.py:
3121         * Scripts/webkit2/messages_unittest.py:
3122
3123 2011-06-17  Chang Shu  <cshu@webkit.org>
3124
3125         Reviewed by Andreas Kling.
3126
3127         [Qt] [WK2] Support undo/redo in MiniBrowser
3128         https://bugs.webkit.org/show_bug.cgi?id=62809
3129
3130         * UIProcess/API/qt/qwkpage.cpp:
3131         (QWKPage::action):
3132         * UIProcess/API/qt/qwkpage.h:
3133
3134 2011-06-17  Carlos Garcia Campos  <cgarcia@igalia.com>
3135
3136         Unreviewed. Fix WebKit2 GTK build after r89060.
3137
3138         * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
3139         (CoreIPC::::encode):
3140
3141 2011-06-16  Anders Carlsson  <andersca@apple.com>
3142
3143         Reviewed by Sam Weinig.
3144
3145         Get rid of CoreIPC::In and CoreIPC::Out from some argument coders
3146         https://bugs.webkit.org/show_bug.cgi?id=62832
3147
3148         * Shared/OriginAndDatabases.cpp:
3149         (WebKit::OriginAndDatabases::encode):
3150         (WebKit::OriginAndDatabases::decode):
3151         * Shared/SecurityOriginData.cpp:
3152         (WebKit::SecurityOriginData::encode):
3153         (WebKit::SecurityOriginData::decode):
3154         * Shared/WebKeyboardEvent.cpp:
3155         (WebKit::WebKeyboardEvent::encode):
3156         (WebKit::WebKeyboardEvent::decode):
3157         * Shared/WebOpenPanelParameters.cpp:
3158         (WebKit::WebOpenPanelParameters::Data::encode):
3159         (WebKit::WebOpenPanelParameters::Data::decode):
3160         * Shared/WebPreferencesStore.cpp:
3161         (WebKit::WebPreferencesStore::encode):
3162         (WebKit::WebPreferencesStore::decode):
3163
3164 2011-06-16  Anders Carlsson  <andersca@apple.com>
3165
3166         Reviewed by Sam Weinig.
3167
3168         Cleanup ResourceRequest, ResourceResponse and ResourceError argument coders
3169         https://bugs.webkit.org/show_bug.cgi?id=62803
3170
3171         Get rid of the free encode/decode functions and move the template specializations to their
3172         respective implementation files instead.
3173
3174         * Shared/WebCoreArgumentCoders.h:
3175         * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
3176         (CoreIPC::::encode):
3177         (CoreIPC::::decode):
3178         * Shared/mac/WebCoreArgumentCodersMac.mm:
3179         (CoreIPC::::encode):
3180         (CoreIPC::::decode):
3181         * Shared/qt/WebCoreArgumentCodersQt.cpp:
3182         (CoreIPC::::encode):
3183         (CoreIPC::::decode):
3184         * Shared/win/WebCoreArgumentCodersWin.cpp:
3185         (CoreIPC::::encode):
3186         (CoreIPC::::decode):
3187
3188 2011-06-16  Chang Shu  <cshu@webkit.org>
3189
3190         Reviewed by Sam Weinig.
3191
3192         [Qt] [WK2] Qt WebKit2 needs undo/redo support
3193         https://bugs.webkit.org/show_bug.cgi?id=62637
3194
3195         Implement undo/redo support for document.execCommand().
3196
3197         * UIProcess/API/qt/qwkpage.cpp:
3198         (QWKPagePrivate::QWKPagePrivate):
3199         (QWKPagePrivate::~QWKPagePrivate):
3200         (QWKPagePrivate::registerEditCommand):
3201         (QWKPagePrivate::clearAllEditCommands):
3202         (QWKPagePrivate::canUndoRedo):
3203         (QWKPagePrivate::executeUndoRedo):
3204         * UIProcess/API/qt/qwkpage_p.h:
3205         * UIProcess/qt/WebUndoCommandQt.cpp: Added.
3206         (WebUndoCommandQt::WebUndoCommandQt):
3207         (WebUndoCommandQt::~WebUndoCommandQt):
3208         (WebUndoCommandQt::redo):
3209         (WebUndoCommandQt::undo):
3210         * UIProcess/qt/WebUndoCommandQt.h: Added.
3211         (WebUndoCommandQt::inUndoRedo):
3212         * WebKit2.pro:
3213
3214 2011-06-16  Anders Carlsson  <andersca@apple.com>
3215
3216         Fix build.
3217
3218         * Shared/WebCoreArgumentCoders.cpp:
3219         * Shared/WebCoreArgumentCoders.h:
3220
3221 2011-06-15  Anders Carlsson  <andersca@apple.com>
3222
3223         Reviewed by Sam Weinig.
3224
3225         Move more argument coders to WebCoreArgumentCoders and clean up the animation coders
3226         https://bugs.webkit.org/show_bug.cgi?id=62760
3227
3228         * Shared/WebCoreArgumentCoders.cpp:
3229         (CoreIPC::::encode):
3230         (CoreIPC::::decode):
3231         (CoreIPC::encodeOperation):
3232         (CoreIPC::decodeOperation):
3233         (CoreIPC::encodeBoolAndValue):
3234         (CoreIPC::encodeBoolAndEnumValue):
3235         (CoreIPC::decodeBoolAndValue):
3236         (CoreIPC::decodeBoolAndEnumValue):
3237         * Shared/WebCoreArgumentCoders.h:
3238         * Shared/mac/ArgumentCodersMac.h:
3239         * Shared/mac/ArgumentCodersMac.mm:
3240         * Shared/mac/WebCoreArgumentCodersMac.mm:
3241         (CoreIPC::::encode):
3242         (CoreIPC::::decode):
3243
3244 2011-06-16  Sangyong Park  <sy302.park@gmail.com>
3245
3246         Reviewed by Martin Robinson.
3247
3248         [GTK] Implement ResourceRequest and ResourceResponse encoder/decoder
3249         https://bugs.webkit.org/show_bug.cgi?id=55934
3250
3251         * Shared/gtk/WebCoreArgumentCodersGtk.cpp:
3252         (CoreIPC::encodeResourceRequest):
3253         (CoreIPC::decodeResourceRequest):
3254         (CoreIPC::encodeResourceResponse):
3255         (CoreIPC::decodeResourceResponse):
3256
3257 2011-06-16  Carlos Garcia Campos  <cgarcia@igalia.com>
3258
3259         Reviewed by Xan Lopez.
3260
3261         [GTK] Remove support for GTK+2 in WebKit2
3262         https://bugs.webkit.org/show_bug.cgi?id=62794
3263
3264         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
3265         (webkitWebViewBaseRealize):
3266         (webkitWebViewBaseDraw):
3267         (webkitWebViewBaseQueryTooltip):
3268         (webkit_web_view_base_class_init):
3269         (webkitWebViewBaseSetTooltipText):
3270         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
3271         (WebKit::WebContextMenuProxyGtk::menuPositionFunction):
3272         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
3273         (WebKit::moduleMixesGtkSymbols):
3274
3275 2011-06-15  Adam Barth  <abarth@webkit.org>
3276
3277         Reviewed by Eric Seidel.
3278
3279         Remove ScriptController::setAllowPopupsFromPlugin
3280         https://bugs.webkit.org/show_bug.cgi?id=62706
3281
3282         * WebProcess/Plugins/PluginView.cpp:
3283         (WebKit::PluginView::performJavaScriptURLRequest):
3284         (WebKit::PluginView::evaluate):
3285
3286 2011-06-15  Ryuan Choi  <ryuan.choi@samsung.com>
3287
3288         Rubber stamped by Eric Seidel.
3289
3290         [CMAKE][WK2] Add an option to build webkit2.
3291         https://bugs.webkit.org/show_bug.cgi?id=62260
3292
3293         Add script to build WebKit2 using CMake.
3294
3295         * CMakeLists.txt: Added.
3296
3297 2011-06-15  John Sullivan  <sullivan@apple.com>
3298
3299         Reviewed by Sam Weinig.
3300
3301         WKSecurityOriginGetProtocol and WKSecurityOriginGetHost are named wrong because they return copied strings
3302         <https://bugs.webkit.org/show_bug.cgi?id=62763>
3303         <rdar://problem/9618071>
3304
3305         * Shared/API/c/WKSecurityOrigin.cpp:
3306         (WKSecurityOriginCopyProtocol):
3307         Renamed to use "Copy" instead of "Get" because it returns a copy.
3308         (WKSecurityOriginCopyHost):
3309         Ditto.
3310
3311         * Shared/API/c/WKSecurityOrigin.h:
3312         Updated declarations.
3313
3314 2011-06-14  Jon Honeycutt  <jhoneycutt@apple.com>
3315
3316         REGRESSION(78201): Windowless Flash plug-ins are transparent on some sites
3317         https://bugs.webkit.org/show_bug.cgi?id=62690
3318         <rdar://problem/9512026>
3319
3320         Reviewed by Ada Chan.
3321
3322         The bug arises when mixing CoreGraphics and GDI. When we create a Windows
3323         bitmap for a windowless plug-in to draw into, we first fill it with "clear",
3324         or all 0s. If the plug-in uses GDI to draw, the GDI calls will ignore the
3325         alpha channel, and if we then use CG to blend this bitmap onto the
3326         GraphicsContext for the rest of the page, CG will treat the 0-filled
3327         alpha channel as being transparent.
3328
3329         To fix this, on Windows, use a GDI-backed GraphicsContext to paint the
3330         page in the WebProcess, and use GDI to blit from the UpdateInfo to the
3331         backing store in the UI process.
3332
3333         * Platform/SharedMemory.h:
3334         (WebKit::SharedMemory::handle):
3335         Return the handle for the memory.
3336
3337         * Shared/ShareableBitmap.h:
3338         Declared windowsContext() to return a HDC with the bitmap selected into it.
3339         Added members to store the HDC and the HBITMAP.
3340
3341         * Shared/win/ShareableBitmapWin.cpp: Added.
3342         (WebKit::ShareableBitmap::windowsContext):
3343         Get the screen DC, and create a compatible DC from it. Create a DIB
3344         section backed by the shared memory, select it into the context, and
3345         return it.
3346
3347         * UIProcess/win/BackingStoreWin.cpp:
3348         (WebKit::BackingStore::incorporateUpdate):
3349         Use GDI to blit from the update info's bitmap into the backing store bitmap.
3350
3351         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3352         (WebKit::DrawingAreaImpl::createGraphicsContext):
3353         Return a GraphicsContext from the ShareableBitmap.
3354         (WebKit::DrawingAreaImpl::display):
3355         Call createGraphicsContext(), and pass the ShareableBitmap.
3356
3357         * WebProcess/WebPage/DrawingAreaImpl.h:
3358         Declare createGraphicsContext(), which on Windows will create a GDI-backed
3359         GraphicsContext.
3360
3361         * WebProcess/WebPage/win/DrawingAreaImplWin.cpp: Added.
3362         (WebKit::DrawingAreaImpl::createGraphicsContext):
3363         Get a Windows context for the bitmap, and create and return a new
3364         GraphicsContext using the DC.
3365
3366         * win/WebKit2.vcproj:
3367         Added new files.
3368
3369 2011-06-15  Anders Carlsson  <andersca@apple.com>
3370
3371         Reviewed by Sam Weinig.
3372
3373         Move more argument coders to WebCoreArgumentCoders.cpp
3374         https://bugs.webkit.org/show_bug.cgi?id=62755
3375
3376         * Shared/WebCoreArgumentCoders.cpp:
3377         (CoreIPC::::decode):
3378         (CoreIPC::::encode):
3379         (CoreIPC::encodeImage):
3380         (CoreIPC::decodeImage):
3381         * Shared/WebCoreArgumentCoders.h:
3382
3383 2011-06-15  Anders Carlsson  <andersca@apple.com>
3384
3385         Reviewed by Darin Adler.
3386
3387         Add ShareableBitmap::createImage and get rid of WebCoreArgumentCodersCG.cpp
3388         https://bugs.webkit.org/show_bug.cgi?id=62742
3389
3390         * Shared/ShareableBitmap.h:
3391         Move createImage out of the #if PLATFORM(QT) section.
3392
3393         * Shared/WebCoreArgumentCoders.cpp:
3394         (CoreIPC::decodeImage):
3395         Call ShareableBitmap::createImage.
3396
3397         * Shared/WebCoreArgumentCoders.h:
3398         remove createImage function declaration.
3399
3400         * Shared/cairo/ShareableBitmapCairo.cpp:
3401         (WebKit::ShareableBitmap::createImage):
3402         Add implementation.
3403
3404         * Shared/cg/ShareableBitmapCG.cpp:
3405         (WebKit::ShareableBitmap::createGraphicsContext):
3406         (WebKit::ShareableBitmap::createImage):
3407         Move createImage implementation from WebCoreArgumentCodersCG.cpp here.
3408
3409         * WebKit2.xcodeproj/project.pbxproj:
3410         * win/WebKit2.vcproj:
3411         Update projects.
3412
3413 2011-06-15  Anders Carlsson  <andersca@apple.com>
3414
3415         Reviewed by Alexey Proskuryakov.
3416
3417         Move some argument coders to WebCoreArgumentCoders.cpp
3418         https://bugs.webkit.org/show_bug.cgi?id=62739
3419
3420         * GNUmakefile.am:
3421         * Shared/WebCoreArgumentCoders.cpp:
3422         (CoreIPC::::encode):
3423         (CoreIPC::::decode):
3424         * Shared/WebCoreArgumentCoders.h:
3425         * WebKit2.pro:
3426
3427 2011-06-15  Anders Carlsson  <andersca@apple.com>
3428
3429         Reviewed by Sam Weinig.
3430
3431         Fix possible null dereference in webSecKeychainItemCreateFromContentOnMainThread
3432         https://bugs.webkit.org/show_bug.cgi?id=62736
3433         <rdar://problem/9601595>
3434
3435         * WebProcess/mac/KeychainItemShimMethods.mm:
3436         (WebKit::webSecKeychainItemCreateFromContentOnMainThread):
3437         SecKeychainItemCreateFromContent can potentially return a null keychain item, so add a null check before trying to retain it.
3438
3439 2011-06-15  Anders Carlsson  <andersca@apple.com>
3440
3441         Reviewed by Dan Bernstein.
3442
3443         Ignore responsiveness timer callbacks on closed pages
3444         https://bugs.webkit.org/show_bug.cgi?id=62735
3445         <rdar://problem/9511295>
3446
3447         * UIProcess/WebPageProxy.cpp:
3448         (WebKit::WebPageProxy::close):
3449         Use nullptr instead of clear.
3450
3451         (WebKit::WebPageProxy::processDidBecomeUnresponsive):
3452         Return early if the page isn't valid.
3453
3454         (WebKit::WebPageProxy::processDidBecomeResponsive):
3455         Ditto.
3456
3457         (WebKit::WebPageProxy::updateBackingStoreDiscardableState):
3458         Assert that the page is valid.
3459
3460 2011-06-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3461
3462         Unreviewed, rolling out r88907.
3463         http://trac.webkit.org/changeset/88907
3464         https://bugs.webkit.org/show_bug.cgi?id=62732
3465
3466         See comment #15 by Nikolas Zimmermann on bug 62527 regarding
3467         the deprecation of makeString() (Requested by acidx on
3468         #webkit).
3469
3470         * UIProcess/efl/WebPageProxyEfl.cpp:
3471         (WebKit::WebPageProxy::standardUserAgent):
3472
3473 2011-06-15  Csaba Osztrogonác  <ossy@webkit.org>
3474
3475         [Qt][WK2] Unreviewed rolling out r88799, because it made web process crash.
3476
3477         * Scripts/webkit2/messages.py:
3478         * Shared/LayerTreeContext.h:
3479         * Shared/qt/LayerTreeContextQt.cpp:
3480         (WebKit::LayerTreeContext::LayerTreeContext):
3481         (WebKit::LayerTreeContext::~LayerTreeContext):
3482         (WebKit::LayerTreeContext::encode):
3483         (WebKit::LayerTreeContext::decode):
3484         (WebKit::LayerTreeContext::isEmpty):
3485         (WebKit::operator==):
3486         * UIProcess/DrawingAreaProxy.h:
3487         * UIProcess/DrawingAreaProxy.messages.in:
3488         * WebKit2.pro:
3489         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
3490         (WebCore::collectCompositingInfoForThisLayer):
3491         * WebProcess/WebPage/LayerTreeHost.cpp:
3492         (WebKit::LayerTreeHost::create):
3493         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
3494         * WebProcess/WebPage/qt/LayerTreeHostQt.h: Removed.
3495
3496 2011-06-14  Eunmi Lee  <eunmi15.lee@samsung.com>
3497
3498         Reviewed by Sam Weinig.
3499
3500         [EFL][WK2] Change string operation to makeString()
3501         https://bugs.webkit.org/show_bug.cgi?id=62527
3502
3503         Use makeString() because it is better than creating individual strings and concatenating them.
3504
3505         * UIProcess/efl/WebPageProxyEfl.cpp:
3506         (WebKit::WebPageProxy::standardUserAgent):
3507
3508 2011-06-14  Sam Weinig  <sam@webkit.org>
3509
3510         Reviewed by Simon Fraser.
3511
3512         Follow up for Callers should be robust against WebImage::create() returning an image with a null snapshot
3513         https://bugs.webkit.org/show_bug.cgi?id=62666
3514
3515         * Shared/API/c/cg/WKImageCG.cpp:
3516         (WKImageCreateCGImage):
3517         (WKImageCreateFromCGImage):
3518         Don't null check the arguments (as per our API design) or the direct result of WebImage::create.
3519
3520         * Shared/UserMessageCoders.h:
3521         (WebKit::UserMessageEncoder::baseEncode):
3522         Remove redundant check and make not being able to create a handle the same
3523         as not being backed by shareable memory.
3524
3525 2011-06-14  John Sullivan  <sullivan@apple.com>
3526
3527         Reviewed by Ada Chan.
3528