2011-06-14 Anders Carlsson <andersca@apple.com>
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2011-06-14  Anders Carlsson  <andersca@apple.com>
2
3         Reviewed by Sam Weinig.
4
5         Move string ArgumentCoder template specializations out into a .cpp file
6         https://bugs.webkit.org/show_bug.cgi?id=62660
7
8         * GNUmakefile.am:
9         * Platform/CoreIPC/ArgumentCoders.cpp: Added.
10         (CoreIPC::::encode):
11         (CoreIPC::::decode):
12         * Platform/CoreIPC/ArgumentCoders.h:
13         * WebKit2.pro:
14         * WebKit2.xcodeproj/project.pbxproj:
15         * win/WebKit2.vcproj:
16
17 2011-06-14  Anders Carlsson  <andersca@apple.com>
18
19         Reviewed by Sam Weinig.
20
21         Remove PluginInfoStore::Plugin typedef
22         https://bugs.webkit.org/show_bug.cgi?id=62657
23
24         * UIProcess/Plugins/PluginInfoStore.h:
25         * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
26         (WebKit::PluginInfoStore::getPluginInfo):
27         (WebKit::PluginInfoStore::shouldUsePlugin):
28
29 2011-06-14  Anders Carlsson  <andersca@apple.com>
30
31         Reviewed by Sam Weinig.
32
33         Create the PluginModuleInfo class and reverse the typedef so that PluginInfoStore::Plugin is now a typedef
34         https://bugs.webkit.org/show_bug.cgi?id=62654
35
36         * UIProcess/Plugins/PluginInfoStore.cpp:
37         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
38         (WebKit::PluginInfoStore::loadPlugin):
39         (WebKit::PluginInfoStore::findPluginForMIMEType):
40         (WebKit::PluginInfoStore::findPluginForExtension):
41         (WebKit::PluginInfoStore::findPlugin):
42         (WebKit::PluginInfoStore::infoForPluginWithPath):
43         * UIProcess/Plugins/PluginInfoStore.h:
44         * UIProcess/Plugins/PluginProcessManager.cpp:
45         (WebKit::PluginProcessManager::getPluginProcessConnection):
46         * UIProcess/Plugins/PluginProcessProxy.cpp:
47         (WebKit::PluginProcessProxy::PluginProcessProxy):
48         * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
49         (WebKit::WebPluginSiteDataManager::getSitesWithData):
50         (WebKit::WebPluginSiteDataManager::clearSiteData):
51         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
52         (WebKit::PluginInfoStore::getPluginInfo):
53         (WebKit::PluginInfoStore::shouldUsePlugin):
54         * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp:
55         (WebKit::PluginInfoStore::getPluginInfo):
56         (WebKit::PluginInfoStore::shouldUsePlugin):
57         * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
58         (WebKit::isOldWindowsMediaPlayerPlugin):
59         (WebKit::isNewWindowsMediaPlayerPlugin):
60         (WebKit::PluginInfoStore::shouldUsePlugin):
61
62 2011-06-14  Stephanie Lewis  <slewis@apple.com>
63
64         Rubber stamped by Oliver Hunt.
65
66         <rdar://problem/9511169>
67         Update order files.
68
69         * mac/WebKit2.order:
70
71 2011-06-14  Anders Carlsson  <andersca@apple.com>
72
73         Reviewed by Dan Bernstein.
74
75         Start replacing PluginInfoStore::Plugin with PluginModuleInfo
76         https://bugs.webkit.org/show_bug.cgi?id=62651
77
78         * UIProcess/Plugins/PluginInfoStore.cpp:
79         (WebKit::PluginInfoStore::plugins):
80         (WebKit::PluginInfoStore::findPluginForMIMEType):
81         (WebKit::PluginInfoStore::findPluginForExtension):
82         (WebKit::PluginInfoStore::infoForPluginWithPath):
83         * UIProcess/Plugins/PluginInfoStore.h:
84         * UIProcess/Plugins/PluginProcessManager.cpp:
85         (WebKit::PluginProcessManager::getPluginProcessConnection):
86         (WebKit::PluginProcessManager::getSitesWithData):
87         (WebKit::PluginProcessManager::clearSiteData):
88         (WebKit::PluginProcessManager::getOrCreatePluginProcess):
89         * UIProcess/Plugins/PluginProcessManager.h:
90         * UIProcess/Plugins/PluginProcessProxy.cpp:
91         (WebKit::PluginProcessProxy::create):
92         * UIProcess/Plugins/PluginProcessProxy.h:
93         (WebKit::PluginProcessProxy::pluginInfo):
94         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
95         (WebKit::PluginProcessProxy::pluginNeedsExecutableHeap):
96         (WebKit::PluginProcessProxy::createPropertyListFile):
97
98 2011-06-14  Anders Carlsson  <andersca@apple.com>
99
100         Reviewed by Darin Adler.
101
102         Add PluginModuleInfo header and prepare for renaming of PluginInfoStore::Plugin to PluginModuleInfo
103         https://bugs.webkit.org/show_bug.cgi?id=62647
104
105         Make PluginModuleInfo a typedef of PluginInfoStore::Plugin for now; eventually it should be its own class,
106         and PluginInfoStore::Plugin should go away.
107
108         * GNUmakefile.am:
109         * Shared/Plugins/Netscape/NetscapePluginModule.h:
110         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
111         (WebKit::getPluginArchitecture):
112         (WebKit::getMIMETypesFromPluginBundle):
113         (WebKit::getPluginInfoFromPropertyLists):
114         (WebKit::getPluginInfoFromCarbonResources):
115         (WebKit::NetscapePluginModule::getPluginInfo):
116         (WebKit::NetscapePluginModule::determineQuirks):
117         * Shared/Plugins/PluginModuleInfo.cpp: Added.
118         * Shared/Plugins/PluginModuleInfo.h: Added.
119         * WebKit2.pro:
120         * WebKit2.xcodeproj/project.pbxproj:
121         * win/WebKit2.vcproj:
122
123 2011-06-14  Carlos Garcia Campos  <cgarcia@igalia.com>
124
125         Reviewed by Martin Robinson.
126
127         [GTK] Move the code to show the context menu from WebKitWebViewBase to WebContextMenuProxyGtk
128         https://bugs.webkit.org/show_bug.cgi?id=62627
129
130         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
131         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
132         * UIProcess/gtk/WebContextMenuProxyGtk.cpp:
133         (WebKit::WebContextMenuProxyGtk::showContextMenu):
134         (WebKit::WebContextMenuProxyGtk::hideContextMenu):
135         (WebKit::WebContextMenuProxyGtk::WebContextMenuProxyGtk):
136         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
137         (WebKit::WebContextMenuProxyGtk::menuPositionFunction):
138         * UIProcess/gtk/WebContextMenuProxyGtk.h:
139
140 2011-06-14  Carlos Garcia Campos  <cgarcia@igalia.com>
141
142         Reviewed by Martin Robinson.
143
144         [GTK] Rename convertWidgetRectToScreenRect() to convertWidgetPointToScreenPoint()
145         https://bugs.webkit.org/show_bug.cgi?id=62626
146
147         * UIProcess/API/gtk/PageClientImpl.cpp:
148         (WebKit::PageClientImpl::screenToWindow): Implement this method
149         using convertWidgetPointToScreenPoint().
150         (WebKit::PageClientImpl::windowToScreen): Update to use
151         convertWidgetPointToScreenPoint().
152         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
153         (WebKit::WebPopupMenuProxyGtk::showPopupMenu): Use
154         convertWidgetPointToScreenPoint().
155
156 2011-06-14  Carlos Garcia Campos  <cgarcia@igalia.com>
157
158         Reviewed by Martin Robinson.
159
160         [GTK] Support authentication dialogs in WebKit2
161         https://bugs.webkit.org/show_bug.cgi?id=62366
162
163         Add a new soup feature to show an authentication dialog when it
164         gets a 401 HTTP response.
165
166         * GNUmakefile.am: Add new files to compilation.
167         * WebProcess/gtk/WebAuthDialog.cpp: Added.
168         (web_auth_dialog_class_init):
169         (web_auth_dialog_init):
170         (sessionAuthenticate):
171         (attach):
172         (detach):
173         (webAuthDialogSessionFeatureInit):
174         * WebProcess/gtk/WebAuthDialog.h: Added.
175         * WebProcess/gtk/WebProcessMainGtk.cpp:
176         (WebKit::WebProcessMainGtk):
177
178 2011-06-14  No'am Rosenthal  <noam.rosenthal@nokia.com> and Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
179
180         Reviewed by Kenneth Rohde Christiansen.
181
182         [Qt] Implement accelerated compositing on WK2 Qt port
183         https://bugs.webkit.org/show_bug.cgi?id=56935
184
185         Implementing LayerTreeHost and LayerTreeContext and LayerTreeHost for Qt.
186         Add the necessary plumbing to make the LayerTreeHost work with Qt, based on the original Mac
187         implementation (the code is nearly identical). This includes creating the right layers for the
188         overlay and for the non-composited content, and passing the root layer to the UI process.
189
190         Also, since LayerTreeHostQt is compiled, we have to add some of the rest of the existing patches,
191         namely the new messages: syncCompositingLayers and updateCompositingLayerContent, and create a
192         stub implementation for them in DrawingAreaProxy.
193
194         Note that this is not activated yet, until we enable accelerated compositing in the settings and
195         create the right GraphicsLayer.
196
197         * Scripts/webkit2/messages.py:
198         * Shared/LayerTreeContext.h:
199         * Shared/qt/LayerTreeContextQt.cpp:
200         (WebKit::LayerTreeContext::LayerTreeContext):
201         (WebKit::LayerTreeContext::~LayerTreeContext):
202         (WebKit::LayerTreeContext::encode):
203         (WebKit::LayerTreeContext::decode):
204         (WebKit::LayerTreeContext::isEmpty):
205         (WebKit::operator==):
206         * UIProcess/DrawingAreaProxy.h:
207         (WebKit::DrawingAreaProxy::syncCompositingLayers):
208         (WebKit::DrawingAreaProxy::updateCompositingLayerContent):
209         * UIProcess/DrawingAreaProxy.messages.in:
210         * WebKit2.pro:
211         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
212         (WebCore::collectCompositingInfoForThisLayer):
213         * WebProcess/WebPage/LayerTreeHost.cpp:
214         (WebKit::LayerTreeHost::create):
215         * WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
216         (WebKit::LayerTreeHostQt::create):
217         (WebKit::LayerTreeHostQt::~LayerTreeHostQt):
218         (WebKit::LayerTreeHostQt::LayerTreeHostQt):
219         (WebKit::LayerTreeHostQt::setLayerFlushSchedulingEnabled):
220         (WebKit::LayerTreeHostQt::scheduleLayerFlush):
221         (WebKit::LayerTreeHostQt::cancelPendingLayerFlush):
222         (WebKit::LayerTreeHostQt::setShouldNotifyAfterNextScheduledLayerFlush):
223         (WebKit::LayerTreeHostQt::setRootCompositingLayer):
224         (WebKit::LayerTreeHostQt::invalidate):
225         (WebKit::LayerTreeHostQt::setNonCompositedContentsNeedDisplay):
226         (WebKit::LayerTreeHostQt::scrollNonCompositedContents):
227         (WebKit::LayerTreeHostQt::forceRepaint):
228         (WebKit::LayerTreeHostQt::sizeDidChange):
229         (WebKit::LayerTreeHostQt::didInstallPageOverlay):
230         (WebKit::LayerTreeHostQt::didUninstallPageOverlay):
231         (WebKit::LayerTreeHostQt::setPageOverlayNeedsDisplay):
232         (WebKit::LayerTreeHostQt::flushPendingLayerChanges):
233         (WebKit::LayerTreeHostQt::performScheduledLayerFlush):
234         (WebKit::LayerTreeHostQt::layerFlushTimerFired):
235         (WebKit::LayerTreeHostQt::createPageOverlayLayer):
236         (WebKit::LayerTreeHostQt::destroyPageOverlayLayer):
237         (WebKit::LayerTreeHostQt::notifyAnimationStarted):
238         (WebKit::LayerTreeHostQt::notifySyncRequired):
239         (WebKit::LayerTreeHostQt::paintContents):
240         (WebKit::LayerTreeHostQt::showDebugBorders):
241         (WebKit::LayerTreeHostQt::showRepaintCounter):
242         (WebKit::LayerTreeHost::supportsAcceleratedCompositing):
243         * WebProcess/WebPage/qt/LayerTreeHostQt.h: Added.
244         (WebKit::LayerTreeHostQt::layerTreeContext):
245         (WebKit::LayerTreeHostQt::pauseRendering):
246         (WebKit::LayerTreeHostQt::resumeRendering):
247
248 2011-06-14  Noam Rosenthal  <noam.rosenthal@nokia.com>
249
250         Reviewed by Kenneth Rohde Christiansen.
251
252         [Qt] Implement accelerated compositing on WK2 Qt port
253         https://bugs.webkit.org/show_bug.cgi?id=56935
254
255         Add a createImage() function to ShareableBitmap, for now ifdef'ed to Qt only.
256         This allows us to support directly composited images across the WebKit2 processes.
257
258         Together with Viatcheslav Ostapenko.
259
260         * Shared/ShareableBitmap.h:
261         * Shared/qt/ShareableBitmapQt.cpp:
262         (WebKit::ShareableBitmap::createQImage):
263         (WebKit::ShareableBitmap::createImage):
264
265 2011-06-13  Anders Carlsson  <andersca@apple.com>
266
267         Reviewed by Sam Weinig.
268
269         Crash when trying to use Netflix Watch Instantly with Silverlight 3
270         https://bugs.webkit.org/show_bug.cgi?id=62611
271         <rdar://problem/9058370>
272
273         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
274         (WebKit::NetscapePluginModule::getPluginInfo):
275         Get the plug-in version string instead of the version number.
276
277         (WebKit::PluginVersion::isValid):
278         (WebKit::PluginVersion::PluginVersion):
279         (WebKit::PluginVersion::parse):
280         (WebKit::PluginVersion::isLessThan):
281         Add a new PluginVersion class that represents a plug-in version. The idea is
282         that this class be made cross platform.
283
284         (WebKit::NetscapePluginModule::determineQuirks):
285         Add the ReturnsNonRetainedScriptableNPObject quirk for versions of Silverlight less than 4.
286
287         * Shared/Plugins/PluginQuirks.h:
288         Add the ReturnsNonRetainedScriptableNPObject quirk.
289
290         * UIProcess/Plugins/PluginInfoStore.h:
291         Use a version string. Eventually this should hold the PluginVersion class we added.
292
293         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
294         (WebKit::NetscapePlugin::pluginScriptableNPObject):
295         If the plug-in has the ReturnsNonRetainedScriptableNPObject quirk, do an extra retain.
296
297 2011-06-13  Ryuan Choi  <ryuan.choi@samsung.com>
298
299         Reviewed by Kenneth Rohde Christiansen.
300
301         [EFL][WK2] Add dummy files at below of WebProcess.
302         https://bugs.webkit.org/show_bug.cgi?id=62445
303
304         Add Efl related directory and files in WebKit2/WebProcess/.
305
306         * WebProcess/Cookies/efl/WebCookieManagerEfl.cpp: Added.
307         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
308         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
309         * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp: Added.
310         (WebKit::InjectedBundle::load):
311         (WebKit::InjectedBundle::activateMacFontAscentHack):
312         * WebProcess/WebPage/efl/WebInspectorEfl.cpp: Added.
313         (WebKit::WebInspector::localizedStringsURL):
314         * WebProcess/WebPage/efl/WebPageEfl.cpp: Added.
315         (WebKit::WebPage::platformInitialize):
316         (WebKit::WebPage::platformPreferencesDidChange):
317         (WebKit::scroll):
318         (WebKit::WebPage::performDefaultBehaviorForKeyEvent):
319         (WebKit::WebPage::platformHasLocalDataForURL):
320         (WebKit::WebPage::cachedResponseMIMETypeForURL):
321         (WebKit::WebPage::platformCanHandleRequest):
322         (WebKit::WebPage::cachedSuggestedFilenameForURL):
323         (WebKit::WebPage::cachedResponseDataForURL):
324         * WebProcess/efl/WebProcessEfl.cpp: Added.
325         (WebKit::WebProcess::platformSetCacheModel):
326         (WebKit::WebProcess::platformClearResourceCaches):
327         (WebKit::WebProcess::platformInitializeWebProcess):
328         (WebKit::WebProcess::platformTerminate):
329         * WebProcess/efl/WebProcessMainEfl.cpp: Added.
330         (WebKit::WebProcessMainEfl):
331         * WebProcess/efl/WebProcessMainEfl.h: Added.
332         * efl/MainEfl.cpp: Added.
333         (main):
334
335 2011-06-13  Eunmi Lee  <eunmi15.lee@samsung.com>
336
337         Reviewed by Eric Seidel.
338
339         [EFL][WK2] Add initial WebInspectorEfl.cpp for webkit2 efl port
340         https://bugs.webkit.org/show_bug.cgi?id=62524
341
342         * UIProcess/efl/WebInspectorEfl.cpp: Added.
343         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
344         (WebKit::WebInspectorProxy::platformOpen):
345         (WebKit::WebInspectorProxy::platformDidClose):
346         (WebKit::WebInspectorProxy::platformBringToFront):
347         (WebKit::WebInspectorProxy::platformInspectedURLChanged):
348         (WebKit::WebInspectorProxy::inspectorPageURL):
349         (WebKit::WebInspectorProxy::platformAttach):
350         (WebKit::WebInspectorProxy::platformDetach):
351         (WebKit::WebInspectorProxy::platformSetAttachedWindowHeight):
352
353 2011-06-13  Eunmi Lee  <eunmi15.lee@samsung.com>
354
355         Reviewed by Eric Seidel.
356
357         [EFL][WK2] Add initial TextCheckerEfl.cpp for webkit2 efl port
358         https://bugs.webkit.org/show_bug.cgi?id=62438
359
360         * UIProcess/efl/TextCheckerEfl.cpp: Added.
361         (WebKit::TextChecker::state):
362         (WebKit::TextChecker::isContinuousSpellCheckingAllowed):
363         (WebKit::TextChecker::setContinuousSpellCheckingEnabled):
364         (WebKit::TextChecker::setGrammarCheckingEnabled):
365         (WebKit::TextChecker::uniqueSpellDocumentTag):
366         (WebKit::TextChecker::closeSpellDocumentWithTag):
367         (WebKit::TextChecker::checkSpellingOfString):
368         (WebKit::TextChecker::checkGrammarOfString):
369         (WebKit::TextChecker::spellingUIIsShowing):
370         (WebKit::TextChecker::toggleSpellingUIIsShowing):
371         (WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
372         (WebKit::TextChecker::updateSpellingUIWithGrammarString):
373         (WebKit::TextChecker::getGuessesForWord):
374         (WebKit::TextChecker::learnWord):
375         (WebKit::TextChecker::ignoreWord):
376
377 2011-06-13  Sangyong Park  <sy302.park@gmail.com>
378
379         Reviewed by Eric Seidel.
380
381         implement to handle wheel event of plugin on x11
382         https://bugs.webkit.org/show_bug.cgi?id=62522
383
384         Implement platformHandleWheelEvent() in NetscapePluginX11.cpp
385         for to handle wheel event on plugins
386
387         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
388         (WebKit::setCommonMouseEventFields): add template argument to support WebWheelEvent
389         (WebKit::setXButtonEventFieldsByWebWheelEvent): initialize XButtonEvent by WebWheelEvent
390         (WebKit::NetscapePlugin::platformHandleWheelEvent): handle wheel event on plugin
391
392 2011-06-13  Eunmi Lee  <eunmi15.lee@samsung.com>
393
394         Reviewed by Eric Seidel.
395
396         [EFL][WK2] Add initial WebContextEfl.cpp for webkit2 efl port
397         https://bugs.webkit.org/show_bug.cgi?id=62523
398
399         * UIProcess/efl/WebContextEfl.cpp: Added.
400         (WebKit::WebContext::applicationCacheDirectory):
401         (WebKit::WebContext::platformInitializeWebProcess):
402         (WebKit::WebContext::platformInvalidateContext):
403         (WebKit::WebContext::platformDefaultDatabaseDirectory):
404         (WebKit::WebContext::platformDefaultIconDatabasePath):
405         (WebKit::WebContext::platformDefaultLocalStorageDirectory):
406
407 2011-06-13  Noam Rosenthal  <noam.rosenthal@nokia.com>
408
409         Unreviewed fix - removed parts of r88659 that were committed by mistake.
410
411         The patch accidentally included parts that weren't supposed to be there, namely the whole
412         code was duplicated. This patch rectifies that and brings it to the original reviewed code.
413
414         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
415         * WebProcess/WebCoreSupport/WebGraphicsLayer.h:
416
417 2011-06-13  Anders Carlsson  <andersca@apple.com>
418
419         Reviewed by Dan Bernstein.
420
421         BankID plug-in isn't instantiated correctly
422         https://bugs.webkit.org/show_bug.cgi?id=62588
423         <rdar://problem/9586600>
424
425         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
426         (WebKit::NetscapePluginModule::determineQuirks):
427         The BankID plug-in uses the QuickDraw drawing model but doesn't draw anything so we can
428         use the half-baked QuickDraw support.
429
430         * WebProcess/Plugins/PluginProcessConnection.cpp:
431         (WebKit::defaultSyncMessageTimeout):
432         Don't use a sync message timeout for the BankID plug-in since it sends synchronous Apple Events
433         and we don't want the plug-in to die while it's waiting for a reply.
434
435 2011-06-13  Chris Fleizach  <cfleizach@apple.com>
436
437         Reviewed by Darin Adler.
438
439         kAXTextMarkerForPositionParametrizedAttribute does not work correctly in WK2
440         https://bugs.webkit.org/show_bug.cgi?id=62547
441
442         Implement the missing screenToWindow method for WK2.
443
444         * UIProcess/API/gtk/PageClientImpl.cpp:
445         (WebKit::PageClientImpl::screenToWindow):
446         * UIProcess/API/gtk/PageClientImpl.h:
447         * UIProcess/API/mac/PageClientImpl.h:
448         * UIProcess/API/mac/PageClientImpl.mm:
449         (WebKit::PageClientImpl::screenToWindow):
450         * UIProcess/API/qt/qwkpage.cpp:
451         (QWKPagePrivate::screenToWindow):
452         * UIProcess/API/qt/qwkpage_p.h:
453         * UIProcess/PageClient.h:
454         * UIProcess/WebPageProxy.cpp:
455         (WebKit::WebPageProxy::screenToWindow):
456         * UIProcess/WebPageProxy.h:
457         * UIProcess/WebPageProxy.messages.in:
458         * UIProcess/win/WebView.cpp:
459         (WebKit::WebView::screenToWindow):
460         * UIProcess/win/WebView.h:
461         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
462         (WebKit::WebChromeClient::screenToWindow):
463         * WebProcess/WebPage/WebPage.cpp:
464         (WebKit::WebPage::screenToWindow):
465         * WebProcess/WebPage/WebPage.h:
466
467 2011-06-13  Sam Weinig  <sam@webkit.org>
468
469         Reviewed by Darin Adler.
470
471         REGRESSION (81679-81939): In Safari, Dictionary look up (tap or Ctrl-Cmd-D) doesn't work if you have clicked on a word and not moved the mouse
472         <rdar://problem/9580237> 
473
474         * WebProcess/WebPage/mac/WebPageMac.mm:
475         (WebKit::shouldUseSelection):
476         Return early if the selection we are using is not a range.
477
478 2011-06-13  Tony Chang  <tony@chromium.org>
479
480         Reviewed by Dimitri Glazkov.
481
482         rename ENABLE_NEW_FLEXBOX to ENABLE_CSS3_FLEXBOX
483         https://bugs.webkit.org/show_bug.cgi?id=62578
484
485         * Configurations/FeatureDefines.xcconfig:
486
487 2011-06-13  No'am Rosenthal  <noam.rosenthal@nokia.com>
488
489         Reviewed by Kenneth Rohde Christiansen.
490
491         [Qt] Implement accelerated compositing on WK2 Qt port
492         https://bugs.webkit.org/show_bug.cgi?id=56935
493
494         Added WebGraphicsLayer, a subclass of WebCore::GraphicsLayer that serializes the state of the layer
495         tree to the UI process WebLayerTreeInfo.
496         For now this patch doesn't serialize the animation information, a feature that will be upstreamed later on.
497
498         Together with Viatcheslav Ostapenko.
499
500         * WebProcess/WebCoreSupport/WebGraphicsLayer.cpp: Added.
501         * WebProcess/WebCoreSupport/WebGraphicsLayer.h: Added.
502
503 2011-06-13  No'am Rosenthal  <noam.rosenthal@nokia.com>
504
505         Reviewed by Kenneth Rohde Christiansen.
506
507         [Qt] Implement accelerated compositing on WK2 Qt port
508         https://bugs.webkit.org/show_bug.cgi?id=56935
509
510         Added WebLayerTreeInfo: a set of structures that can serialize a tree of GraphicsLayers
511         across to the UI process.
512
513         Together with Viatcheslav Ostapenko.
514
515         * Scripts/webkit2/messages.py:
516         * Shared/WebLayerTreeInfo.cpp: Added.
517         * Shared/WebLayerTreeInfo.h: Added.
518
519 2011-06-11  Jer Noble  <jer.noble@apple.com>
520
521         Reviewed by Anders Carlsson.
522
523         Avoid flashing when exiting full-screen mode.
524         https://bugs.webkit.org/show_bug.cgi?id=62338
525
526         Instead of making a round-trip between processes by calling forceRepaint
527         and waiting for a callback, instead make a WebProcess-side call to
528         forceRepaintWithoutCallback before sending the ExitAcceleratedCompositingMode
529         message to the WebFullScreenControllerProxy. This also means we can get rid of
530         the dragImage creation and display.
531
532         Because this redraw will happen during the current run-loop instead of a future
533         one, make sure the background color has been set before the redraw in 
534         didEnterFullScreen().
535
536         Wait to hide the full-screen window until after we have received the 
537         ExitAcceleratedCompositingMode message.  By this time, repaint will have already
538         completed.
539
540         * UIProcess/mac/WKFullScreenWindowController.h:
541         * UIProcess/mac/WKFullScreenWindowController.mm:
542         (-[WKFullScreenWindowController finishedEnterFullScreenAnimation:]): Disable
543             screen updates, to be re-enabled during exitAcceleratedCompositingMode.
544         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]): Don't hide
545             the full-screen window here; wait for exitAcceleratedCompositing instead.
546         (-[WKFullScreenWindowController exitAcceleratedCompositingMode]): Collapse 
547             the redrawCompleted method into this one.
548         (-[WKFullScreenWindowController close]): Remove the reference to 
549             exitCompositedModeRepaintCompleted.
550         * WebProcess/FullScreen/WebFullScreenManager.cpp:
551         (WebKit::WebFullScreenManager::didEnterFullScreen): Set the full screen
552             background color first.
553         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
554         (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer): Repaint before
555             sending the ExitAcceleratedCompositingMode message. 
556
557 2011-06-13  Tony Chang  <tony@chromium.org>
558
559         Reviewed by Adam Barth.
560
561         rename ENABLE_FLEXBOX to ENABLE_NEW_FLEXBOX
562         https://bugs.webkit.org/show_bug.cgi?id=62545
563
564         * Configurations/FeatureDefines.xcconfig:
565
566 2011-06-13  Anders Carlsson  <andersca@apple.com>
567
568         Reviewed by Dan Bernstein.
569
570         Don't access freed memory in the UI process when a plug-in process crashes
571         https://bugs.webkit.org/show_bug.cgi?id=62548
572         <rdar://problem/9599243>
573
574         Call pluginProcessCrashedOrFailedToLaunch after sending messages to all processes about the plug-in crash,
575         otherwise we'll try to dereference m_pluginInfo.path after the PluginProcessProxy object has been deleted.
576
577         * UIProcess/Plugins/PluginProcessProxy.cpp:
578         (WebKit::PluginProcessProxy::didClose):
579
580 2011-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
581
582         Reviewed by Martin Robinson.
583
584         [GTK] Fix a crash when drawing area has been deleted
585         https://bugs.webkit.org/show_bug.cgi?id=62541
586
587         Check whether WebPageProxy::drawingArea() returns a valid pointer
588         before using it, it might be null, for example, when the web
589         process crashes.
590
591         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
592         (callDrawingAreaPaintMethod):
593         (webkitWebViewBaseSizeAllocate):
594
595 2011-06-13  Eunmi Lee  <eunmi15.lee@samsung.com>
596
597         Reviewed by Kenneth Rohde Christiansen.
598
599         [EFL][WK2] Minor fix: fix coding style and remove unnecessary codes for WebKit2 efl port's PageClientImpl
600         https://bugs.webkit.org/show_bug.cgi?id=62429
601
602         * UIProcess/API/efl/PageClientImpl.cpp:
603         (WebKit::PageClientImpl::scrollView):
604         (WebKit::PageClientImpl::setCursor):
605         (WebKit::PageClientImpl::windowToScreen):
606         (WebKit::PageClientImpl::doneWithKeyEvent):
607         (WebKit::PageClientImpl::setFindIndicator):
608         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
609         (WebKit::PageClientImpl::didFinishLoadingDataForCustomRepresentation):
610         (WebKit::PageClientImpl::findStringInCustomRepresentation):
611         (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation):
612         * UIProcess/API/efl/PageClientImpl.h:
613
614 2011-06-13  Eunmi Lee  <eunmi15.lee@samsung.com>
615
616         Reviewed by Kenneth Rohde Christiansen.
617
618         [EFL][WK2] Add initial WebPreferencesEfl.cpp for webkit2 efl port
619         https://bugs.webkit.org/show_bug.cgi?id=62525
620
621         * UIProcess/efl/WebPreferencesEfl.cpp: Added.
622         (WebKit::WebPreferences::platformInitializeStore):
623         (WebKit::WebPreferences::platformUpdateStringValueForKey):
624         (WebKit::WebPreferences::platformUpdateBoolValueForKey):
625         (WebKit::WebPreferences::platformUpdateUInt32ValueForKey):
626         (WebKit::WebPreferences::platformUpdateDoubleValueForKey):
627
628 2011-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
629
630         Reviewed by Martin Robinson.
631
632         [GTK] Add context menu support for Webkit2
633         https://bugs.webkit.org/show_bug.cgi?id=54827
634
635         * GNUmakefile.am: Add new files to compilation.
636         * UIProcess/API/gtk/PageClientImpl.cpp:
637         (WebKit::PageClientImpl::createContextMenuProxy): Create a context
638         menu proxy.
639         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
640         (globalPointForClientPoint): Function copied from webkit1 to
641         convert a point in widget coordinates to global coordinates.
642         (popupMenuPositionFunction):
643         (webkitWebViewBaseShowContextMenu): Show the given context menu at
644         the given position.
645         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
646         * UIProcess/gtk/WebContextMenuProxyGtk.cpp: Added.
647         (WebKit::contextMenuItemActivatedCallback):
648         (WebKit::WebContextMenuProxyGtk::createGtkMenu):
649         (WebKit::WebContextMenuProxyGtk::showContextMenu):
650         (WebKit::WebContextMenuProxyGtk::hideContextMenu):
651         (WebKit::WebContextMenuProxyGtk::WebContextMenuProxyGtk):
652         (WebKit::WebContextMenuProxyGtk::~WebContextMenuProxyGtk):
653         * UIProcess/gtk/WebContextMenuProxyGtk.h: Copied from Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBasePrivate.h.
654         (WebKit::WebContextMenuProxyGtk::create):
655
656 2011-06-13  Carlos Garcia Campos  <cgarcia@igalia.com>
657
658         Reviewed by Martin Robinson.
659
660         [GTK] Export an API similar to WebKit1
661         https://bugs.webkit.org/show_bug.cgi?id=57820
662
663         Add first implementation of WebKitWebView, a class with the same
664         API than webkit1, that wraps the C API to provide a high level
665         WebKit2 API for GTK port.
666
667         * GNUmakefile.am: Add new files to compilation.
668         * UIProcess/API/gtk/WebKitWebView.cpp: Added.
669         (webkit_web_view_init):
670         (webkit_web_view_class_init):
671         (webkit_web_view_new):
672         (webkit_web_view_load_uri):
673         (webkit_web_view_go_back):
674         (webkit_web_view_go_forward):
675         * UIProcess/API/gtk/WebKitWebView.h: Added.
676         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
677         (webkitWebViewBaseCreate):
678         (webkitWebViewBaseCreateWebPage):
679         * UIProcess/API/gtk/WebKitWebViewBasePrivate.h:
680         * UIProcess/API/gtk/webkit/webkit.h: Added.
681
682 2011-06-12  Adam Barth  <abarth@webkit.org>
683
684         Reviewed by Alexey Proskuryakov.
685
686         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
687         https://bugs.webkit.org/show_bug.cgi?id=62516
688
689         * WebProcess/WebCoreSupport/WebErrors.h:
690         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
691         (WebKit::WebFrameLoaderClient::interruptedForPolicyChangeError):
692         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
693         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp:
694         (WebKit::interruptedForPolicyChangeError):
695         * WebProcess/WebCoreSupport/gtk/WebErrorsGtk.cpp:
696         (WebKit::interruptedForPolicyChangeError):
697         * WebProcess/WebCoreSupport/mac/WebErrorsMac.mm:
698         (WebKit::interruptedForPolicyChangeError):
699         * WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp:
700         (WebKit::interruptedForPolicyChangeError):
701         * WebProcess/WebCoreSupport/win/WebErrorsWin.cpp:
702         (WebKit::interruptedForPolicyChangeError):
703
704 2011-06-12  Adam Barth  <abarth@webkit.org>
705
706         Reviewed by Eric Seidel.
707
708         Remove FrameLoader::isProcessingUserGesture
709         https://bugs.webkit.org/show_bug.cgi?id=62519
710
711         Instead of asking the gesture indicator directly, ask the
712         ScriptController, like everyone else.  The gesture indicator is just
713         one of the piece of information we use to determine whether we're
714         processing a user gesture.
715
716         * WebProcess/InjectedBundle/InjectedBundle.cpp:
717         (WebKit::InjectedBundle::isProcessingUserGesture):
718
719 2011-06-12  Adam Barth  <abarth@webkit.org>
720
721         Reviewed by Alexey Proskuryakov.
722
723         Remove trival "forward-to-client" member functions from FrameLoader
724         https://bugs.webkit.org/show_bug.cgi?id=62510
725
726         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
727         (WebKit::WebFrameNetworkingContext::blockedError):
728
729 2011-06-11  Stephanie Lewis  <slewis@apple.com>
730
731         Reviewed by Sam Weinig.
732
733         https://bugs.webkit.org/show_bug.cgi?id=62480
734         part of <rdar://problem/8675177>
735         Add API to launch the WebProcess.  Launching it earlier can save time 
736         when loading the first page.
737
738         * UIProcess/API/C/WKContext.cpp:
739         (WKContextWarmInitialProcess):
740         * UIProcess/API/C/WKContextPrivate.h:
741         * UIProcess/WebContext.cpp:
742         (WebKit::WebContext::warmInitialProcess):
743         * UIProcess/WebContext.h:
744
745 2011-06-09  Jer Noble  <jer.noble@apple.com>
746
747         Reviewed by Darin Adler.
748
749         AVPlayerLayer is adding a "fade" animation during Safari full-screen
750         https://bugs.webkit.org/show_bug.cgi?id=62433
751
752         CoreAnimation will add default animations when certain properties are changed, unless
753         those changes are wrapped in a CATransaction which has had its disableActions property set
754         to true.  Wrap each of these three property changes in a CATransaction and disable its actions,
755         so that the default "fade" animation is not created in response.
756
757         * UIProcess/mac/WKFullScreenWindowController.mm:
758         (-[WKFullScreenWindowController enterFullScreen:]): Wrap with CATransaction.
759         (-[WKFullScreenWindowController _swapView:with:]): Ditto:
760         * WebProcess/FullScreen/mac/WebFullScreenManagerMac.mm:
761         (WebKit::WebFullScreenManagerMac::setRootFullScreenLayer): Ditto.
762
763 2011-06-10  Anders Carlsson  <andersca@apple.com>
764
765         Reviewed by Sam Weinig.
766
767         REGRESSION (WebKit2): window.showModalDialog() broken
768         https://bugs.webkit.org/show_bug.cgi?id=62496
769         <rdar://problem/9581492>
770
771         If dispatching a message ends up creating a nested run loop, some incoming messages can end up not being
772         delivered until we exit from the run loop.
773
774         Fix this by using a Deque instead of a Vector for incoming messages, and get one message at a time and then
775         dispatch it. That prevents us from having any lingering messages lying around in stack allocated space.
776
777         * Platform/CoreIPC/Connection.cpp:
778         (CoreIPC::Connection::waitForMessage):
779         (CoreIPC::Connection::dispatchMessages):
780         * Platform/CoreIPC/Connection.h:
781
782 2011-06-10  Sam Weinig  <sam@webkit.org>
783
784         Reviewed by Anders Carlsson.
785
786         Unresponsive cursor is shown when displaying a modal dialog
787         Part of <rdar://problem/9581492>
788         https://bugs.webkit.org/show_bug.cgi?id=62494
789
790         * UIProcess/WebPageProxy.cpp:
791         (WebKit::WebPageProxy::runModal):
792         * UIProcess/WebPageProxy.h:
793         Stop the responsiveness timer when calling out to show a modal dialog.
794
795 2011-06-10  Tony Chang  <tony@chromium.org>
796
797         Reviewed by Ojan Vafai.
798
799         add a compile guard ENABLE(FLEXBOX)
800         https://bugs.webkit.org/show_bug.cgi?id=62049
801
802         * Configurations/FeatureDefines.xcconfig:
803
804 2011-06-10  Ryuan Choi  <ryuan.choi@samsung.com>
805
806         Reviewed by Kenneth Rohde Christiansen.
807
808         [EFL][WK2] Add dummy files in WebProcess/WebCoreSupport/efl
809         https://bugs.webkit.org/show_bug.cgi?id=62346
810
811         Add WebProcess/WebCoreSupport/efl directory and files.
812
813         * WebProcess/WebCoreSupport/efl/WebContextMenuClientEfl.cpp: Added.
814         (WebKit::WebContextMenuClient::lookUpInDictionary):
815         (WebKit::WebContextMenuClient::isSpeaking):
816         (WebKit::WebContextMenuClient::speak):
817         (WebKit::WebContextMenuClient::stopSpeaking):
818         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp: Added.
819         (WebKit::WebEditorClient::handleKeyboardEvent):
820         (WebKit::WebEditorClient::handleInputMethodKeydown):
821         * WebProcess/WebCoreSupport/efl/WebErrorsEfl.cpp: Added.
822         (WebKit::cancelledError):
823         (WebKit::blockedError):
824         (WebKit::cannotShowURLError):
825         (WebKit::interruptForPolicyChangeError):
826         (WebKit::cannotShowMIMETypeError):
827         (WebKit::fileDoesNotExistError):
828         (WebKit::pluginWillHandleLoadError):
829         * WebProcess/WebCoreSupport/efl/WebFrameNetworkingContext.h: Added.
830         (WebFrameNetworkingContext::create):
831         (WebFrameNetworkingContext::WebFrameNetworkingContext):
832         * WebProcess/WebCoreSupport/efl/WebPopupMenuEfl.cpp: Added.
833         (WebKit::WebPopupMenu::setUpPlatformData):
834
835 2011-06-09  Andreas Kling  <kling@webkit.org>
836
837         Reviewed by Darin Adler.
838
839         WebKit2: Remove unused function CoreIPC::Connection::deprecatedWaitFor().
840         https://bugs.webkit.org/show_bug.cgi?id=62386
841
842         * Platform/CoreIPC/Connection.h:
843
844 2011-06-09  Andreas Kling  <kling@webkit.org>
845
846         Reviewed by Anders Carlsson.
847
848         [Qt][WK2] Remove usage of deprecated CoreIPC functions.
849         https://bugs.webkit.org/show_bug.cgi?id=62290
850
851         Use the new DrawingArea{,Proxy}.messages.in approach to CoreIPC in TiledDrawingArea.
852         The TiledDrawingArea{,Proxy}-specific messages were moved up into DrawingArea{,Proxy}
853         and guarded by ENABLE(TILED_BACKING_STORE).
854
855         * Shared/CoreIPCSupport/DrawingAreaMessageKinds.h: Removed.
856         * Shared/CoreIPCSupport/DrawingAreaProxyMessageKinds.h: Removed.
857
858         * GNUmakefile.am:
859         * WebKit2.pro:
860         * WebKit2.xcodeproj/project.pbxproj:
861         * win/WebKit2.vcproj: Prune deleted files from build system.
862
863         * Platform/CoreIPC/MessageID.h: Remove legacy DrawingArea message ID's.
864
865         * UIProcess/API/qt/qgraphicswkview.cpp:
866         (QGraphicsWKViewPrivate::commitScale): No longer waits for all tile updates to complete,
867         this will be addressed by the soon-to-be-upstreamed TileSet mechanism.
868
869         * UIProcess/DrawingAreaProxy.messages.in:
870         * UIProcess/DrawingAreaProxy.h:
871         (WebKit::DrawingAreaProxy::didSetSize):
872         (WebKit::DrawingAreaProxy::invalidate):
873         (WebKit::DrawingAreaProxy::snapshotTaken):
874         (WebKit::DrawingAreaProxy::tileUpdated):
875         (WebKit::DrawingAreaProxy::allTileUpdatesProcessed): Added IPC calls used by
876         TiledDrawingAreaProxy to DrawingAreaProxy.
877
878         * WebProcess/WebPage/DrawingArea.messages.in:
879         * WebProcess/WebPage/DrawingArea.h:
880         (WebKit::DrawingArea::setSize):
881         (WebKit::DrawingArea::cancelTileUpdate):
882         (WebKit::DrawingArea::requestTileUpdate):
883         (WebKit::DrawingArea::takeSnapshot): Added IPC calls used by TiledDrawingArea
884         to DrawingArea.
885
886         * UIProcess/DrawingAreaProxyImpl.h:
887         * UIProcess/DrawingAreaProxyImpl.cpp: Remove the now-unneeded didReceiveMessage()
888         and didReceiveSyncMessage().
889
890         * WebProcess/WebPage/DrawingAreaImpl.cpp:
891         * WebProcess/WebPage/DrawingAreaImpl.h: Remove the now-unneeded didReceiveMessage().
892
893         * UIProcess/TiledDrawingAreaProxy.h:
894         * UIProcess/TiledDrawingAreaProxy.cpp:
895         (WebKit::TiledDrawingAreaProxy::sizeDidChange):
896         (WebKit::TiledDrawingAreaProxy::tileUpdated):
897         (WebKit::TiledDrawingAreaProxy::allTileUpdatesProcessed): Split didReceiveMessage()
898         into functions.
899
900         (WebKit::TiledDrawingAreaProxy::removeTile):
901         (WebKit::TiledDrawingAreaProxy::requestTileUpdate):
902         (WebKit::TiledDrawingAreaProxy::setPageIsVisible):
903         (WebKit::TiledDrawingAreaProxy::takeSnapshot): Use new-style IPC.
904
905         * WebProcess/WebPage/TiledDrawingArea.cpp:
906         (WebKit::TiledDrawingArea::setSize):
907         (WebKit::TiledDrawingArea::cancelTileUpdate):
908         (WebKit::TiledDrawingArea::requestTileUpdate):
909         (WebKit::TiledDrawingArea::takeSnapshot): Split didReceiveMessage() into functions.
910
911         (WebKit::TiledDrawingArea::display):
912         (WebKit::TiledDrawingArea::updateTile):
913         (WebKit::TiledDrawingArea::tileUpdateTimerFired): Use new-style IPC.
914
915         * UIProcess/WebPageProxy.cpp:
916         (WebKit::WebPageProxy::didReceiveMessage): Remove handling of
917         CoreIPC::MessageClassDrawingAreaProxyLegacy.
918
919         * WebProcess/WebPage/WebPage.cpp:
920         (WebKit::WebPage::didReceiveMessage): Remove handling of
921         CoreIPC::MessageClassDrawingAreaLegacy.
922
923         * UIProcess/qt/TiledDrawingAreaProxyQt.cpp: Remove unneeded includes.
924
925         * WebProcess/WebPage/TiledDrawingArea.h: Remove didReceiveMessage() and make
926         CoreIPC message handlers explicitly virtual.
927
928 2011-06-09  Andreas Kling  <kling@webkit.org>
929
930         Reviewed by Anders Carlsson.
931
932         WebKit2: Generate correct header conditionals in message receivers.
933         https://bugs.webkit.org/show_bug.cgi?id=62379
934
935         Given a *.messages.in file like this:
936
937         Foo(AwesomeObject o)
938         #if ENABLE(ESOTERIC_FEATURE)
939         Bar(AwesomeObject o)
940         #endif
941
942         messages.py would include AwesomeObject.h only #if ENABLE(ESOTERIC_FEATURE).
943         This breaks the build on platforms without that defined.
944
945         Furthermore, if two messages guarded by different conditionals both pull in the same
946         header, only the last conditional will be applied, for example:
947
948         #if ENABLE(ESOTERIC_FEATURE)
949         Foo(AwesomeObject o)
950         #endif
951         #if ENABLE(MYSTERIOUS_FEATURE)
952         Bar(AwesomeObject o)
953         #endif
954
955         Would include AwesomeObject.h #if ENABLE(MYSTERIOUS_FEATURE) when it really should
956         check #if ENABLE(ESOTERIC_FEATURE) || ENABLE(MYSTERIOUS_FEATURE).
957
958         Change the generator to consider all conditionals for a given header file.
959         Also consider conditionals for reply parameters.
960
961         * Scripts/webkit2/messages.py:
962         * Scripts/webkit2/messages_unittest.py:
963
964 2011-06-09  Eunmi Lee  <eunmi15.lee@samsung.com>
965
966         Reviewed by Kenneth Rohde Christiansen.
967
968         [EFL][WK2] Add PageClientImpl and WebPageProxyEfl for efl port
969         https://bugs.webkit.org/show_bug.cgi?id=62363
970
971         * UIProcess/API/efl/PageClientImpl.cpp: Added.
972         (WebKit::PageClientImpl::PageClientImpl):
973         (WebKit::PageClientImpl::~PageClientImpl):
974         (WebKit::PageClientImpl::createDrawingAreaProxy):
975         (WebKit::PageClientImpl::setViewNeedsDisplay):
976         (WebKit::PageClientImpl::displayView):
977         (WebKit::PageClientImpl::scrollView):
978         (WebKit::PageClientImpl::viewSize):
979         (WebKit::PageClientImpl::isViewWindowActive):
980         (WebKit::PageClientImpl::isViewFocused):
981         (WebKit::PageClientImpl::isViewVisible):
982         (WebKit::PageClientImpl::isViewInWindow):
983         (WebKit::PageClientImpl::processDidCrash):
984         (WebKit::PageClientImpl::didRelaunchProcess):
985         (WebKit::PageClientImpl::pageClosed):
986         (WebKit::PageClientImpl::toolTipChanged):
987         (WebKit::PageClientImpl::setCursor):
988         (WebKit::PageClientImpl::setViewportArguments):
989         (WebKit::PageClientImpl::registerEditCommand):
990         (WebKit::PageClientImpl::clearAllEditCommands):
991         (WebKit::PageClientImpl::canUndoRedo):
992         (WebKit::PageClientImpl::executeUndoRedo):
993         (WebKit::PageClientImpl::convertToDeviceSpace):
994         (WebKit::PageClientImpl::convertToUserSpace):
995         (WebKit::PageClientImpl::windowToScreen):
996         (WebKit::PageClientImpl::doneWithKeyEvent):
997         (WebKit::PageClientImpl::createPopupMenuProxy):
998         (WebKit::PageClientImpl::createContextMenuProxy):
999         (WebKit::PageClientImpl::setFindIndicator):
1000         (WebKit::PageClientImpl::didChangeScrollbarsForMainFrame):
1001         (WebKit::PageClientImpl::didCommitLoadForMainFrame):
1002         (WebKit::PageClientImpl::didFinishLoadingDataForCustomRepresentation):
1003         (WebKit::PageClientImpl::customRepresentationZoomFactor):
1004         (WebKit::PageClientImpl::setCustomRepresentationZoomFactor):
1005         (WebKit::PageClientImpl::flashBackingStoreUpdates):
1006         (WebKit::PageClientImpl::findStringInCustomRepresentation):
1007         (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation):
1008         (WebKit::PageClientImpl::userSpaceScaleFactor):
1009         * UIProcess/API/efl/PageClientImpl.h: Added.
1010         (WebKit::PageClientImpl::create):
1011         (WebKit::PageClientImpl::viewObject):
1012         (WebKit::PageClientImpl::page):
1013         * UIProcess/WebPageProxy.h:
1014         * UIProcess/efl/WebPageProxyEfl.cpp: Added.
1015         (WebKit::WebPageProxy::viewObject):
1016         (WebKit::WebPageProxy::standardUserAgent):
1017         (WebKit::WebPageProxy::getEditorCommandsForKeyEvent):
1018         (WebKit::WebPageProxy::saveRecentSearches):
1019         (WebKit::WebPageProxy::loadRecentSearches):
1020
1021 2011-06-08  John Sullivan  <sullivan@apple.com>
1022
1023         Reviewed by Darin Adler.
1024
1025         <https://bugs.webkit.org/show_bug.cgi?id=62332>
1026         <rdar://problem/9355199>
1027         [WKView _setDragImage:at:linkDrag:] can crash if WKView is dealloc'ed during drag
1028
1029         * UIProcess/API/mac/WKView.mm:
1030         (-[WKView _resendKeyDownEvent:]):
1031         Renamed self-protecting RetainPtr from "protect" to "protector" so it's a noun.
1032         (-[WKView _setDragImage:at:linkDrag:]):
1033         Added a self-protecting RetainPtr.
1034
1035 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
1036
1037         Reviewed by Kenneth Rohde Christiansen.
1038
1039         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
1040         https://bugs.webkit.org/show_bug.cgi?id=61694
1041
1042         Add an ArgumentCoder for FloatPoint3D.
1043
1044         Together with Viatcheslav Ostapenko.
1045
1046         * Scripts/webkit2/messages.py:
1047         * Shared/WebCoreArgumentCoders.h:
1048
1049 2011-06-08  No'am Rosenthal  <noam.rosenthal@nokia.com>
1050
1051          Reviewed by Kenneth Rohde Christiansen.
1052
1053          WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
1054          https://bugs.webkit.org/show_bug.cgi?id=61694
1055
1056          Add ArgumentCoders for TransformOperation, including all the subclasses,
1057          and TransformOperations.
1058
1059          * Scripts/webkit2/messages.py:
1060          * Shared/WebCoreArgumentCoders.h:
1061
1062 2011-06-08  Yael Aharon  <yael.aharon@nokia.com>
1063
1064         Reviewed by Andreas Kling.
1065
1066         [Qt] Build fix for building QtWebKit inside of Qt.
1067         https://bugs.webkit.org/show_bug.cgi?id=62280
1068
1069         Remove CONFIG=staticlib, because it causes the configure script to add -lwebkit2
1070         into QtWebKit.prl.
1071
1072         * WebKit2.pri:
1073
1074 2011-06-07  Tim Horton  <timothy_horton@apple.com>
1075
1076         Reviewed by Alexey Proskuryakov.
1077
1078         Use correct CFURLStorageSessionRef definition on Snow Leopard
1079         https://bugs.webkit.org/show_bug.cgi?id=62223
1080
1081         * PluginProcess/mac/PluginProcessShim.mm:
1082
1083 2011-06-07  John Sullivan  <sullivan@apple.com>
1084
1085         Reviewed by Darin Adler.
1086
1087         <https://bugs.webkit.org/show_bug.cgi?id=62248>
1088         <rdar://problem/9568516>
1089         WKResponderChainSink mechanism isn't robust against some types of responder chain manipulation
1090
1091         * UIProcess/API/mac/WKView.mm:
1092         (-[WKResponderChainSink detach]):
1093         This method formerly blindly assumed that since -initWithResponderChain: put self at the
1094         end of the responder chain, after _lastResponderInChain, then self is still at the end
1095         of the responder chain and still immediately after _lastResponderInChain. Made this function
1096         robust against some kinds of responder chain manipulations, though it can't be robust against
1097         some other kinds (e.g., manipulations that removed self from this chain and put it into some
1098         other chain).
1099
1100 2011-06-07  Sam Weinig  <sam@webkit.org>
1101
1102         Reviewed by Anders Carlsson.
1103
1104         Remove repeated IPC traffic from SetRenderTreeSize message
1105         https://bugs.webkit.org/show_bug.cgi?id=62244
1106
1107         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1108         Add didLayoutForFrame callback.
1109
1110         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1111         (WKBundlePageGetRenderTreeSize):
1112         * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
1113         Add render tree size getter in WebProcess.
1114
1115         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
1116         (WebKit::InjectedBundlePageLoaderClient::didLayoutForFrame):
1117         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
1118         Added.
1119
1120         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1121         * WebProcess/WebCoreSupport/WebChromeClient.h:
1122         Removed setRenderTreeSize.
1123
1124         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1125         (WebKit::WebFrameLoaderClient::dispatchDidLayout):
1126         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
1127         Call the new didLayoutForFrame client function.
1128
1129         * WebProcess/WebPage/WebPage.cpp:
1130         (WebKit::WebPage::renderTreeSize):
1131         * WebProcess/WebPage/WebPage.h:
1132         Add iterative implementation to compute the total size of the render tree
1133         for a page.
1134
1135 2011-06-07  Zalan Bujtas  <zbujtas@gmail.com>
1136
1137         Reviewed by Andreas Kling.
1138
1139         TiledDrawingArea: Delay serving tile requests when the drawing area is suspended.
1140
1141         Do not paint tiles when painting is disabled (suspended) on the web process side.
1142         Buffer up the tile requests and paint them, when the drawing area gets resumed.
1143         On the UI process side, do not block on tile updates, when the tiled area is
1144         not visible (painting is disabled on the web process side).
1145
1146         * UIProcess/TiledDrawingAreaProxy.cpp:
1147         (WebKit::TiledDrawingAreaProxy::waitUntilUpdatesComplete):
1148         * WebProcess/WebPage/TiledDrawingArea.cpp:
1149         (WebKit::TiledDrawingArea::suspendPainting):
1150         (WebKit::TiledDrawingArea::resumePainting):
1151         (WebKit::TiledDrawingArea::scheduleTileUpdate):
1152         (WebKit::TiledDrawingArea::tileUpdateTimerFired):
1153         (WebKit::TiledDrawingArea::didReceiveMessage):
1154         * WebProcess/WebPage/TiledDrawingArea.h:
1155
1156 2011-06-07  Sheriff Bot  <webkit.review.bot@gmail.com>
1157
1158         Unreviewed, rolling out r88259 and r88263.
1159         http://trac.webkit.org/changeset/88259
1160         http://trac.webkit.org/changeset/88263
1161         https://bugs.webkit.org/show_bug.cgi?id=62228
1162
1163         broke builds (Requested by rniwa on #webkit).
1164
1165         * PluginProcess/mac/PluginProcessShim.mm:
1166
1167 2011-06-07  Tim Horton  <timothy_horton@apple.com>
1168
1169         Reviewed by Alexey Proskuryakov.
1170
1171         Use correct CFURLStorageSessionRef definition on Snow Leopard
1172         https://bugs.webkit.org/show_bug.cgi?id=62223
1173
1174         * PluginProcess/mac/PluginProcessShim.mm:
1175
1176 2011-06-07  Carlos Garcia Campos  <cgarcia@igalia.com>
1177
1178         Reviewed by Martin Robinson.
1179
1180         [GTK] Move moduleMixesGtkSymbols() from PluginPackage to PluginView
1181         https://bugs.webkit.org/show_bug.cgi?id=62200
1182
1183         In WebKit2 PluginPackage is used by the UI process to load plugins
1184         in order to get information about them, but it doesn't use any GTK
1185         symbol. So the UI process should be able to load plugins even when
1186         building with GTK3, but we should not allow the plugin view to use
1187         the plugin if it mixes GTK2 and GTK3 symbols.
1188
1189         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
1190         (WebKit::moduleMixesGtkSymbols):
1191         (WebKit::NetscapePlugin::platformPostInitialize): Check whether
1192         the module is mixing GTK+ 2 and GTK+ 3 symbols.
1193
1194 2011-06-06  Sheriff Bot  <webkit.review.bot@gmail.com>
1195
1196         Unreviewed, rolling out r88222.
1197         http://trac.webkit.org/changeset/88222
1198         https://bugs.webkit.org/show_bug.cgi?id=62192
1199
1200         Broke compile on Mac (Requested by abarth on #webkit).
1201
1202         * Scripts/webkit2/messages.py:
1203         * Shared/WebCoreArgumentCoders.h:
1204
1205 2011-06-06  Noam Rosenthal  <noam.rosenthal@nokia.com>
1206
1207         Reviewed by Kenneth Rohde Christiansen.
1208
1209         WebKit2: Enable serializing of data types needed for cross-process accelerated compositing
1210         https://bugs.webkit.org/show_bug.cgi?id=61694
1211
1212         Add ArgumentCoders for TransformOperation, including all the subclasses,
1213         and TransformOperations.
1214
1215         * Scripts/webkit2/messages.py:
1216         * Shared/WebCoreArgumentCoders.h:
1217
1218 2011-06-06  John Sullivan  <sullivan@apple.com>
1219
1220         Reviewed by Dan Bernstein.
1221
1222         <https://bugs.webkit.org/show_bug.cgi?id=62165>
1223         <rdar://problem/9555835>
1224         WebKit2 find-on-page callback doesn’t handle kWKMoreThanMaximumMatchCount on PDF pages
1225
1226         * UIProcess/API/mac/PDFViewController.mm:
1227         (WebKit::PDFViewController::findString):
1228         Return kWKMoreThanMaximumMatchCount when appropriate, a la FindController::countStringMatches().
1229         Also, skip counting all the matches if maxMatchCount is 0, to avoid (perhaps slowly) computing a
1230         number that would be ignored.
1231
1232 2011-06-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1233
1234         Reviewed by Anders Carlsson.
1235
1236         Do not use NPRuntimeObjectMap in NetscapePlugin::setException when plug-in is running out of process
1237         https://bugs.webkit.org/show_bug.cgi?id=62124
1238
1239         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
1240         (WebKit::NetscapePlugin::setException):
1241
1242 2011-06-06  Dominic Cooney  <dominicc@chromium.org>
1243
1244         Unreviewed WinCairo build fix after r88159.
1245
1246         * win/WebKit2CFLite.def: Export symbols for WebCoreTestSupport.
1247
1248 2011-06-04  Dominic Cooney  <dominicc@chromium.org>
1249
1250         Reviewed by Dimitri Glazkov.
1251
1252         Re-export JSC and WebCore symbols required by WebCoreTestSupport.
1253         https://bugs.webkit.org/show_bug.cgi?id=61076
1254
1255         * win/WebKit2.def:
1256
1257 2011-06-06  Alexandru Chiculita  <achicu@adobe.com>
1258
1259         Reviewed by Kent Tamura.
1260
1261         Add ENABLE_CSS_EXCLUSIONS support for build-webkit script
1262         https://bugs.webkit.org/show_bug.cgi?id=61628
1263
1264         * Configurations/FeatureDefines.xcconfig:
1265
1266 2011-06-06  Mihnea Ovidenie  <mihnea@adobe.com>
1267
1268         Reviewed by Kent Tamura.
1269
1270         Add ENABLE(CSS_REGIONS) guard for CSS Regions support
1271         https://bugs.webkit.org/show_bug.cgi?id=61631
1272
1273         * Configurations/FeatureDefines.xcconfig:
1274
1275 2011-06-06  Carlos Garcia Campos  <cgarcia@igalia.com>
1276
1277         Reviewed by Anders Carlsson.
1278
1279         [UNIX] SOCK_DGRAM sockets are not notified when the other end closes the connection
1280         https://bugs.webkit.org/show_bug.cgi?id=61538
1281
1282         Use SOCK_STREAM instead of SOCK_DGRAM sockets. Rework the message
1283         receiver code to support stream sockets, since it requires to
1284         handle message boundaries. The same code works for DGRAM sockets,
1285         so this change shouldn't break other ports using DGRAM.
1286
1287         * Platform/CoreIPC/Connection.h:
1288         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1289         (CoreIPC::Connection::platformInitialize):
1290         (CoreIPC::Connection::processMessage): Process messages from data
1291         already received.
1292         (CoreIPC::readBytesFromSocket): Read from socket using recvmsg().
1293         (CoreIPC::Connection::readyReadHandler):
1294         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
1295         (WebKit::ProcessLauncher::launchProcess): Use SOCK_DGRAM in
1296         socketpair().
1297
1298 == Rolled over to ChangeLog-2011-06-04 ==