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