Unreviewed, rolling out r142141.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-02-07  Gavin Peters  <gavinp@chromium.org>
2
3         Unreviewed, rolling out r142141.
4         http://trac.webkit.org/changeset/142141
5         https://bugs.webkit.org/show_bug.cgi?id=108990
6
7         Reland r142112, will update Chromium expectations and create a
8         Chromium bug instead for the crash.
9
10         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
11         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
12         * WebProcess/WebPage/DrawingAreaImpl.cpp:
13         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
14
15 2013-02-07  Gavin Peters  <gavinp@chromium.org>
16
17         Unreviewed, rolling out r142112.
18         http://trac.webkit.org/changeset/142112
19         https://bugs.webkit.org/show_bug.cgi?id=108990
20
21         The new test scrollingcoordinator/non-fast-scrollable-region-transformed- iframe.html crashes on Lion.
22
23         See http://test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=scrollingcoordinator%2Fnon-fast-scrollable-region-transformed-iframe.html
24
25         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
26         (WebKit::updateOffsetFromViewportForSelf):
27         (WebKit):
28         (WebKit::updateOffsetFromViewportForLayer):
29         (WebKit::CoordinatedLayerTreeHost::syncFixedLayers):
30         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
31         * WebProcess/WebPage/DrawingAreaImpl.cpp:
32         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
33
34 2013-02-07  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
35
36         [CoordinatedGraphics] Use ScrollingCoordinator to track fixed layers
37         https://bugs.webkit.org/show_bug.cgi?id=108990
38
39         Reviewed by Noam Rosenthal.
40         Signed off for WebKit2 by Simon Fraser.
41
42         WebCore keeps ScrollingCoordinator up-to-date about whether layers are fixed or not, so we
43         don't need to traverse the tree every frame to get this information.
44
45         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp: remove
46         syncFixedLayers() and its helper functions. Those were used to identify the fixed layers
47         and are not needed anymore.
48         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
49         * WebProcess/WebPage/DrawingAreaImpl.cpp:
50         (WebKit::DrawingAreaImpl::DrawingAreaImpl): enable the scrolling coordinator usage for
51         Coordinated Graphics.
52
53 2013-02-07  Michael Brüning  <michael.bruning@digia.com>
54
55         [Qt][WK2] Fold QtWebPageLoadClient into QQuickWebViewPrivate and move to C API.
56         https://bugs.webkit.org/show_bug.cgi?id=108473
57
58         Reviewed by Simon Hausmann.
59         Signed off for WebKit2 by Benjamin Poulain.
60
61         This patch removes the QtWebPageLoadClient and moves the functionality into the
62         QQuickWebViewPrivate as most callback methods are calling the private webview
63         indirectly anyway.
64
65         The patch also moves as much of the functionality to the C API as is possible with
66         the current C API.
67
68         * Target.pri:
69         * UIProcess/API/qt/qquickwebview.cpp:
70         (QQuickWebViewPrivate::initialize):
71         (QQuickWebViewPrivate::didStartProvisionalLoadForFrame):
72         (QQuickWebViewPrivate::didReceiveServerRedirectForProvisionalLoadForFrame):
73         (QQuickWebViewPrivate::didFailLoad):
74         (QQuickWebViewPrivate::didCommitLoadForFrame):
75         (QQuickWebViewPrivate::didFinishLoadForFrame):
76         (QQuickWebViewPrivate::didSameDocumentNavigationForFrame):
77         (QQuickWebViewPrivate::didReceiveTitleForFrame):
78         (QQuickWebViewPrivate::didStartProgress):
79         (QQuickWebViewPrivate::didChangeProgress):
80         (QQuickWebViewPrivate::didFinishProgress):
81         (QQuickWebViewPrivate::didChangeBackForwardList):
82         (QQuickWebViewPrivate::setTransparentBackground):
83         (QQuickWebViewPrivate::transparentBackground):
84         (QQuickWebViewPrivate::loadProgressDidChange):
85         * UIProcess/API/qt/qquickwebview_p.h:
86         (WebKit):
87         * UIProcess/API/qt/qquickwebview_p_p.h:
88         (WebKit):
89         (QQuickWebViewPrivate):
90         * UIProcess/qt/QtWebError.cpp:
91         (WebKit::QtWebError::url):
92         * UIProcess/qt/QtWebPageLoadClient.cpp: Removed.
93         * UIProcess/qt/QtWebPageLoadClient.h: Removed.
94
95 2013-02-05  Eunmi Lee  <eunmi15.lee@samsung.com> and Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
96
97         [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries.
98         https://bugs.webkit.org/show_bug.cgi?id=97173
99
100         Reviewed by Kenneth Rohde Christiansen, signed-off by Benjamin Poulain.
101
102         Initialize and shutdown the EFL libraries in the ewk_main.cpp for
103         UIProcess and WebProcessMainEfl.cpp for WebProcess.
104
105         This allows us to shut down the libraries in a proper way, since
106         RunLoop persist until the process exits.
107
108         * UIProcess/API/efl/ewk_main.cpp:
109         (ewk_init):
110         (ewk_shutdown):
111         * WebProcess/efl/WebProcessMainEfl.cpp:
112         (WebKit::WebProcessMainEfl):
113
114 2013-02-07  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
115
116         Unreviewed build fix.
117
118         * UIProcess/Downloads/DownloadProxyMap.cpp:
119         (WebKit::DownloadProxyMap::processDidClose):
120         m_process can't be initialized nullptr yet. Use 0 instead of nullptr.
121
122 2013-02-07  Simon Hausmann  <simon.hausmann@digia.com>
123
124         [Qt][WK2] Fold QtWebPageFindClient into QQuickWebViewPrivate
125         https://bugs.webkit.org/show_bug.cgi?id=108920
126
127         Reviewed by Jocelyn Turcotte, signed off for WK2 by Benjamin.
128
129         Employ the pattern suggested by Jocelyn to simply implement the C
130         callbacks directly using static functions.
131
132         * Target.pri:
133         * UIProcess/API/qt/qquickwebview.cpp:
134         (toQQuickWebViewPrivate):
135         (QQuickWebViewPrivate::initialize):
136         (QQuickWebViewPrivate::didFindString):
137         (QQuickWebViewPrivate::didFailToFindString):
138         * UIProcess/API/qt/qquickwebview_p_p.h:
139         (QQuickWebViewPrivate):
140         * UIProcess/qt/QtWebPageFindClient.cpp: Removed.
141         * UIProcess/qt/QtWebPageFindClient.h: Removed.
142
143 2013-02-03  Sam Weinig  <sam@webkit.org>
144
145         Make CustomProtocolManagerProxy a MessageReceiver
146         https://bugs.webkit.org/show_bug.cgi?id=108787
147
148         Reviewed by Anders Carlsson.
149
150         * Shared/ChildProcessProxy.cpp:
151         (WebKit::ChildProcessProxy::addMessageReceiver):
152         (WebKit::ChildProcessProxy::removeMessageReceiver):
153         (WebKit::ChildProcessProxy::dispatchMessage):
154         (WebKit::ChildProcessProxy::dispatchSyncMessage):
155         * Shared/ChildProcessProxy.h:
156         Sink the MessageReceiverMap down into the ChildProcessProxy.
157
158         * UIProcess/Downloads/DownloadProxyMap.cpp:
159         (WebKit::DownloadProxyMap::DownloadProxyMap):
160         (WebKit::DownloadProxyMap::createDownloadProxy):
161         (WebKit::DownloadProxyMap::downloadFinished):
162         (WebKit::DownloadProxyMap::processDidClose):
163         * UIProcess/Downloads/DownloadProxyMap.h:
164         Pass the ChildProcessProxy rather than the MessageReceiverMap to the constructor.
165
166         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
167         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
168         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
169         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
170         Convert to a MessageReceiver.
171
172         * UIProcess/Network/NetworkProcessProxy.cpp:
173         (WebKit::NetworkProcessProxy::createDownloadProxy):
174         (WebKit::NetworkProcessProxy::didReceiveMessage):
175         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
176         * UIProcess/Network/NetworkProcessProxy.h:
177         * UIProcess/WebProcessProxy.cpp:
178         (WebKit::WebProcessProxy::didReceiveMessage):
179         (WebKit::WebProcessProxy::didReceiveSyncMessage):
180         (WebKit::WebProcessProxy::createDownloadProxy):
181         * UIProcess/WebProcessProxy.h:
182         (WebProcessProxy):
183         Remove direct chaining to CustomProtocolManagerProxy.
184
185 2013-02-06  Enrica Casucci  <enrica@apple.com>
186
187         ASSERT(!m_findPageOverlay) in FindController.cpp after r140769.
188         https://bugs.webkit.org/show_bug.cgi?id=109105.
189
190         Reviewed by Tim Horton.
191
192         In r140769 we changed the way the overlay is destroyed,
193         therefore the assert is no longer valid and should be removed.
194
195         * WebProcess/WebPage/FindController.cpp:
196         (WebKit::FindController::updateFindUIAfterPageScroll):
197
198 2013-02-06  Anders Carlsson  <andersca@apple.com>
199
200         Dispatch storage manager messages to the storage work queue
201         https://bugs.webkit.org/show_bug.cgi?id=109099
202
203         Reviewed by Andreas Kling.
204
205         * UIProcess/Storage/StorageManager.cpp:
206         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
207         (WebKit::StorageManager::dispatchMessageOnStorageManagerQueue):
208         (WebKit):
209         * UIProcess/Storage/StorageManager.h:
210         (StorageManager):
211
212 2013-02-06  Anders Carlsson  <andersca@apple.com>
213
214         Pass the document source URL to the pluginLoadPolicy callback
215         https://bugs.webkit.org/show_bug.cgi?id=109084
216         <rdar://problem/13154516>
217
218         Reviewed by Andreas Kling.
219
220         * UIProcess/API/C/WKPage.h:
221         * UIProcess/WebPageProxy.cpp:
222         (WebKit::WebPageProxy::getPluginPath):
223         * UIProcess/WebPageProxy.h:
224         (WebPageProxy):
225         * UIProcess/WebPageProxy.messages.in:
226         * UIProcess/WebUIClient.cpp:
227         (WebKit::WebUIClient::pluginLoadPolicy):
228         * UIProcess/WebUIClient.h:
229         (WebUIClient):
230         * WebProcess/WebPage/WebPage.cpp:
231         (WebKit::WebPage::createPlugin):
232         (WebKit::WebPage::canPluginHandleResponse):
233
234 2013-02-06  Alexey Proskuryakov  <ap@apple.com>
235
236         Get rid of unneeded writeable preferences.
237
238         Reviewed by Anders Carlsson.
239
240         com.apple.HIToolbox.plist and com.apple.WebProcess.plist were made writeable very
241         early in WebKit2 development, before we moved a lot of functionality to UI process.
242         They don't appear to be needed any more.
243
244         Note that we do not even need to allow reading for com.apple.WebProcess.plist -
245         it's read at process initialization before we enter the sandbox, and services
246         have a different plist anyway.
247
248         * WebProcess/com.apple.WebProcess.sb.in:
249
250 2013-02-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
251
252         [EFL][WK2] Assertion failure on MiniBrowser exit
253         https://bugs.webkit.org/show_bug.cgi?id=108932
254
255         Reviewed by Anders Carlsson.
256
257         WorkQueue is now refcounted after r141497, so increase ref
258         count when a new job is scheduled and unref it when it finishes.
259
260         * Platform/efl/WorkQueueEfl.cpp:
261         (WorkQueue::performWork):
262         (WorkQueue::performTimerWork):
263         (WorkQueue::dispatch):
264         (WorkQueue::dispatchAfterDelay):
265
266 2013-02-06  Simon Hausmann  <simon.hausmann@digia.com>, Zoltan Arvai  <zarvai@inf.u-szeged.hu>
267
268         [WK2][Win] Fix build after MessageID.h related changes and after r141619.
269         https://bugs.webkit.org/show_bug.cgi?id=108612
270
271         Reviewed by Anders Carlsson.
272
273         * Platform/CoreIPC/win/ConnectionWin.cpp:
274         (CoreIPC::Connection::platformInvalidate):
275         (CoreIPC::Connection::readEventHandler):
276         (CoreIPC::Connection::open):
277         (CoreIPC::Connection::sendOutgoingMessage):
278         * Platform/WorkQueue.h:
279         (WorkQueue::WorkItemWin::queue):
280         (WorkItemWin):
281         * Platform/win/SharedMemoryWin.cpp:
282         (WebKit::SharedMemory::Handle::decode):
283         * Platform/win/WorkQueueWin.cpp:
284         (WorkQueue::handleCallback):
285         (WorkQueue::performWorkOnRegisteredWorkThread):
286
287 2013-02-06  Mike West  <mkwst@chromium.org>
288
289         Add an ENABLE_NOSNIFF feature flag.
290         https://bugs.webkit.org/show_bug.cgi?id=109029
291
292         Reviewed by Jochen Eisinger.
293
294         This new flag will control the behavior of 'X-Content-Type-Options: nosniff'
295         when processing script and other resource types.
296
297         * Configurations/FeatureDefines.xcconfig:
298
299 2013-02-06  Marja Hölttä  <marja@chromium.org>
300
301         Take referrer policy into account when clearing the referrer header
302         https://bugs.webkit.org/show_bug.cgi?id=86000
303
304         Reviewed by Alexey Proskuryakov.
305
306         The referrer should only be cleared when doing a https -> http redirect,
307         if the policy is "default". Otherwise the referrer should be left intact.
308
309         * NetworkProcess/NetworkResourceLoader.cpp:
310         (WebKit::NetworkResourceLoader::start):
311         * NetworkProcess/SchedulableLoader.cpp:
312         (WebKit::SchedulableLoader::SchedulableLoader):
313         * NetworkProcess/SchedulableLoader.h:
314         (WebKit::SchedulableLoader::shouldClearReferrerOnHTTPSToHTTPRedirect):
315         (SchedulableLoader):
316         * NetworkProcess/SyncNetworkResourceLoader.cpp:
317         (WebKit::SyncNetworkResourceLoader::start):
318         * NetworkProcess/mac/RemoteNetworkingContext.h:
319         (WebKit::RemoteNetworkingContext::create):
320         (RemoteNetworkingContext):
321         * NetworkProcess/mac/RemoteNetworkingContext.mm:
322         (WebKit::RemoteNetworkingContext::shouldClearReferrerOnHTTPSToHTTPRedirect):
323         (WebKit):
324         (WebKit::RemoteNetworkingContext::RemoteNetworkingContext):
325         * Shared/Network/NetworkResourceLoadParameters.cpp:
326         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
327         (WebKit::NetworkResourceLoadParameters::encode):
328         (WebKit::NetworkResourceLoadParameters::decode):
329         * Shared/Network/NetworkResourceLoadParameters.h:
330         (NetworkResourceLoadParameters):
331         (WebKit::NetworkResourceLoadParameters::shouldClearReferrerOnHTTPSToHTTPRedirect):
332         * WebProcess/Network/WebResourceLoadScheduler.cpp:
333         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
334         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
335         (WebKit::WebResourceLoadScheduler::scheduleLoad):
336         * WebProcess/Network/WebResourceLoadScheduler.h:
337         (WebResourceLoadScheduler):
338         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
339         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
340
341 2013-02-06  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
342
343         [EFL][WK2] Encapsulate Ewk View evas smart object code inside EwkView class
344         https://bugs.webkit.org/show_bug.cgi?id=108062
345
346         Reviewed by Kenneth Rohde Christiansen.
347
348         The Ewk View implementation is encapsulated within EwkView class.
349         Besides multiple refactoring of Ewk View evas smart object code was made.
350
351         * UIProcess/API/C/efl/WKView.cpp:
352         (createWKView): 
353
354             Aux function to share WKView creation implementation.
355
356         * UIProcess/API/efl/EwkView.cpp:
357         (smartDataChanged):
358         (defaultSmartClassInstance):
359         (toSmartData):
360         (EwkView::initSmartClassInterface):
361         (EwkView::toEvasObject):
362         (EwkView::smartData):
363
364             Renamed and moved here from ewk_view.
365
366         (EwkViewEventHandler):
367         (EwkViewEventHandler::subscribe):
368         (EwkViewEventHandler::unsubscribe):
369         (::handleEvent):
370
371             Added a new template class to encapsulate Ewk View Evas events handling.
372
373         (EwkView::EwkView):
374         (EwkView::~EwkView):
375
376             Constructor and desctructor are private.
377
378         (EwkView::createEvasObject):
379
380             Added factory function for ewk view evas objects creation.
381
382         (EwkView::handleEvasObjectAdd):
383         (EwkView::handleEvasObjectDelete):
384         (EwkView::handleEvasObjectResize):
385         (EwkView::handleEvasObjectMove):
386         (EwkView::handleEvasObjectCalculate):
387         (EwkView::handleEvasObjectShow):
388         (EwkView::handleEvasObjectHide):
389         (EwkView::handleEvasObjectColorSet):
390
391             Evas_Smart_Class interface callbacks moved into the EwkView class.
392
393         (EwkView::handleEwkViewFocusIn):
394         (EwkView::handleEwkViewFocusOut):
395         (EwkView::handleEwkViewMouseWheel):
396         (EwkView::handleEwkViewMouseDown):
397         (EwkView::handleEwkViewMouseUp):
398         (EwkView::handleEwkViewMouseMove):
399         (EwkView::handleEwkViewKeyDown):
400         (EwkView::handleEwkViewKeyUp):
401
402             Ewk_View_Smart_Class interface callback moved into the EwkView class.
403
404         (EwkView::handleTouchDown):
405         (EwkView::handleTouchUp):
406         (EwkView::handleTouchMove):
407
408             Renamed.
409
410         (toEwkView): 
411
412             Aux function to get the EwkView instance fromevas object.
413
414         (isViewEvasObject):
415
416             Aux function to check that given evas object is ewk view.
417
418         * UIProcess/API/efl/EwkView.h:
419         (EwkView::evasObject):
420         (EwkView):
421         * UIProcess/API/efl/ewk_view.cpp:
422         (ewk_view_smart_class_set):
423         (ewk_view_smart_add):
424         (ewk_view_add_with_context):
425         (ewk_view_feed_touch_event):
426         (Ewk_Page_Contents_Context):
427
428         * UIProcess/API/efl/ewk_view_private.h: Removed.
429
430         * UIProcess/API/C/efl/WKView.cpp:
431         (WKViewCreate):
432         (WKViewCreateWithFixedLayout):
433         (WKViewCreateSnapshot):
434         * UIProcess/cairo/BackingStoreCairo.cpp:
435         (WebKit::BackingStore::incorporateUpdate):
436         * UIProcess/efl/ContextHistoryClientEfl.cpp:
437         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
438         (WebKit::ContextHistoryClientEfl::didPerformClientRedirect):
439         (WebKit::ContextHistoryClientEfl::didPerformServerRedirect):
440         (WebKit::ContextHistoryClientEfl::didUpdateHistoryTitle):
441         * UIProcess/efl/PageClientBase.cpp:
442         (WebKit::PageClientBase::processDidCrash):
443         * UIProcess/efl/PageLoadClientEfl.cpp:
444         (WebKit::PageLoadClientEfl::didChangeBackForwardList):
445         * UIProcess/efl/PageUIClientEfl.cpp:
446         (WebKit::PageUIClientEfl::takeFocus):
447         (WebKit::PageUIClientEfl::focus):
448         (WebKit::PageUIClientEfl::unfocus):
449         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
450         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
451         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
452         * UIProcess/efl/WebInspectorProxyEfl.cpp:
453         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
454         * UIProcess/efl/WebPageProxyEfl.cpp:
455         (WebKit::WebPageProxy::viewWidget):
456
457              Updated due to changes in EwkView interface.
458
459 2013-02-05  Tim Horton  <timothy_horton@apple.com>
460
461         [wk2] TiledCoreAnimationDrawingArea has one more layer in its CAContext when we're in the background
462         https://bugs.webkit.org/show_bug.cgi?id=108992
463         <rdar://problem/13087365>
464
465         Reviewed by Anders Carlsson.
466
467         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
468         (TiledCoreAnimationDrawingArea): Add storage for m_isInWindow.
469         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
470         (WebKit::TiledCoreAnimationDrawingArea::updateLayerHostingContext): Only set the root layer on our layer
471         hosting context if we're in the window when swapping out contexts.
472         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer): Update m_isInWindow, and set the root layer
473         of the layer hosting context (or unset it if we're out of the window).
474
475 2013-02-05  Anders Carlsson  <andersca@apple.com>
476
477         WebKit clients should be able to override loading of blocked plug-ins
478         https://bugs.webkit.org/show_bug.cgi?id=108968
479         <rdar://problem/13154516>
480
481         Reviewed by Sam Weinig.
482
483         Replace the shouldInstantiatePlugin callback with a new pluginLoadPolicy which is called regardless
484         of whether the plug-in is blocked or not. This lets clients override the plug-in load policy and
485         force loading of blacklisted plug-ins (and vice versa).
486
487         * UIProcess/API/C/WKPage.h:
488         * UIProcess/WebPageProxy.cpp:
489         (WebKit::WebPageProxy::getPluginPath):
490         * UIProcess/WebUIClient.cpp:
491         (WebKit::toWKPluginLoadPolicy):
492         (WebKit):
493         (WebKit::toPluginModuleLoadPolicy):
494         (WebKit::WebUIClient::pluginLoadPolicy):
495         * UIProcess/WebUIClient.h:
496         (WebUIClient):
497
498 2013-02-05  Simon Hausmann  <simon.hausmann@digia.com>
499
500         [Qt][WK2] Replace more uses of WebPageProxy with WKPage in QQuickWebView
501         https://bugs.webkit.org/show_bug.cgi?id=108826
502
503         Reviewed by Kenneth Rohde Christiansen and signed off for WK2 by
504         Benjamin Poulain.
505
506         This patch converts a few more usages of WebPageProxy to functions in
507         the WKPage API.
508
509         * UIProcess/API/qt/qquickwebview.cpp:
510         (QQuickWebViewPrivate::initialize):
511         (QQuickWebViewLegacyPrivate::zoomFactor):
512         (QQuickWebViewLegacyPrivate::setZoomFactor):
513         (QQuickWebViewExperimental::postMessage):
514         (QQuickWebViewExperimental::userAgent):
515         (QQuickWebViewExperimental::setUserAgent):
516         (QQuickWebViewExperimental::evaluateJavaScript):
517         (QQuickWebViewExperimental::findText):
518         (QQuickWebView::goBack):
519         (QQuickWebView::goForward):
520         (QQuickWebView::stop):
521         (QQuickWebView::reload):
522         (QQuickWebView::setUrl):
523         (QQuickWebView::canGoBack):
524         (QQuickWebView::canGoForward):
525         (QQuickWebView::loading):
526         (QQuickWebView::title):
527         (QQuickWebView::pageRef):
528         (QQuickWebView::loadHtml):
529         (QQuickWebView::runJavaScriptInMainFrame):
530         * UIProcess/API/qt/qquickwebview_p_p.h:
531         (QQuickWebViewPrivate):
532
533 2013-02-04  Gwang Yoon Hwang  <ryumiel@company100.net>
534
535         Coordinated Graphics : disconnectCustomFilterProgram does not do anything.
536         https://bugs.webkit.org/show_bug.cgi?id=108807
537
538         Reviewed by Anders Carlsson.
539
540         We need to add newly created WebCustomFilterProgramProxy to a hashset to
541         disconnect when CoordinatedLayerTreeHost gets destructed.
542
543         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
544         (WebKit::CoordinatedLayerTreeHost::checkCustomFilterProgramProxies):
545
546 2013-02-04  Benjamin Poulain  <bpoulain@apple.com>
547
548         Kill suspendAnimation(), resumeAnimation() and numberOfActiveAnimations() from DRT/WTR; use Internals
549         https://bugs.webkit.org/show_bug.cgi?id=108741
550
551         Reviewed by Tony Chang.
552
553         Suspending and resuming application has been useless for a one. Someone just
554         "forgot" WebKit2.
555
556         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
557         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
558         * WebProcess/WebPage/WebFrame.cpp:
559         * WebProcess/WebPage/WebFrame.h:
560         (WebFrame):
561
562 2013-02-04  Jaehun Lim  <ljaehun.lim@samsung.com>
563
564         [EFL][WK2] Implement runBeforeUnloadConfirmPanel on EFL
565         https://bugs.webkit.org/show_bug.cgi?id=106979
566
567         Reviewed by Benjamin Poulain.
568
569         Implement runBeforeUnloadConfirmPanel() to support window.onbeforeunload.
570         We can show confirmation window when beforeunload event is fired.
571
572         * UIProcess/efl/PageUIClientEfl.cpp:
573         (WebKit::PageUIClientEfl::PageUIClientEfl):
574         (WebKit::PageUIClientEfl::runBeforeUnloadConfirmPanel):
575         (WebKit):
576         * UIProcess/efl/PageUIClientEfl.h:
577         (PageUIClientEfl):
578
579 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
580
581         [EFL][WK2] Introduce a WebView class as counterpart for WKViewRef
582         https://bugs.webkit.org/show_bug.cgi?id=107931
583
584         Reviewed by Anders Carlsson.
585
586         This is just one step of the new plan for the EFL API.
587
588         The plan is to move the public EFL-like API on top of the shared
589         WK2 C API, plus a few EFL extensions (WKView class mostly).
590
591         The EFL-like API can be seen as a convenience API which ties
592         well into EFL and which makes it easy to add web experiences
593         to existing and new EFL applications. It provides a smart object
594         like API and a Evas_Object based view.
595
596         For more advanced use cases, such as browser and runtime, it is
597         possible to use the WK* C API, which is gives more flexibility
598         while being more low level.
599
600         The idea is that the WKView class will not depend on Evas_Object
601         and X11 (future plan) unlike the current EFL-like API. This should
602         make it possible to use it for cases where none of these are
603         available.
604
605         This patch introduces the WebView class which serves as our
606         counterpart for the WKView class, and adds a few needed methods.
607
608         The EwkView owns the WebView class (and will be constructing it
609         in the near future when the EwkView class has been changed to
610         handle all smart object related code)
611
612         The clean up of the smart object related code as the proper
613         construction of EwkView and WebView will be done in follow-up
614         patches.
615
616         * UIProcess/API/C/efl/WKAPICastEfl.h:
617         (WebKit):
618
619             The WKView API is not based on WebView and not Evas_Object*
620
621         * UIProcess/API/C/efl/WKView.cpp:
622         (WKViewCreate):
623         (WKViewCreateWithFixedLayout):
624         (WKViewInitialize):
625         (WKViewGetPage):
626         (WKViewSetThemePath):
627         (WKViewSuspendActiveDOMObjectsAndAnimations):
628         (WKViewResumeActiveDOMObjectsAndAnimations):
629         (WKViewGetEvasObject):
630         (WKViewCreateSnapshot):
631
632             Add a few new WKView EFL C methods, and update existing
633             methods to reflect that the WKViewRef is now a WebView*
634
635             The construction methods will be rewritten when the smart
636             object construction has been solved.
637
638         * UIProcess/API/C/efl/WKView.h:
639         * UIProcess/efl/WebView.cpp: Added.
640         (WebKit):
641         (WebKit::WebView::WebView):
642         (WebKit::WebView::~WebView):
643         (WebKit::WebView::initialize):
644         (WebKit::WebView::setThemePath):
645         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
646         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
647         * UIProcess/efl/WebView.h: Added.
648         (WebKit):
649         (WebView):
650         (WebKit::WebView::pageRef):
651         (WebKit::WebView::evasObject):
652         (WebKit::WebView::page):
653         (WebKit::WebView::type):
654
655             Add a new WebKit::WebView class for EFL.
656
657         * UIProcess/API/efl/EwkView.cpp:
658         (EwkView::EwkView):
659         (EwkView::~EwkView):
660         (EwkView::wkPage):
661         (EwkView::setThemePath):
662         (EwkView::createGLSurface):
663
664             Base methods on C API instead of internal API as much
665             as currently possible.
666
667         * UIProcess/API/efl/EwkView.h:
668         (WebKit):
669         (WebView):
670         (EwkView):
671         (EwkView::wkView):
672         (EwkView::page):
673         * UIProcess/API/efl/ewk_view.cpp:
674         (createEwkView):
675         (ewk_view_base_add):
676         (ewk_view_smart_add):
677
678             Modify to return the EwkView class for now.
679
680         * UIProcess/API/efl/ewk_view_private.h:
681         * UIProcess/efl/WebInspectorProxyEfl.cpp:
682         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
683
684             Updated due to changed API.
685
686 2013-02-04  Anders Carlsson  <andersca@apple.com>
687
688         Set up the storage manager as a connection queue
689         https://bugs.webkit.org/show_bug.cgi?id=108879
690
691         Reviewed by Sam Weinig.
692
693         * UIProcess/Storage/StorageManager.cpp:
694         (WebKit::StorageManager::processWillOpenConnection):
695         Add the storage manager as a connection queue client.
696
697         (WebKit::StorageManager::processWillCloseConnection):
698         Remove the storage manager.
699
700         * UIProcess/WebContext.cpp:
701         (WebKit::WebContext::processWillOpenConnection):
702         Call the storage manager.
703
704         (WebKit::WebContext::processWillCloseConnection):
705         Call the storage manager.
706
707         * UIProcess/WebProcessProxy.cpp:
708         (WebKit::WebProcessProxy::connectionWillOpen):
709         Call the context.
710
711         (WebKit::WebProcessProxy::connectionWillClose):
712         Call the context.
713
714         (WebKit::WebProcessProxy::didFinishLaunching):
715         Remove a comment.
716
717 2013-02-04  Anders Carlsson  <andersca@apple.com>
718
719         Send message when creating and destroying StorageAreaProxy objects
720         https://bugs.webkit.org/show_bug.cgi?id=108874
721
722         Reviewed by Sam Weinig.
723
724         * Shared/SecurityOriginData.cpp:
725         (WebKit::SecurityOriginData::fromSecurityOrigin):
726         * Shared/SecurityOriginData.h:
727         (SecurityOriginData):
728         Add helper function for creating a SecurityOriginData object given a WebCore::SecurityOrigin object.
729
730         * WebProcess/Storage/StorageAreaProxy.cpp:
731         (WebKit::generateStorageAreaID):
732         New function to create a unique storage area ID.
733
734         (WebKit::StorageAreaProxy::StorageAreaProxy):
735         Send a CreateStorageArea message.
736         
737         (WebKit::StorageAreaProxy::~StorageAreaProxy):
738         Send a DestroyStorageArea message.
739
740         (WebKit::StorageAreaProxy::contains):
741         Remove this assertion for now, it fires too often.
742         
743         * WebProcess/Storage/StorageNamespaceProxy.h:
744         (WebKit::StorageNamespaceProxy::storageNamespaceID):
745         Add getter.
746
747 2013-02-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
748
749         [EFL][WK2] Use C API inside EwkView
750         https://bugs.webkit.org/show_bug.cgi?id=108825
751
752         Reviewed by Anders Carlsson.
753
754         A straight-forward port towards the C API.
755
756         * UIProcess/API/efl/EwkView.cpp:
757         (EwkView::EwkView): Use C API for common default preferences.
758         (EwkView::wkPage): Make it const and remove useless comment.
759         (EwkView::deviceScaleFactor):
760         (EwkView::title):
761         (EwkView::customTextEncodingName):
762         (EwkView::setCustomTextEncodingName):
763         (EwkView::informURLChange):
764         * UIProcess/API/efl/EwkView.h:
765         (EwkView):
766
767 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
768
769         Remove an unnecessary sandbox rule.
770
771         Reviewed by Sam Weinig.
772
773         * WebProcess/com.apple.WebProcess.sb.in: We already have a file-read rule for
774         /Library/Managed Preferences, no need for another rule for something inside it.
775
776 2013-02-04  Brady Eidson  <beidson@apple.com>
777
778         WebProcess crashes handling repeated NetworkProcess crashes.
779         <rdar://problem/13049867> and https://bugs.webkit.org/show_bug.cgi?id=108861
780
781         Reviewed by Alexey Proskuryakov.
782
783         - Rename the concept of "unschedulable loader" to "internally failed loader"
784         - When the NetworkProcess crashes, add all outstanding ResourceLoaders into the unschedulable pile.
785         * WebProcess/Network/WebResourceLoadScheduler.cpp:
786         (WebKit::WebResourceLoadScheduler::WebResourceLoadScheduler):
787         (WebKit::WebResourceLoadScheduler::scheduleLoad):
788         (WebKit::WebResourceLoadScheduler::scheduleInternallyFailedLoad):
789         (WebKit::WebResourceLoadScheduler::internallyFailedLoadTimerFired):
790         (WebKit::WebResourceLoadScheduler::remove): Also remove a non-helpful, out of date comment.
791         (WebKit::WebResourceLoadScheduler::networkProcessCrashed):
792         * WebProcess/Network/WebResourceLoadScheduler.h:
793
794         WebResourceLoader no longer responds to crashes directly, but now exposes its WebCore ResourceLoader:
795         * WebProcess/Network/WebResourceLoader.cpp:
796         * WebProcess/Network/WebResourceLoader.h:
797         (WebKit::WebResourceLoader::resourceLoader):
798
799 2013-02-04  Anders Carlsson  <andersca@apple.com>
800
801         Update message generation to use the new queue client semantics
802         https://bugs.webkit.org/show_bug.cgi?id=108865
803
804         Reviewed by Andreas Kling.
805
806         * Scripts/webkit2/messages.py:
807         (connection_work_queue_message_statement):
808         (async_message_statement):
809         (generate_message_handler):
810         * Scripts/webkit2/messages_unittest.py:
811         * Shared/mac/SecItemShim.cpp:
812         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
813         * Shared/mac/SecItemShim.h:
814         (SecItemShim):
815         * UIProcess/Storage/StorageManager.cpp:
816         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
817         * UIProcess/Storage/StorageManager.h:
818         (StorageManager):
819         * UIProcess/WebProcessProxy.cpp:
820         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
821         * UIProcess/WebProcessProxy.h:
822         (WebProcessProxy):
823         * UIProcess/mac/SecItemShimProxy.cpp:
824         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
825         * UIProcess/mac/SecItemShimProxy.h:
826         (SecItemShimProxy):
827         * WebKit2.xcodeproj/project.pbxproj:
828         * WebProcess/WebPage/EventDispatcher.cpp:
829         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
830         * WebProcess/WebPage/EventDispatcher.h:
831         (EventDispatcher):
832         * WebProcess/WebProcess.cpp:
833         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
834         * WebProcess/WebProcess.h:
835         (WebProcess):
836
837 2013-02-04  Abhishek Arya  <inferno@chromium.org>
838
839         Add ASSERT_WITH_SECURITY_IMPLICATION to detect out of bounds access
840         https://bugs.webkit.org/show_bug.cgi?id=108668
841
842         Reviewed by Eric Seidel.
843
844         * Shared/mac/SandboxExtensionMac.mm:
845         (WebKit::SandboxExtension::HandleArray::operator[]):
846
847 2013-02-04  Anders Carlsson  <andersca@apple.com>
848
849         Change didReceiveMessageOnConnectionWorkQueue semantics
850         https://bugs.webkit.org/show_bug.cgi?id=108859
851
852         Reviewed by Sam Weinig.
853
854         Change didReceiveMessageOnConnectionWorkQueue to take a reference to an
855         OwnPtr<MessageDecoder>. This lets queue clients handle a message later, on a different
856         work queue for example. Also, get rid of the didHandleMessage boolean, since taking ownership
857         of the decoder implicitly means that the message was handled.
858         
859         * Platform/CoreIPC/Connection.cpp:
860         (CoreIPC::Connection::processIncomingMessage):
861         * Platform/CoreIPC/Connection.h:
862         (QueueClient):
863         * Shared/mac/SecItemShim.cpp:
864         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
865         * Shared/mac/SecItemShim.h:
866         (SecItemShim):
867         * UIProcess/Storage/StorageManager.cpp:
868         (WebKit::StorageManager::StorageManager):
869         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
870         * UIProcess/Storage/StorageManager.h:
871         (WebKit):
872         (StorageManager):
873         * UIProcess/WebProcessProxy.cpp:
874         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
875         * UIProcess/WebProcessProxy.h:
876         (WebProcessProxy):
877         * UIProcess/mac/SecItemShimProxy.cpp:
878         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
879         * UIProcess/mac/SecItemShimProxy.h:
880         (SecItemShimProxy):
881         * WebProcess/WebPage/EventDispatcher.cpp:
882         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
883         * WebProcess/WebPage/EventDispatcher.h:
884         (EventDispatcher):
885         * WebProcess/WebProcess.cpp:
886         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
887         * WebProcess/WebProcess.h:
888         (WebProcess):
889
890 2013-02-04  Alexey Proskuryakov  <ap@apple.com>
891
892         <rdar://problem/12884778> Sandbox violation due to MediaAccessibility code trying to access ~/Library/Preferences/com.apple.mediaaccessibility.plist
893
894         Reviewed by Sam Weinig.
895
896         * WebProcess/com.apple.WebProcess.sb.in:
897
898 2013-02-04  Anders Carlsson  <andersca@apple.com>
899
900         Add didCloseOnConnectionWorkQueue to Connection::QueueClient
901         https://bugs.webkit.org/show_bug.cgi?id=108853
902
903         Reviewed by Andreas Kling.
904
905         * Platform/CoreIPC/Connection.cpp:
906         (CoreIPC::Connection::connectionDidClose):
907         * Platform/CoreIPC/Connection.h:
908         (QueueClient):
909         * Shared/mac/SecItemShim.cpp:
910         (WebKit::SecItemShim::didCloseOnConnectionWorkQueue):
911         * Shared/mac/SecItemShim.h:
912         (SecItemShim):
913         * UIProcess/Storage/StorageManager.cpp:
914         (WebKit::StorageManager::didCloseOnConnectionWorkQueue):
915         (WebKit):
916         * UIProcess/Storage/StorageManager.h:
917         (StorageManager):
918         * UIProcess/WebProcessProxy.cpp:
919         (WebKit::WebProcessProxy::didCloseOnConnectionWorkQueue):
920         (WebKit):
921         * UIProcess/WebProcessProxy.h:
922         (WebProcessProxy):
923         * UIProcess/mac/SecItemShimProxy.cpp:
924         (WebKit::SecItemShimProxy::didCloseOnConnectionWorkQueue):
925         * UIProcess/mac/SecItemShimProxy.h:
926         (SecItemShimProxy):
927         * WebProcess/WebPage/EventDispatcher.cpp:
928         (WebKit::EventDispatcher::didCloseOnConnectionWorkQueue):
929         (WebKit):
930         * WebProcess/WebPage/EventDispatcher.h:
931         (EventDispatcher):
932         * WebProcess/WebProcess.cpp:
933         (WebKit::WebProcess::didCloseOnConnectionWorkQueue):
934         (WebKit):
935         * WebProcess/WebProcess.h:
936         (WebProcess):
937
938 2013-02-04  Martin Robinson  <mrobinson@igalia.com>
939
940         Fix GTK+ 'make dist' in preparation for the 1.11.5 release.
941
942         * GNUmakefile.am:
943         * GNUmakefile.list.am:
944
945 2013-02-04  Enrica Casucci  <enrica@apple.com>
946
947         Add specific EditActions for Bold and Italic commands.
948         https://bugs.webkit.org/show_bug.cgi?id=108842.
949         <rdar://problem/13098252>
950
951         Reviewed by Ryosuke Niwa.
952
953         * UIProcess/WebEditCommandProxy.cpp:
954         (WebKit::WebEditCommandProxy::nameForEditAction):
955
956 2013-02-04  Anders Carlsson  <andersca@apple.com>
957
958         Use a separate queue for the connection watchdog callback in the web process
959         https://bugs.webkit.org/show_bug.cgi?id=108844
960
961         Reviewed by Andreas Kling.
962
963         Don't pass the connection work queue to the didCloseOnConnectionWorkQueue callback.
964         Instead, create a new, temporary work queue where the exit call will be dispatched to.
965
966         * Platform/CoreIPC/Connection.cpp:
967         (CoreIPC::Connection::connectionDidClose):
968         * Platform/CoreIPC/Connection.h:
969         (Connection):
970         * Shared/ChildProcess.cpp:
971         (WebKit::didCloseOnConnectionWorkQueue):
972
973 2013-02-04  Tim Horton  <timothy_horton@apple.com>
974
975         Allow TiledCoreAnimationDrawingArea overlay layers to become tiled
976         https://bugs.webkit.org/show_bug.cgi?id=108729
977         <rdar://problem/13047546>
978
979         Reviewed by Anders Carlsson.
980
981         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
982         (TiledCoreAnimationDrawingArea): Add didCommitChangesForLayer and storage for the
983         current PlatformLayer corresponding to m_pageOverlayLayer.
984         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
985         (WebKit::TiledCoreAnimationDrawingArea::flushLayers): Update the TileCache's visible rect.
986         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect): Forward exposed rect changes to the page overlay layer, if it's tiled.
987         (WebKit::TiledCoreAnimationDrawingArea::mainFrameScrollabilityChanged): Forward scrollability changes to the page overlay layer, if it's tiled.
988         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer): Allow the page overlay layer to become tiled. Update its exposed rect and whether or not it respects the exposed rect if it's tiled upon creation.
989         (WebKit::TiledCoreAnimationDrawingArea::didCommitChangesForLayer): If a GraphicsLayer's platform layer changes (because it switched to or from a tiled layer), reparent it. If it's switching to a tiled layer, update the exposed rect and whether or not it should respect the exposed rect.
990
991 2013-02-04  Anders Carlsson  <andersca@apple.com>
992
993         Use UNUSED_PARAM instead of C style comments.
994
995         * UIProcess/Storage/StorageManager.cpp:
996         (WebKit::StorageManager::createStorageArea):
997
998 2013-02-04  Christophe Dumez  <dchris@gmail.com>
999
1000         [EFL][WK2] Stop using libsoup in ewk_url_scheme_request
1001         https://bugs.webkit.org/show_bug.cgi?id=108816
1002
1003         Reviewed by Anders Carlsson.
1004
1005         As we are trying to minimize use of external dependencies in our WK2 EFL
1006         API implementation, we should stop using libsoup in
1007         ewk_url_scheme_request and use the WK2 C API instead.
1008
1009         * UIProcess/API/efl/ewk_url_scheme_request.cpp:
1010         (EwkUrlSchemeRequest::EwkUrlSchemeRequest):
1011
1012 2013-02-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1013
1014         [WK2][EFL] Weird stripe at the end of the page
1015         https://bugs.webkit.org/show_bug.cgi?id=108820
1016
1017         Reviewed by Noam Rosenthal.
1018
1019         The page scroll bound was artificially enlarged by one causing the artifact appearance.
1020
1021         * UIProcess/PageViewportController.cpp:
1022         (WebKit::PageViewportController::boundContentsPositionAtScale):
1023
1024 2013-02-04  David Kilzer  <ddkilzer@apple.com>
1025
1026         Sort WebKit2 Xcode project file
1027
1028         * WebKit2.xcodeproj/project.pbxproj:
1029
1030 2013-02-04  Simon Hausmann  <simon.hausmann@digia.com>
1031
1032         [WK2][Qt] Replace WebPageGroup usage for user scripts with WKPageGroupRef
1033         https://bugs.webkit.org/show_bug.cgi?id=108651
1034
1035         Reviewed by Sam Weinig.
1036
1037         It's straight-forward port towards the C API.
1038
1039         * UIProcess/API/qt/qquickwebview.cpp:
1040         (QQuickWebViewPrivate::initialize):
1041         (readUserScript):
1042         (QQuickWebViewPrivate::updateUserScripts):
1043         * UIProcess/API/qt/qquickwebview_p_p.h:
1044         (QQuickWebViewPrivate):
1045
1046 2013-02-04  Balazs Kelemen  <kbalazs@webkit.org>
1047
1048         [Soup] Wrap SoupSession by NetworkStorageSession
1049         https://bugs.webkit.org/show_bug.cgi?id=108615
1050
1051         Reviewed by Alexey Proskuryakov.
1052
1053         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp:
1054         (WebKit::WebFrameNetworkingContext::storageSession):
1055         * WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.h:
1056         (WebFrameNetworkingContext):
1057
1058 2013-02-03  David Kilzer  <ddkilzer@apple.com>
1059
1060         Upstream ENABLE_PDFKIT_PLUGIN settting
1061         <http://webkit.org/b/108792>
1062
1063         Reviewed by Tim Horton.
1064
1065         * Configurations/FeatureDefines.xcconfig: Disable PDFKIT_PLUGIN
1066         on iOS since PDFKit is a Mac-only framework.
1067
1068 2013-02-01  Alexey Proskuryakov  <ap@apple.com>
1069
1070         Silently block one more directory needed for NSApplication initialization.
1071
1072         Reviewed by Sam Weinig.
1073
1074         * WebProcess/com.apple.WebProcess.sb.in:
1075
1076 2013-02-03  KwangYong Choi  <ky0.choi@samsung.com>
1077
1078         Fix build warning after r141648
1079         https://bugs.webkit.org/show_bug.cgi?id=108784
1080
1081         Reviewed by Kentaro Hara.
1082
1083         Fix -Wunused-parameter build warning.
1084
1085         * UIProcess/Storage/StorageManager.cpp:
1086         (WebKit::StorageManager::createStorageArea):
1087         (WebKit::StorageManager::destroyStorageArea):
1088
1089 2013-02-03  Joanmarie Diggs  <jdiggs@igalia.com>
1090
1091         [GTK] Make distcheck fails
1092         https://bugs.webkit.org/show_bug.cgi?id=108756
1093
1094         Reviewed by Kentaro Hara.
1095
1096         * GNUmakefile.list.am: Remove header files which no longer exist
1097
1098 2013-02-02  Sam Weinig  <sam@webkit.org>
1099
1100         Remove more LegacyReceivers
1101         https://bugs.webkit.org/show_bug.cgi?id=108758
1102
1103         Reviewed by Anders Carlsson.
1104
1105         * UIProcess/Downloads/DownloadProxy.cpp:
1106         * UIProcess/Downloads/DownloadProxy.messages.in:
1107         * UIProcess/WebApplicationCacheManagerProxy.cpp:
1108         * UIProcess/WebApplicationCacheManagerProxy.h:
1109         (WebApplicationCacheManagerProxy):
1110         * UIProcess/WebApplicationCacheManagerProxy.messages.in:
1111         * UIProcess/WebCookieManagerProxy.cpp:
1112         * UIProcess/WebCookieManagerProxy.h:
1113         (WebCookieManagerProxy):
1114         * UIProcess/WebCookieManagerProxy.messages.in:
1115         * UIProcess/WebDatabaseManagerProxy.cpp:
1116         * UIProcess/WebDatabaseManagerProxy.h:
1117         (WebDatabaseManagerProxy):
1118         * UIProcess/WebDatabaseManagerProxy.messages.in:
1119         * UIProcess/mac/RemoteLayerTreeHost.h:
1120         (RemoteLayerTreeHost):
1121         * UIProcess/mac/RemoteLayerTreeHost.messages.in:
1122         * UIProcess/mac/RemoteLayerTreeHost.mm:
1123         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1124         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1125         (WebApplicationCacheManager):
1126         * WebProcess/ApplicationCache/WebApplicationCacheManager.messages.in:
1127         * WebProcess/Cookies/WebCookieManager.cpp:
1128         * WebProcess/Cookies/WebCookieManager.h:
1129         (WebCookieManager):
1130         * WebProcess/Cookies/WebCookieManager.messages.in:
1131         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1132         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1133         (WebDatabaseManager):
1134         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
1135
1136 2013-02-02  Sam Weinig  <sam@webkit.org>
1137
1138         Convert CustomProtocolManagerProxy, CustomProtocolManager and AuthenticationManager to be non-LegacyReceivers
1139         https://bugs.webkit.org/show_bug.cgi?id=108757
1140
1141         Reviewed by Anders Carlsson.
1142
1143         * Shared/Authentication/AuthenticationManager.cpp:
1144         * Shared/Authentication/AuthenticationManager.h:
1145         (AuthenticationManager):
1146         * Shared/Authentication/AuthenticationManager.messages.in:
1147         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1148         (CustomProtocolManager):
1149         * Shared/Network/CustomProtocols/CustomProtocolManager.messages.in:
1150         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1151         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
1152         (CustomProtocolManagerProxy):
1153         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in:
1154         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
1155
1156 2013-02-02  Christophe Dumez  <christophe.dumez@intel.com>
1157
1158         [EFL][WK2] Use C API inside ewk_file_chooser_request
1159         https://bugs.webkit.org/show_bug.cgi?id=107811
1160
1161         Reviewed by Sam Weinig.
1162
1163         Use C API inside ewk_file_chooser_request instead of
1164         accessing the internal C++ classes directly, to
1165         avoid violating API layering.
1166
1167         * UIProcess/API/efl/ewk_file_chooser_request.cpp:
1168         (EwkFileChooserRequest::EwkFileChooserRequest):
1169         (EwkFileChooserRequest::~EwkFileChooserRequest):
1170         (EwkFileChooserRequest::allowMultipleFiles):
1171         (EwkFileChooserRequest::acceptedMIMETypes):
1172         (EwkFileChooserRequest::cancel):
1173         (EwkFileChooserRequest::chooseFiles):
1174         (ewk_file_chooser_request_accepted_mimetypes_get):
1175         (ewk_file_chooser_request_files_choose):
1176         (ewk_file_chooser_request_file_choose):
1177         * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1178         (EwkFileChooserRequest::create):
1179         (EwkFileChooserRequest):
1180         * UIProcess/efl/PageUIClientEfl.cpp:
1181         (WebKit::PageUIClientEfl::runOpenPanel):
1182
1183 2013-02-02  Sam Weinig  <sam@webkit.org>
1184
1185         Stop keeping a frame tree in the UIProcess
1186         https://bugs.webkit.org/show_bug.cgi?id=81728
1187
1188         Reviewed by Oliver Hunt.
1189
1190         This patch removes the parent/child relationships of WebFrameProxys
1191         in the UIProcess
1192
1193         * UIProcess/API/C/WKFrame.cpp:
1194         (WKFrameCopyChildFrames):
1195         (WKFrameGetParentFrame):
1196         * UIProcess/API/C/WKFrame.h:
1197         Null out the implementations of WKFrameCopyChildFrames and WKFrameGetParentFrame,
1198         but keep them around as their symbols are still needed for nightlies.
1199
1200         * UIProcess/WebFrameProxy.cpp:
1201         (WebKit::WebFrameProxy::WebFrameProxy):
1202         (WebKit::WebFrameProxy::disconnect):
1203         * UIProcess/WebFrameProxy.h:
1204         Remove parent/child connections.
1205
1206         * UIProcess/WebPageProxy.cpp:
1207         (WebKit::WebPageProxy::didCreateSubframe):
1208         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1209         * UIProcess/WebPageProxy.h:
1210         * UIProcess/WebPageProxy.messages.in:
1211         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1212         (WebKit::WebFrameLoaderClient::didSaveToPageCache):
1213         (WebKit::WebFrameLoaderClient::didRestoreFromPageCache):
1214         * WebProcess/WebPage/WebFrame.cpp:
1215         (WebKit::WebFrame::createSubframe):
1216         Remove/Update messages that only served to update the parent/child connection.
1217
1218 2013-02-02  Sam Weinig  <sam@webkit.org>
1219
1220         Make it possible to modify the connection from ChildProcessProxy subclasses.
1221
1222         Reviewed by Anders Carlsson.
1223
1224         * Shared/ChildProcessProxy.cpp:
1225         (WebKit::ChildProcessProxy::ChildProcessProxy):
1226         (WebKit::ChildProcessProxy::didFinishLaunching):
1227         (WebKit::ChildProcessProxy::clearConnection):
1228         (WebKit::ChildProcessProxy::connectionWillOpen):
1229         (WebKit::ChildProcessProxy::connectionWillClose):
1230         * Shared/ChildProcessProxy.h:
1231         (ChildProcessProxy):
1232         * UIProcess/WebProcessProxy.cpp:
1233         (WebKit::WebProcessProxy::WebProcessProxy):
1234         (WebKit::WebProcessProxy::connectionWillOpen):
1235         (WebKit::WebProcessProxy::connectionWillClose):
1236         * UIProcess/WebProcessProxy.h:
1237         (WebProcessProxy):
1238
1239 2013-02-02  David Kilzer  <ddkilzer@apple.com>
1240
1241         Upstream iOS FeatureDefines
1242         <http://webkit.org/b/108753>
1243
1244         Reviewed by Anders Carlsson.
1245
1246         * Configurations/FeatureDefines.xcconfig:
1247         - ENABLE_DEVICE_ORIENTATION: Add iOS configurations.
1248         - ENABLE_PLUGIN_PROXY_FOR_VIDEO: Ditto.
1249         - FEATURE_DEFINES: Add ENABLE_PLUGIN_PROXY_FOR_VIDEO.  Add
1250           PLATFORM_NAME variant to reduce future merge conflicts. 
1251
1252 2013-02-02  Csaba Osztrogonác  <ossy@webkit.org>
1253
1254         [Qt][WK2] Unreviewed buildfix after r141648.
1255
1256         * DerivedSources.pri:
1257
1258 2013-02-02  Zan Dobersek  <zdobersek@igalia.com>
1259
1260         Follow-up to r141682. Adding build targets for the files that should be generated from the new message.in file.
1261
1262         Unreviewed.
1263
1264         * GNUmakefile.list.am:
1265
1266 2013-02-01  Zan Dobersek  <zdobersek@igalia.com>
1267
1268         Unreviewed GTK build fix after r141648.
1269
1270         * GNUmakefile.am: Add UIProcess/Storage to the list of paths that
1271         should be searched for *.messages.in files.
1272
1273 2013-02-01  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1274
1275         Unreviewed build fix after r141648
1276
1277         Needs to add StorageManager.messages.in to CMakeLists.txt.
1278
1279         * CMakeLists.txt:
1280
1281 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
1282
1283         Build fix for CustomProtocolManagerMac after r141658.
1284
1285         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1286         (WebKit::CustomProtocolManager::supplementName): I accidentally typed "const" twice twice.
1287
1288 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
1289
1290         [WK2] Use light supplement names instead of static AtomicStrings
1291         https://bugs.webkit.org/show_bug.cgi?id=108570
1292
1293         Reviewed by Anders Carlsson.
1294
1295         Since all the supplement names are just string literals and are all different,
1296         we can just use their pointer as the key in the supplement hashmaps.
1297
1298         This is lighter and faster than using AtomicString. WebCore already moved to this
1299         in Supplementable.
1300
1301         * NetworkProcess/NetworkProcess.h:
1302         (WebKit::NetworkProcess::addSupplement):
1303         (NetworkProcess):
1304         * Shared/Authentication/AuthenticationManager.cpp:
1305         (WebKit::AuthenticationManager::supplementName):
1306         * Shared/Authentication/AuthenticationManager.h:
1307         (AuthenticationManager):
1308         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
1309         (CustomProtocolManager):
1310         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
1311         (WebKit::CustomProtocolManager::supplementName):
1312         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
1313         (WebKit::WebNotificationManagerProxy::supplementName):
1314         * UIProcess/Notifications/WebNotificationManagerProxy.h:
1315         (WebNotificationManagerProxy):
1316         * UIProcess/WebApplicationCacheManagerProxy.cpp:
1317         (WebKit::WebApplicationCacheManagerProxy::supplementName):
1318         * UIProcess/WebApplicationCacheManagerProxy.h:
1319         (WebApplicationCacheManagerProxy):
1320         * UIProcess/WebContext.h:
1321         (WebContext):
1322         * UIProcess/WebCookieManagerProxy.cpp:
1323         (WebKit::WebCookieManagerProxy::supplementName):
1324         * UIProcess/WebCookieManagerProxy.h:
1325         (WebCookieManagerProxy):
1326         * UIProcess/WebDatabaseManagerProxy.cpp:
1327         (WebKit::WebDatabaseManagerProxy::supplementName):
1328         * UIProcess/WebDatabaseManagerProxy.h:
1329         (WebDatabaseManagerProxy):
1330         * UIProcess/WebGeolocationManagerProxy.cpp:
1331         (WebKit::WebGeolocationManagerProxy::supplementName):
1332         * UIProcess/WebGeolocationManagerProxy.h:
1333         (WebGeolocationManagerProxy):
1334         * UIProcess/WebKeyValueStorageManagerProxy.cpp:
1335         (WebKit::WebKeyValueStorageManagerProxy::supplementName):
1336         * UIProcess/WebKeyValueStorageManagerProxy.h:
1337         (WebKeyValueStorageManagerProxy):
1338         * UIProcess/WebMediaCacheManagerProxy.cpp:
1339         (WebKit::WebMediaCacheManagerProxy::supplementName):
1340         * UIProcess/WebMediaCacheManagerProxy.h:
1341         (WebMediaCacheManagerProxy):
1342         * UIProcess/WebResourceCacheManagerProxy.cpp:
1343         (WebKit::WebResourceCacheManagerProxy::supplementName):
1344         * UIProcess/WebResourceCacheManagerProxy.h:
1345         (WebResourceCacheManagerProxy):
1346         * UIProcess/soup/WebSoupRequestManagerProxy.cpp:
1347         (WebKit::WebSoupRequestManagerProxy::supplementName):
1348         * UIProcess/soup/WebSoupRequestManagerProxy.h:
1349         (WebSoupRequestManagerProxy):
1350         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1351         (WebKit::WebApplicationCacheManager::supplementName):
1352         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
1353         (WebApplicationCacheManager):
1354         * WebProcess/Cookies/WebCookieManager.cpp:
1355         (WebKit::WebCookieManager::supplementName):
1356         * WebProcess/Cookies/WebCookieManager.h:
1357         (WebCookieManager):
1358         * WebProcess/Geolocation/WebGeolocationManager.cpp:
1359         (WebKit::WebGeolocationManager::supplementName):
1360         * WebProcess/Geolocation/WebGeolocationManager.h:
1361         (WebGeolocationManager):
1362         * WebProcess/MediaCache/WebMediaCacheManager.cpp:
1363         (WebKit::WebMediaCacheManager::supplementName):
1364         * WebProcess/MediaCache/WebMediaCacheManager.h:
1365         (WebMediaCacheManager):
1366         * WebProcess/Notifications/WebNotificationManager.cpp:
1367         (WebKit::WebNotificationManager::supplementName):
1368         * WebProcess/Notifications/WebNotificationManager.h:
1369         (WebNotificationManager):
1370         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
1371         (WebKit::WebResourceCacheManager::supplementName):
1372         * WebProcess/ResourceCache/WebResourceCacheManager.h:
1373         (WebResourceCacheManager):
1374         * WebProcess/Storage/WebKeyValueStorageManager.cpp:
1375         (WebKit::WebKeyValueStorageManager::supplementName):
1376         * WebProcess/Storage/WebKeyValueStorageManager.h:
1377         (WebKeyValueStorageManager):
1378         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
1379         (WebKit::WebDatabaseManager::supplementName):
1380         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
1381         (WebDatabaseManager):
1382         * WebProcess/WebProcess.h:
1383         (WebKit::WebProcess::addSupplement):
1384         (WebProcess):
1385
1386 2013-02-01  Benjamin Poulain  <bpoulain@apple.com>
1387
1388         Clean the String->AtomicString conversion for AnimationController::pauseAnimationAtTime
1389         https://bugs.webkit.org/show_bug.cgi?id=108558
1390
1391         Reviewed by Dean Jackson.
1392
1393         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1394         (WKBundleFramePauseAnimationOnElementWithId):
1395         * WebProcess/WebPage/WebFrame.cpp:
1396         (WebKit::WebFrame::pauseAnimationOnElementWithId):
1397         * WebProcess/WebPage/WebFrame.h:
1398         (WebFrame):
1399
1400 2013-02-01  Anders Carlsson  <andersca@apple.com>
1401
1402         More work on UI side storage
1403         https://bugs.webkit.org/show_bug.cgi?id=108700
1404
1405         Reviewed by Sam Weinig.
1406
1407         * DerivedSources.make:
1408         Add StorageManager.messages.in.
1409
1410         * Platform/CoreIPC/HandleMessage.h:
1411         (CoreIPC::callMemberFunction):
1412         Add new overload.
1413
1414         * UIProcess/Storage/StorageManager.cpp:
1415         (WebKit::StorageManager::didReceiveMessageOnConnectionWorkQueue):
1416         Call the right function.
1417
1418         (WebKit::StorageManager::createStorageArea):
1419         (WebKit::StorageManager::destroyStorageArea):
1420         Add stubs.
1421
1422         * UIProcess/Storage/StorageManager.messages.in: Added.
1423         Add new messages files.
1424
1425         * WebKit2.xcodeproj/project.pbxproj:
1426         Add new files.
1427
1428         * WebProcess/Storage/StorageAreaProxy.cpp:
1429         (WebKit::StorageAreaProxy::~StorageAreaProxy):
1430         Add another FIXME.
1431
1432         (WebKit::StorageAreaProxy::canAccessStorage):
1433         (WebKit::StorageAreaProxy::incrementAccessCount):
1434         (WebKit::StorageAreaProxy::decrementAccessCount):
1435         Implement these.
1436
1437 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1438
1439         [Gtk] [WK2] Fix build after r141619
1440         https://bugs.webkit.org/show_bug.cgi?id=108687
1441
1442         Reviewed by Benjamin Poulain.
1443
1444         Take a reference instead of a pointer for decoding functions.
1445
1446         * Platform/gtk/SharedMemoryGtk.cpp:
1447         (WebKit::SharedMemory::Handle::decode):
1448         * Shared/gtk/ArgumentCodersGtk.cpp:
1449         (CoreIPC::decodeImage):
1450         (CoreIPC::decodeDataObject):
1451         (CoreIPC::::decode):
1452         (CoreIPC::decodeGKeyFile):
1453         (CoreIPC::decode):
1454         * Shared/gtk/ArgumentCodersGtk.h:
1455         * Shared/gtk/LayerTreeContextGtk.cpp:
1456         (WebKit::LayerTreeContext::decode):
1457
1458 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1459
1460         [EFL] [WK2] Fix build after r141619
1461         https://bugs.webkit.org/show_bug.cgi?id=108683
1462
1463         Reviewed by Benjamin Poulain.
1464
1465         Take a reference instead of a pointer for decoding functions.
1466
1467         * Shared/WebBatteryStatus.cpp:
1468         (WebKit::WebBatteryStatus::Data::decode):
1469         * Shared/WebBatteryStatus.h:
1470         (Data):
1471         * Shared/WebNetworkInfo.cpp:
1472         (WebKit::WebNetworkInfo::Data::decode):
1473         * Shared/WebNetworkInfo.h:
1474         (Data):
1475         * Shared/cairo/LayerTreeContextCairo.cpp:
1476         (WebKit::LayerTreeContext::decode):
1477         * Shared/efl/LayerTreeContextEfl.cpp:
1478         (WebKit::LayerTreeContext::decode):
1479         * Shared/soup/PlatformCertificateInfo.cpp:
1480         (WebKit::PlatformCertificateInfo::decode):
1481         * Shared/soup/PlatformCertificateInfo.h:
1482         (PlatformCertificateInfo):
1483         * Shared/soup/WebCoreArgumentCodersSoup.cpp:
1484         (CoreIPC::::decodePlatformData):
1485
1486 2013-02-01  Brady Eidson  <beidson@apple.com>
1487
1488         Clean up WebArchive loading with the NetworkProcess
1489         <rdar://problem/12695840> and https://bugs.webkit.org/show_bug.cgi?id=108673
1490
1491         Reviewed by Alexey Proskuryakov.
1492
1493         * NetworkProcess/HostRecord.cpp:
1494         (WebKit::HostRecord::servePendingRequestsForQueue):  Add new logging.
1495         (WebKit::HostRecord::servePendingRequests): Tweak existing logging.
1496
1497         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
1498         (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Tweak existing logging.
1499
1500         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1501         (WebKit::WebResourceLoadScheduler::scheduleLoad): Handle archive resource scheduling better,
1502           and add new logging to better explore archive loading behavior in the future.
1503
1504 2013-02-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1505
1506         [Qt] [WK2] Fix build after r141619
1507         https://bugs.webkit.org/show_bug.cgi?id=108680
1508
1509         Reviewed by Benjamin Poulain.
1510
1511         Take a reference instead of a pointer for decoding functions.
1512
1513         * Platform/unix/SharedMemoryUnix.cpp:
1514         (WebKit::SharedMemory::Handle::decode):
1515         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1516         (CoreIPC::::decode):
1517         (CoreIPC::decodeTimingFunction):
1518         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
1519         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
1520         (WebKit::WebCoordinatedSurface::Handle::decode):
1521         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1522         (Handle):
1523         * Shared/qt/ArgumentCodersQt.cpp:
1524         (CoreIPC::::decode):
1525         * Shared/qt/ArgumentCodersQt.h:
1526         (CoreIPC):
1527         * Shared/qt/LayerTreeContextQt.cpp:
1528         (WebKit::LayerTreeContext::decode):
1529         * Shared/qt/PlatformCertificateInfo.h:
1530         (WebKit::PlatformCertificateInfo::decode):
1531         * Shared/qt/QtNetworkReplyData.cpp:
1532         (WebKit::QtNetworkReplyData::decode):
1533         * Shared/qt/QtNetworkReplyData.h:
1534         (QtNetworkReplyData):
1535         * Shared/qt/QtNetworkRequestData.cpp:
1536         (WebKit::QtNetworkRequestData::decode):
1537         * Shared/qt/QtNetworkRequestData.h:
1538         (QtNetworkRequestData):
1539         * Shared/qt/WebCoreArgumentCodersQt.cpp:
1540         (CoreIPC::::decodePlatformData):
1541
1542 2013-02-01  Anders Carlsson  <andersca@apple.com>
1543
1544         Message decoding functions should take a MessageDecoder reference
1545         https://bugs.webkit.org/show_bug.cgi?id=108669
1546
1547         Reviewed by Andreas Kling.
1548
1549         Message encoding functions already take a reference instead of a pointer, so
1550         make the decoding functions take a reference as well.
1551
1552         * Platform/CoreIPC/ArgumentCoder.h:
1553         (CoreIPC::ArgumentCoder::decode):
1554         * Platform/CoreIPC/ArgumentCoders.cpp:
1555         (CoreIPC::::decode):
1556         (CoreIPC::decodeStringText):
1557         * Platform/CoreIPC/ArgumentCoders.h:
1558         (CoreIPC::SimpleArgumentCoder::decode):
1559         * Platform/CoreIPC/ArgumentDecoder.h:
1560         (CoreIPC::ArgumentDecoder::decode):
1561         * Platform/CoreIPC/Arguments.h:
1562         (CoreIPC::Arguments0::decode):
1563         (CoreIPC::Arguments1::decode):
1564         (CoreIPC::Arguments2::decode):
1565         (CoreIPC::Arguments3::decode):
1566         (CoreIPC::Arguments4::decode):
1567         (CoreIPC::Arguments5::decode):
1568         (CoreIPC::Arguments6::decode):
1569         (CoreIPC::Arguments7::decode):
1570         (CoreIPC::Arguments8::decode):
1571         (CoreIPC::Arguments10::decode):
1572         * Platform/CoreIPC/Attachment.cpp:
1573         (CoreIPC::Attachment::decode):
1574         * Platform/CoreIPC/Attachment.h:
1575         (Attachment):
1576         * Platform/CoreIPC/DataReference.cpp:
1577         (CoreIPC::DataReference::decode):
1578         * Platform/CoreIPC/DataReference.h:
1579         (DataReference):
1580         * Platform/CoreIPC/StringReference.cpp:
1581         (CoreIPC::StringReference::decode):
1582         * Platform/CoreIPC/StringReference.h:
1583         (StringReference):
1584         * Platform/CoreIPC/mac/MachPort.h:
1585         (CoreIPC::MachPort::decode):
1586         * Platform/SharedMemory.h:
1587         (Handle):
1588         * Platform/mac/SharedMemoryMac.cpp:
1589         (WebKit::SharedMemory::Handle::decode):
1590         * PluginProcess/PluginCreationParameters.cpp:
1591         (WebKit::PluginCreationParameters::decode):
1592         * PluginProcess/PluginCreationParameters.h:
1593         (PluginCreationParameters):
1594         * Shared/DictionaryPopupInfo.cpp:
1595         (WebKit::DictionaryPopupInfo::decode):
1596         * Shared/DictionaryPopupInfo.h:
1597         (DictionaryPopupInfo):
1598         * Shared/EditorState.cpp:
1599         (WebKit::EditorState::decode):
1600         * Shared/EditorState.h:
1601         (EditorState):
1602         * Shared/FontInfo.cpp:
1603         (WebKit::FontInfo::decode):
1604         * Shared/FontInfo.h:
1605         (FontInfo):
1606         * Shared/LayerTreeContext.h:
1607         (LayerTreeContext):
1608         * Shared/Network/NetworkProcessCreationParameters.cpp:
1609         (WebKit::NetworkProcessCreationParameters::decode):
1610         * Shared/Network/NetworkProcessCreationParameters.h:
1611         (NetworkProcessCreationParameters):
1612         * Shared/Network/NetworkResourceLoadParameters.cpp:
1613         (WebKit::NetworkResourceLoadParameters::decode):
1614         * Shared/Network/NetworkResourceLoadParameters.h:
1615         (NetworkResourceLoadParameters):
1616         * Shared/OriginAndDatabases.cpp:
1617         (WebKit::OriginAndDatabases::decode):
1618         * Shared/OriginAndDatabases.h:
1619         (OriginAndDatabases):
1620         * Shared/PlatformPopupMenuData.cpp:
1621         (WebKit::PlatformPopupMenuData::decode):
1622         * Shared/PlatformPopupMenuData.h:
1623         (PlatformPopupMenuData):
1624         * Shared/Plugins/NPIdentifierData.cpp:
1625         (WebKit::NPIdentifierData::decode):
1626         * Shared/Plugins/NPIdentifierData.h:
1627         (NPIdentifierData):
1628         * Shared/Plugins/NPVariantData.cpp:
1629         (WebKit::NPVariantData::decode):
1630         * Shared/Plugins/NPVariantData.h:
1631         (NPVariantData):
1632         * Shared/Plugins/PluginProcessCreationParameters.cpp:
1633         (WebKit::PluginProcessCreationParameters::decode):
1634         * Shared/Plugins/PluginProcessCreationParameters.h:
1635         (PluginProcessCreationParameters):
1636         * Shared/PrintInfo.cpp:
1637         (WebKit::PrintInfo::decode):
1638         * Shared/PrintInfo.h:
1639         (PrintInfo):
1640         * Shared/SandboxExtension.h:
1641         (Handle):
1642         (HandleArray):
1643         (WebKit::SandboxExtension::Handle::decode):
1644         (WebKit::SandboxExtension::HandleArray::decode):
1645         * Shared/SecurityOriginData.cpp:
1646         (WebKit::SecurityOriginData::decode):
1647         * Shared/SecurityOriginData.h:
1648         (SecurityOriginData):
1649         * Shared/SessionState.cpp:
1650         (WebKit::SessionState::decode):
1651         * Shared/SessionState.h:
1652         (SessionState):
1653         * Shared/ShareableBitmap.cpp:
1654         (WebKit::ShareableBitmap::Handle::decode):
1655         * Shared/ShareableBitmap.h:
1656         (Handle):
1657         * Shared/ShareableResource.cpp:
1658         (WebKit::ShareableResource::Handle::decode):
1659         * Shared/ShareableResource.h:
1660         (Handle):
1661         * Shared/SharedWorkerProcessCreationParameters.cpp:
1662         (WebKit::SharedWorkerProcessCreationParameters::decode):
1663         * Shared/SharedWorkerProcessCreationParameters.h:
1664         (SharedWorkerProcessCreationParameters):
1665         * Shared/StatisticsData.cpp:
1666         (WebKit::StatisticsData::decode):
1667         * Shared/StatisticsData.h:
1668         (StatisticsData):
1669         * Shared/StringPairVector.h:
1670         (WebKit::StringPairVector::decode):
1671         * Shared/UpdateInfo.cpp:
1672         (WebKit::UpdateInfo::decode):
1673         * Shared/UpdateInfo.h:
1674         (UpdateInfo):
1675         * Shared/UserMessageCoders.h:
1676         (WebKit::UserMessageDecoder::baseDecode):
1677         * Shared/WebContextMenuItemData.cpp:
1678         (WebKit::WebContextMenuItemData::decode):
1679         * Shared/WebContextMenuItemData.h:
1680         (WebContextMenuItemData):
1681         * Shared/WebCoreArgumentCoders.cpp:
1682         (CoreIPC::::decode):
1683         (CoreIPC::decodeImage):
1684         * Shared/WebCoreArgumentCoders.h:
1685         * Shared/WebEvent.cpp:
1686         (WebKit::WebEvent::decode):
1687         * Shared/WebEvent.h:
1688         (WebEvent):
1689         (WebMouseEvent):
1690         (WebWheelEvent):
1691         (WebKeyboardEvent):
1692         (WebGestureEvent):
1693         (WebPlatformTouchPoint):
1694         (WebTouchEvent):
1695         * Shared/WebGeolocationPosition.cpp:
1696         (WebKit::WebGeolocationPosition::Data::decode):
1697         * Shared/WebGeolocationPosition.h:
1698         (Data):
1699         * Shared/WebGestureEvent.cpp:
1700         (WebKit::WebGestureEvent::decode):
1701         * Shared/WebHitTestResult.cpp:
1702         (WebKit::WebHitTestResult::Data::decode):
1703         * Shared/WebHitTestResult.h:
1704         (Data):
1705         * Shared/WebKeyboardEvent.cpp:
1706         (WebKit::WebKeyboardEvent::decode):
1707         * Shared/WebMouseEvent.cpp:
1708         (WebKit::WebMouseEvent::decode):
1709         * Shared/WebNavigationDataStore.h:
1710         (WebKit::WebNavigationDataStore::decode):
1711         * Shared/WebPageCreationParameters.cpp:
1712         (WebKit::WebPageCreationParameters::decode):
1713         * Shared/WebPageCreationParameters.h:
1714         (WebPageCreationParameters):
1715         * Shared/WebPageGroupData.cpp:
1716         (WebKit::WebPageGroupData::decode):
1717         * Shared/WebPageGroupData.h:
1718         (WebPageGroupData):
1719         * Shared/WebPlatformTouchPoint.cpp:
1720         (WebKit::WebPlatformTouchPoint::decode):
1721         * Shared/WebPopupItem.cpp:
1722         (WebKit::WebPopupItem::decode):
1723         * Shared/WebPopupItem.h:
1724         * Shared/WebPreferencesStore.cpp:
1725         (WebKit::WebPreferencesStore::decode):
1726         * Shared/WebPreferencesStore.h:
1727         (WebPreferencesStore):
1728         * Shared/WebProcessCreationParameters.cpp:
1729         (WebKit::WebProcessCreationParameters::decode):
1730         * Shared/WebProcessCreationParameters.h:
1731         (WebProcessCreationParameters):
1732         * Shared/WebTouchEvent.cpp:
1733         (WebKit::WebTouchEvent::decode):
1734         * Shared/WebWheelEvent.cpp:
1735         (WebKit::WebWheelEvent::decode):
1736         * Shared/cf/ArgumentCodersCF.cpp:
1737         (CoreIPC::decode):
1738         * Shared/cf/ArgumentCodersCF.h:
1739         (CoreIPC):
1740         * Shared/mac/ArgumentCodersMac.h:
1741         (CoreIPC):
1742         * Shared/mac/ArgumentCodersMac.mm:
1743         (CoreIPC::decode):
1744         * Shared/mac/AttributedString.h:
1745         (AttributedString):
1746         * Shared/mac/AttributedString.mm:
1747         (WebKit::AttributedString::decode):
1748         * Shared/mac/ColorSpaceData.h:
1749         (ColorSpaceData):
1750         * Shared/mac/ColorSpaceData.mm:
1751         (WebKit::ColorSpaceData::decode):
1752         * Shared/mac/LayerTreeContextMac.mm:
1753         (WebKit::LayerTreeContext::decode):
1754         * Shared/mac/ObjCObjectGraphCoders.h:
1755         (WebContextObjCObjectGraphDecoder):
1756         (InjectedBundleObjCObjectGraphDecoder):
1757         * Shared/mac/ObjCObjectGraphCoders.mm:
1758         (WebKit::ObjCObjectGraphDecoder::baseDecode):
1759         (WebKit::WebContextObjCObjectGraphDecoderImpl::decode):
1760         (WebKit::InjectedBundleObjCObjectGraphDecoderImpl::decode):
1761         (WebKit::WebContextObjCObjectGraphDecoder::decode):
1762         (WebKit::InjectedBundleObjCObjectGraphDecoder::decode):
1763         * Shared/mac/PlatformCertificateInfo.h:
1764         (PlatformCertificateInfo):
1765         * Shared/mac/PlatformCertificateInfo.mm:
1766         (WebKit::PlatformCertificateInfo::decode):
1767         * Shared/mac/RemoteLayerTreeTransaction.h:
1768         (LayerProperties):
1769         (RemoteLayerTreeTransaction):
1770         * Shared/mac/RemoteLayerTreeTransaction.mm:
1771         (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
1772         (WebKit::RemoteLayerTreeTransaction::decode):
1773         * Shared/mac/SandboxExtensionMac.mm:
1774         (WebKit::SandboxExtension::Handle::decode):
1775         (WebKit::SandboxExtension::HandleArray::decode):
1776         * Shared/mac/SecItemRequestData.cpp:
1777         (WebKit::SecItemRequestData::decode):
1778         * Shared/mac/SecItemRequestData.h:
1779         * Shared/mac/SecItemResponseData.cpp:
1780         (WebKit::SecItemResponseData::decode):
1781         * Shared/mac/SecItemResponseData.h:
1782         (SecItemResponseData):
1783         * Shared/mac/WebCoreArgumentCodersMac.mm:
1784         (CoreIPC::::decodePlatformData):
1785         (CoreIPC::::decode):
1786         * UIProcess/WebContextUserMessageCoders.h:
1787         (WebKit::WebContextUserMessageDecoder::decode):
1788         * WebProcess/InjectedBundle/InjectedBundleUserMessageCoders.h:
1789         (WebKit::InjectedBundleUserMessageDecoder::decode):
1790         * WebProcess/Plugins/Plugin.cpp:
1791         (WebKit::Plugin::Parameters::decode):
1792         * WebProcess/Plugins/Plugin.h:
1793         (Parameters):
1794
1795 2013-02-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1796
1797         [GTK] Adapt WorkQueueGtk to the latest changes in WebKit2 after r141497
1798         https://bugs.webkit.org/show_bug.cgi?id=108607
1799
1800         Reviewed by Anders Carlsson.
1801
1802         * Platform/gtk/WorkQueueGtk.cpp:
1803         (WorkQueue::EventSource::executeEventSource): Remove the is valid
1804         work queue check.
1805         (WorkQueue::EventSource): WorkQueue is now refcounted, so keep a
1806         reference when a new job is scheduled and unref it when it
1807         finishes.
1808
1809 2013-02-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1810
1811         Unreviewed, rolling out r141319.
1812         http://trac.webkit.org/changeset/141319
1813         https://bugs.webkit.org/show_bug.cgi?id=108629
1814
1815         This patch is causing the UIProcess to hang on GTK port when
1816         loading plugins (Requested by chris-qBT_laptop on #webkit).
1817
1818         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
1819         (WebKit::PluginProcessProxy::scanPlugin):
1820
1821 2013-02-01  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1822
1823         [EFL][WK2] EwkContext should be based on C WK2 API
1824         https://bugs.webkit.org/show_bug.cgi?id=107666
1825
1826         Reviewed by Andreas Kling.
1827
1828         EwkContext should be based on C WK2 API so that API layering is not violated.
1829
1830         * UIProcess/API/efl/EwkView.cpp:
1831         (EwkView::EwkView):
1832         * UIProcess/API/efl/ewk_context.cpp:
1833         (EwkContext::EwkContext):
1834         (EwkContext::create):
1835         (EwkContext::cookieManager):
1836         (EwkContext::ensureFaviconDatabase):
1837         (EwkContext::setFaviconDatabaseDirectoryPath):
1838         (EwkContext::addVisitedLink):
1839         (EwkContext::setCacheModel):
1840         (EwkContext::cacheModel):
1841         (EwkContext::setAdditionalPluginPath):
1842         (EwkContext::clearResourceCache):
1843         * UIProcess/API/efl/ewk_context_private.h:
1844         (EwkContext):
1845         * UIProcess/API/efl/ewk_view.cpp:
1846         (ewk_view_base_add):
1847
1848 2013-02-01  Christophe Dumez  <christophe.dumez@intel.com>
1849
1850         [EFL][WK2] Use C API inside ewk_auth_request
1851         https://bugs.webkit.org/show_bug.cgi?id=107806
1852
1853         Reviewed by Andreas Kling.
1854
1855         Use C API inside ewk_auth_request instead of accessing C++ internal
1856         classes directly, to avoid violating layering.
1857
1858         * UIProcess/API/efl/ewk_auth_request.cpp:
1859         (EwkAuthRequest::EwkAuthRequest):
1860         (EwkAuthRequest::suggestedUsername):
1861         (EwkAuthRequest::realm):
1862         (EwkAuthRequest::host):
1863         (EwkAuthRequest::continueWithoutCredential):
1864         (EwkAuthRequest::authenticate):
1865         (EwkAuthRequest::isRetrying):
1866         (ewk_auth_request_authenticate):
1867         * UIProcess/API/efl/ewk_auth_request_private.h:
1868         (EwkAuthRequest::create):
1869         (EwkAuthRequest):
1870         * UIProcess/efl/PageLoadClientEfl.cpp:
1871         (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
1872
1873 2013-02-01  Seulgi Kim  <seulgikim@company100.net>
1874
1875         [Gtk][WK2] Fix build after recent WebKit2 changes
1876         https://bugs.webkit.org/show_bug.cgi?id=108588
1877
1878         Reviewed by Andreas Kling.
1879
1880         Don't remove WorkQueue during execution.
1881         Following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
1882
1883         * Platform/gtk/WorkQueueGtk.cpp:
1884         (WorkQueue::EventSource::~EventSource):
1885         (WorkQueue::EventSource::executeEventSource):
1886         (WorkQueue::dispatch):
1887         (WorkQueue::dispatchAfterDelay):
1888         (WorkQueue::dispatchOnTermination):
1889
1890 2013-02-01  Alexis Menard  <alexis@webkit.org>
1891
1892         Enable unprefixed CSS transitions by default.
1893         https://bugs.webkit.org/show_bug.cgi?id=108216
1894
1895         Reviewed by Dean Jackson.
1896
1897         Rename the flag CSS_TRANSFORMS_ANIMATIONS_TRANSITIONS_UNPREFIXED
1898         to CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED which will be used later to 
1899         guard the unprefixing work for CSS Transforms and animations.
1900
1901         * Configurations/FeatureDefines.xcconfig:
1902
1903 2013-02-01  Jae Hyun Park  <jae.park@company100.net>
1904
1905         Coordinated Graphics : Sort Target.pri and class declarations in alphabetical order.
1906         https://bugs.webkit.org/show_bug.cgi?id=108590
1907
1908         Reviewed by Noam Rosenthal.
1909
1910         Sort class declarations in alphabetical order.
1911
1912         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
1913         (WebCore):
1914
1915 2013-02-01  Gwang Yoon Hwang  <ryumiel@company100.net>
1916
1917         [EFL][WK2] MiniBrowser segfaults on loading google.com
1918         https://bugs.webkit.org/show_bug.cgi?id=108597
1919
1920         Reviewed by Andreas Kling.
1921
1922         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1923         (CoreIPC::Connection::processMessage):
1924         oolMessageBody should be properly initialized before it is used.
1925
1926         This patch also adds omitted break statement.
1927
1928 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
1929
1930         [Qt] Add MessageFlags.h in Target.pri
1931         https://bugs.webkit.org/show_bug.cgi?id=108583
1932
1933         Reviewed by Kentaro Hara.
1934
1935         Since MessageDecoder and MessageEncoder include MessageFlags.h, it
1936         should be included in Target.pri.
1937
1938         * Target.pri:
1939
1940 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
1941
1942         Coordinated Graphics : Move CoordinatedGraphics related files to WebCore
1943         https://bugs.webkit.org/show_bug.cgi?id=108149
1944
1945         Reviewed by Noam Rosenthal.
1946
1947         This patch moves Coordinated Graphics related code to WebCore. To
1948         implement Threaded Coordinated Graphics, most of Coordianted Graphics
1949         code should be shared. Therefore, they should reside in WebCore instead of
1950         WebKit2.
1951
1952         When moving to WebCore, two renamings have been done.
1953
1954         1. Rename LayerTreeRenderer to CoordinatedGraphicsScene.
1955
1956         2. Rename WebCustomFilterProgram and WebCustomFilterOperation to
1957         CoordinatedCustomFilterProgram and CoordinatedCustomFilterOperation,
1958         respectively.
1959
1960         No new tests, covered by existing tests.
1961
1962         * CMakeLists.txt:
1963         * Scripts/webkit2/messages.py:
1964         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
1965         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
1966         * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
1967         * Target.pri:
1968         * UIProcess/API/efl/EwkView.cpp:
1969         * UIProcess/API/efl/EwkView.h:
1970         * UIProcess/API/qt/qquickwebpage.cpp:
1971         * UIProcess/API/qt/raw/qrawwebview.cpp:
1972         * UIProcess/API/qt/raw/qrawwebview_p.h:
1973         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1974         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1975         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
1976         * UIProcess/efl/PageClientBase.cpp:
1977         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
1978         * UIProcess/qt/QtWebPageSGNode.cpp:
1979         * UIProcess/qt/QtWebPageSGNode.h:
1980         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1981         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1982
1983 2013-01-31  Rafael Brandao  <rafael.lobo@openbossa.org>
1984
1985         [Qt][WK2] Another attempt to fix build after recent WebKit2 changes
1986         https://bugs.webkit.org/show_bug.cgi?id=108548
1987
1988         Reviewed by Anders Carlsson.
1989
1990         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
1991         (CoreIPC::Connection::platformInvalidate):
1992         (CoreIPC::Connection::processMessage): Change Deque to Vector and do similar
1993         logic as on patch for https://bugs.webkit.org/show_bug.cgi?id=108517
1994         (CoreIPC::Connection::open):
1995         (CoreIPC::Connection::setShouldCloseConnectionOnProcessTermination):
1996         * Platform/qt/WorkQueueQt.cpp: Reflect changes on Qt WorkQueue to increase ref
1997         count when the execution is started and decrease it when the work item is deleted,
1998         following the logic on https://bugs.webkit.org/show_bug.cgi?id=108544
1999         (WorkQueue::WorkItemQt::~WorkItemQt):
2000         (WorkQueue::WorkItemQt::execute):
2001         (WorkQueue::dispatch):
2002         (WorkQueue::dispatchAfterDelay):
2003         * UIProcess/WebPageProxy.cpp:
2004         (WebKit::WebPageProxy::getPluginPath): This function was moved from WebProcessProxy but
2005         mac specific code was not protected properly: https://bugs.webkit.org/show_bug.cgi?id=108407
2006
2007 2013-01-31  Changhun Kang  <temoochin@company100.net>
2008
2009         Rename from parentOrHost* to parentOrShadowHost* in Node.h.
2010         https://bugs.webkit.org/show_bug.cgi?id=108308
2011
2012         Reviewed by Dimitri Glazkov.
2013
2014 2013-01-31  Anders Carlsson  <andersca@apple.com>
2015
2016         StorageManager should be ref-counted
2017         https://bugs.webkit.org/show_bug.cgi?id=108553
2018
2019         Reviewed by Beth Dakin.
2020
2021         It's likely we'd want to have the storage manager outlive its context at times, so make it
2022         reference counted.
2023
2024         * UIProcess/Storage/StorageManager.cpp:
2025         (WebKit::StorageManager::create):
2026         (WebKit):
2027         * UIProcess/Storage/StorageManager.h:
2028         (StorageManager):
2029         * UIProcess/WebContext.cpp:
2030         (WebKit::WebContext::WebContext):
2031         * UIProcess/WebContext.h:
2032         (WebContext):
2033
2034 2013-01-31  Anders Carlsson  <andersca@apple.com>
2035
2036         WorkQueue should be a ref-counted class
2037         https://bugs.webkit.org/show_bug.cgi?id=108544
2038
2039         Reviewed by Sam Weinig.
2040
2041         Make WorkQueue a ref-counted class that's implicitly ref()'d when dispatching a function to it, and then
2042         implicitly deref()'d when the function is done executing. This matches the behavior of dispatch queues,
2043         and ensures that the WorkQueue object won't go away while dispatched functions are running.
2044
2045         * Platform/CoreIPC/Connection.cpp:
2046         (CoreIPC::Connection::Connection):
2047         (CoreIPC::Connection::~Connection):
2048         (CoreIPC::Connection::addQueueClient):
2049         (CoreIPC::Connection::removeQueueClient):
2050         (CoreIPC::Connection::invalidate):
2051         (CoreIPC::Connection::sendMessage):
2052         (CoreIPC::Connection::postConnectionDidCloseOnConnectionWorkQueue):
2053         (CoreIPC::Connection::connectionDidClose):
2054         * Platform/CoreIPC/Connection.h:
2055         (Connection):
2056         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2057         (CoreIPC::createDataAvailableSource):
2058         (CoreIPC::Connection::open):
2059         (CoreIPC::Connection::initializeDeadNameSource):
2060         * Platform/WorkQueue.cpp:
2061         (WorkQueue::create):
2062         (WorkQueue::WorkQueue):
2063         (WorkQueue::~WorkQueue):
2064         * Platform/WorkQueue.h:
2065         (WorkQueue):
2066         * Platform/mac/WorkQueueMac.cpp:
2067         (WorkQueue::dispatch):
2068         (WorkQueue::dispatchAfterDelay):
2069         * Shared/ChildProcess.cpp:
2070         (WebKit::didCloseOnConnectionWorkQueue):
2071         * UIProcess/Launcher/ProcessLauncher.cpp:
2072         (WebKit::processLauncherWorkQueue):
2073         (WebKit::ProcessLauncher::ProcessLauncher):
2074         * UIProcess/WebProcessProxy.cpp:
2075         (WebKit::pluginWorkQueue):
2076         (WebKit::WebProcessProxy::getPlugins):
2077
2078 2013-01-31  Rafael Brandao  <rafael.lobo@openbossa.org>
2079
2080         [Qt][WK2] Fix build after removal of MessageID.h
2081         https://bugs.webkit.org/show_bug.cgi?id=108534
2082
2083         Reviewed by Anders Carlsson.
2084
2085         * Platform/CoreIPC/unix/ConnectionUnix.cpp:
2086         (CoreIPC::MessageInfo::MessageInfo):
2087         (CoreIPC::MessageInfo::setMessageBodyIsOutOfLine):
2088         (CoreIPC::MessageInfo::isMessageBodyIsOutOfLine):
2089         (MessageInfo):
2090         (CoreIPC::Connection::processMessage):
2091         (CoreIPC::Connection::sendOutgoingMessage):
2092         * Target.pri:
2093         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2094         * UIProcess/DrawingAreaProxy.cpp:
2095         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2096         * WebProcess/soup/WebSoupRequestManager.cpp:
2097
2098 2013-01-31  Brady Eidson  <beidson@apple.com>
2099
2100         Assertion failure in WebResourceLoadScheduler::remove when loading .webarchives
2101         <rdar://problem/12888145> and https://bugs.webkit.org/show_bug.cgi?id=108520
2102
2103         Reviewed by Alexey Proskuryakov.
2104
2105         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2106         (WebKit::WebResourceLoadScheduler::scheduleLoad): Even if it isn't to be scheduled with the
2107           NetworkProcess, still add this ResourceLoader to the scheduler's records.
2108
2109 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2110
2111         Unreviewed trivial Unix build fix.
2112
2113         Use Vector<> instead of Deque<> when iterating
2114         over m_attachments in the USE(UNIX_DOMAIN_SOCKETS)
2115         case.
2116
2117         * Platform/CoreIPC/ArgumentDecoder.cpp:
2118
2119 2013-01-30  Brian Weinstein  <bweinstein@apple.com>
2120
2121         Add a call to the page UI client to determine if a plug-in should load
2122         https://bugs.webkit.org/show_bug.cgi?id=108407
2123         <rdar://problem/13066332>
2124
2125         Reviewed by Anders Carlsson.
2126
2127         This patch adds a client call to the WKPageUIClient to be called to determine
2128         whether or not a plug-in should load.
2129
2130         * UIProcess/API/C/WKPage.h: Add shouldLoadPlugin.
2131         * UIProcess/WebPageProxy.cpp:
2132         (WebKit::WebPageProxy::getPluginPath): Moved from WebProcessProxy, and added a call to
2133             m_uiClient.shouldInstantiatePlugin.
2134         * UIProcess/WebPageProxy.h:
2135         * UIProcss/WebPageProxy.messages.in: Moved GetPluginPath from WebProcessProxy to WebPageProxy.
2136         * UIProcess/WebProcessProxy.cpp:
2137         (WebKit::WebProcessProxy::getPluginPath): Moved to WebPageProxy.
2138         * UIProcess/WebProcessProxy.h:
2139         * UIProcess/WebUIClient.cpp:
2140         (WebKit::WebUIClient::shouldInstantiatePlugin): Return that we should load the plug-in if
2141             the client function isn't defined, and call the function if it is.
2142         * UIProcess/WebUIClient.h:
2143         * UIProcess/mac/WebInspectorProxyMac.mm:
2144         (WebKit::WebInspectorProxy::platformCreateInspectorPage): Add an entry for the new
2145             client function.
2146         * WebProcess/WebPage/WebPage.cpp:
2147         (WebKit::WebPage::createPlugin): Send the message to the WebPageProxy, not the WebProcessProxy.
2148         (WebKit::WebPage::canPluginHandleResponse): Made a member function, so it can call sendSync, and
2149             send the message to the WebPageProxy, not the WebProcessProxy.
2150         * WebProcess/WebPage/WebPage.h:
2151
2152 2013-01-31  Anders Carlsson  <andersca@apple.com>
2153
2154         Use a Vector for IPC attachments
2155         https://bugs.webkit.org/show_bug.cgi?id=108517
2156
2157         Reviewed by Sam Weinig.
2158
2159         We don't need to use a Deque for attachments - we can just deserialize the attachments backwards instead.
2160
2161         * Platform/CoreIPC/ArgumentDecoder.cpp:
2162         (CoreIPC::ArgumentDecoder::create):
2163         (CoreIPC::ArgumentDecoder::ArgumentDecoder):
2164         (CoreIPC::ArgumentDecoder::removeAttachment):
2165         * Platform/CoreIPC/ArgumentDecoder.h:
2166         (ArgumentDecoder):
2167         * Platform/CoreIPC/Connection.h:
2168         * Platform/CoreIPC/MessageDecoder.cpp:
2169         (CoreIPC::MessageDecoder::create):
2170         (CoreIPC::MessageDecoder::MessageDecoder):
2171         * Platform/CoreIPC/MessageDecoder.h:
2172         (MessageDecoder):
2173         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2174         (CoreIPC::createMessageDecoder):
2175
2176 2013-01-31  Joseph Pecoraro  <pecoraro@apple.com>
2177
2178         Disable ENABLE_FULLSCREEN_API on iOS
2179         https://bugs.webkit.org/show_bug.cgi?id=108250
2180
2181         Reviewed by Benjamin Poulain.
2182
2183         * Configurations/FeatureDefines.xcconfig:
2184
2185 2013-01-31  Enrica Casucci  <enrica@apple.com>
2186
2187         WebKit2: provide new bundle APIs to allow bundle clients to be notified of pasteboard access.
2188         https://bugs.webkit.org/show_bug.cgi?id=108396.
2189         <rdar://problem/12920461>
2190
2191         Reviewed by Alexey Proskuryakov.
2192
2193         This patch adds new bundle client API to receive notifications
2194         relative the pasteboard activity. There are 2 new API added to
2195         InjectedBundleEditorClient, to receive notification before and
2196         after the pasteboard content is added and one API to provide
2197         additional content to add to the pasteboard.
2198         In order to create content to add to the pasteboard, WKWebArchiveRef
2199         and WKWebArchiveResourcesRef have been added to the set of API level
2200         object.
2201         This work is a joint effort with Sam Weinig who contributed the
2202         support for WKWebArchiveRef, WKWebArchiveResourcesRef and related
2203         files. Sam is the author of the first chunk of changes listed below.
2204         
2205         * Shared/API/c/WKBase.h:
2206         * Shared/API/c/WKSharedAPICast.h:
2207         * Shared/API/c/mac/WKWebArchive.cpp: Added.
2208         (WKWebArchiveGetTypeID):
2209         (WKWebArchiveCreate):
2210         (WKWebArchiveCreateWithData):
2211         (WKWebArchiveCreateFromRange):
2212         (WKWebArchiveCopyMainResource):
2213         (WKWebArchiveCopySubresources):
2214         (WKWebArchiveCopySubframeArchives):
2215         (WKWebArchiveCopyData):
2216         * Shared/API/c/mac/WKWebArchive.h: Added.
2217         * Shared/API/c/mac/WKWebArchiveResource.cpp: Added.
2218         (WKWebArchiveResourceGetTypeID):
2219         (WKWebArchiveResourceCreate):
2220         (WKWebArchiveResourceCopyData):
2221         (WKWebArchiveResourceCopyURL):
2222         (WKWebArchiveResourceCopyMIMEType):
2223         (WKWebArchiveResourceCopyTextEncoding):
2224         * Shared/API/c/mac/WKWebArchiveResource.h: Added.
2225         * Shared/APIObject.h:
2226         * Shared/WebArchive.cpp: Added.
2227         (WebKit::WebArchive::create):
2228         (WebKit::WebArchive::WebArchive):
2229         (WebKit::WebArchive::~WebArchive):
2230         (WebKit::WebArchive::mainResource):
2231         (WebKit::WebArchive::subresources):
2232         (WebKit::WebArchive::subframeArchives):
2233         (WebKit::releaseCFData):
2234         (WebKit::WebArchive::data):
2235         (WebKit::WebArchive::coreLegacyWebArchive):
2236         * Shared/WebArchive.h: Added.
2237         (WebKit::WebArchive::type):
2238         * Shared/WebArchiveResource.cpp: Added.
2239         (WebKit::WebArchiveResource::create):
2240         (WebKit::WebArchiveResource::WebArchiveResource):
2241         (WebKit::WebArchiveResource::~WebArchiveResource):
2242         (WebKit::releaseCFData):
2243         (WebKit::WebArchiveResource::data):
2244         (WebKit::WebArchiveResource::URL):
2245         (WebKit::WebArchiveResource::MIMEType):
2246         (WebKit::WebArchiveResource::textEncoding):
2247         (WebKit::WebArchiveResource::coreArchiveResource):
2248         * Shared/WebArchiveResource.h: Added.
2249         (WebKit::WebArchiveResource::type):
2250         * WebKit2.xcodeproj/project.pbxproj:
2251         
2252         * Shared/APIClientTraits.cpp: Added versioning to InjectedBundlePageEditorClient.
2253         * Shared/APIClientTraits.h:
2254         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2255         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.cpp:
2256         (WebKit::InjectedBundlePageEditorClient::willWriteToPasteboard): Added.
2257         (WebKit::InjectedBundlePageEditorClient::getPasteboardDataForRange): Added.
2258         (WebKit::InjectedBundlePageEditorClient::didWriteToPasteboard): Added.
2259         * WebProcess/InjectedBundle/InjectedBundlePageEditorClient.h:
2260         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2261         (WebKit::WebEditorClient::didWriteSelectionToPasteboard):
2262         (WebKit::WebEditorClient::willWriteSelectionToPasteboard):
2263         (WebKit::WebEditorClient::getClientPasteboardDataForRange):
2264         * WebProcess/WebCoreSupport/WebEditorClient.h:
2265
2266 2013-01-31  Anders Carlsson  <andersca@apple.com>
2267
2268         Remove MessageID.h
2269         https://bugs.webkit.org/show_bug.cgi?id=108516
2270
2271         Reviewed by Sam Weinig.
2272
2273         * Platform/CoreIPC/Connection.cpp:
2274         (CoreIPC::Connection::processIncomingMessage):
2275         (CoreIPC::Connection::sendOutgoingMessages):
2276         (CoreIPC::Connection::dispatchSyncMessage):
2277         (CoreIPC::Connection::dispatchMessage):
2278         * Platform/CoreIPC/Connection.h:
2279         (CoreIPC):
2280         (Connection):
2281         * Platform/CoreIPC/MessageID.h: Removed.
2282         * Platform/CoreIPC/mac/ConnectionMac.cpp:
2283         (CoreIPC::Connection::sendOutgoingMessage):
2284         (CoreIPC::Connection::receiveSourceEventHandler):
2285         * Shared/CoreIPCSupport/WebConnectionMessageKinds.h: Removed.
2286         * Shared/CoreIPCSupport/WebContextMessageKinds.h:
2287         * UIProcess/DrawingAreaProxy.h:
2288         (CoreIPC):
2289         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2290         * UIProcess/WebApplicationCacheManagerProxy.h:
2291         * UIProcess/WebContext.cpp:
2292         (WebKit::WebContext::WebContext):
2293         (WebKit::WebContext::didReceiveMessage):
2294         (WebKit::WebContext::didReceiveSyncMessage):
2295         * UIProcess/WebCookieManagerProxy.h:
2296         * UIProcess/WebFrameProxy.h:
2297         (CoreIPC):
2298         * UIProcess/WebFullScreenManagerProxy.h:
2299         (CoreIPC):
2300         * UIProcess/WebIconDatabase.h:
2301         (CoreIPC):
2302         * UIProcess/WebPageProxy.cpp:
2303         * UIProcess/WebPageProxy.h:
2304         (CoreIPC):
2305         * WebKit2.xcodeproj/project.pbxproj:
2306         * WebProcess/FullScreen/WebFullScreenManager.cpp:
2307         * WebProcess/FullScreen/WebFullScreenManager.h:
2308         (CoreIPC):
2309         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2310         (WebKit::InjectedBundle::postMessage):
2311         (WebKit::InjectedBundle::postSynchronousMessage):
2312         * WebProcess/InjectedBundle/InjectedBundle.h:
2313         (CoreIPC):
2314         * WebProcess/WebPage/DrawingArea.h:
2315         (CoreIPC):
2316         * WebProcess/WebPage/LayerTreeHost.h:
2317         (CoreIPC):
2318         * WebProcess/WebPage/WebPage.cpp:
2319         * WebProcess/WebPage/WebPage.h:
2320         (CoreIPC):
2321         * WebProcess/WebPage/WebPageGroupProxy.h:
2322         (CoreIPC):
2323
2324 2013-01-31  Mike West  <mkwst@chromium.org>
2325
2326         Cleanup: Use ScriptExecutionContext::topOrigin when relevant.
2327         https://bugs.webkit.org/show_bug.cgi?id=108476
2328
2329         Reviewed by Anders Carlsson.
2330
2331         * WebProcess/Plugins/PluginView.cpp:
2332         (WebKit::PluginView::storageBlockingStateChanged):
2333         (WebKit::PluginView::isPrivateBrowsingEnabled):
2334
2335 2013-01-31  Anders Carlsson  <andersca@apple.com>
2336
2337         Get rid of IncomingMessage
2338         https://bugs.webkit.org/show_bug.cgi?id=108514
2339
2340         Reviewed by Sam Weinig.
2341
2342         * Platform/CoreIPC/Connection.cpp:
2343         (Connection::SyncMessageState):
2344         (ConnectionAndIncomingMessage):
2345         (CoreIPC::Connection::SyncMessageState::~SyncMessageState):
2346         (CoreIPC::Connection::SyncMessageState::processIncomingMessage):
2347         (CoreIPC::Connection::SyncMessageState::dispatchMessages):
2348         (CoreIPC::Connection::waitForMessage):
2349         (CoreIPC::Connection::processIncomingMessage):
2350         (CoreIPC::Connection::enqueueIncomingMessage):
2351         (CoreIPC::Connection::dispatchMessage):
2352         (CoreIPC::Connection::dispatchOneMessage):
2353         * Platform/CoreIPC/Connection.h:
2354         (Connection):
2355
2356 2013-01-31  Patrick Gansterer  <paroga@webkit.org>
2357
2358         Remove PLATFORM(WIN_CAIRO) from NetscapePluginX11.cpp
2359         https://bugs.webkit.org/show_bug.cgi?id=108439
2360
2361         Reviewed by Brent Fulgham.
2362
2363         PLATFORM(WIN_CAIRO) is Windows only, where no X11 exists.
2364
2365         * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
2366
2367 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2368
2369         Unreviewed build fix: Remove Web Intents files from
2370         the Qt build system.
2371
2372         * Target.pri:
2373
2374 2013-01-31  Zan Dobersek  <zdobersek@igalia.com>
2375
2376         Unreviewed GTK build fix.
2377         Removing build targets for Web Intents files that were removed in r141448.
2378
2379         * GNUmakefile.list.am:
2380
2381 2013-01-31  Anders Carlsson  <andersca@apple.com>
2382
2383         Remove Web Intents code from WebKit2
2384         https://bugs.webkit.org/show_bug.cgi?id=108506
2385
2386         Reviewed by Simon Fraser.
2387
2388         Since nobody builds with Web Intents enabled anymore, and since the code is going to 
2389         be removed from WebCore, remove it from WebKit2.
2390
2391         * Shared/API/c/WKBase.h:
2392         * Shared/APIClientTraits.cpp:
2393         (WebKit):
2394         * Shared/APIObject.h:
2395         * Shared/IntentData.cpp: Removed.
2396         * Shared/IntentData.h: Removed.
2397         * Shared/IntentServiceInfo.cpp: Removed.
2398         * Shared/IntentServiceInfo.h: Removed.
2399         * Shared/WebIntentServiceInfo.cpp: Removed.
2400         * Shared/WebIntentServiceInfo.h: Removed.
2401         * UIProcess/API/C/WKAPICast.h:
2402         (WebKit):
2403         * UIProcess/API/C/WKIntentData.cpp: Removed.
2404         * UIProcess/API/C/WKIntentData.h: Removed.
2405         * UIProcess/API/C/WKIntentServiceInfo.cpp: Removed.
2406         * UIProcess/API/C/WKIntentServiceInfo.h: Removed.
2407         * UIProcess/API/C/WKPage.cpp:
2408         * UIProcess/API/C/WKPage.h:
2409         * UIProcess/WebIntentData.cpp: Removed.
2410         * UIProcess/WebIntentData.h: Removed.
2411         * UIProcess/WebLoaderClient.cpp:
2412         * UIProcess/WebLoaderClient.h:
2413         (WebKit):
2414         (WebLoaderClient):
2415         * UIProcess/WebPageProxy.cpp:
2416         * UIProcess/WebPageProxy.h:
2417         (WebKit):
2418         (WebPageProxy):
2419         * UIProcess/WebPageProxy.messages.in:
2420         * UIProcess/WebProcessProxy.cpp:
2421         * UIProcess/WebProcessProxy.h:
2422         (WebProcessProxy):
2423         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
2424         (WebKit):
2425         * WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp: Removed.
2426         * WebProcess/InjectedBundle/API/c/WKBundleIntent.h: Removed.
2427         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Removed.
2428         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Removed.
2429         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2430         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2431         * WebProcess/InjectedBundle/InjectedBundleIntent.cpp: Removed.
2432         * WebProcess/InjectedBundle/InjectedBundleIntent.h: Removed.
2433         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Removed.
2434         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Removed.
2435         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2436         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2437         (WebKit):
2438         (InjectedBundlePageLoaderClient):
2439         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2440         (WebKit):
2441         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2442         (WebFrameLoaderClient):
2443         * WebProcess/WebPage/WebFrame.cpp:
2444         * WebProcess/WebPage/WebFrame.h:
2445         (WebCore):
2446         (WebKit):
2447         (WebFrame):
2448         * WebProcess/WebPage/WebPage.cpp:
2449         * WebProcess/WebPage/WebPage.h:
2450         (WebCore):
2451         (WebKit):
2452         (WebPage):
2453         * WebProcess/WebPage/WebPage.messages.in:
2454         * WebProcess/WebProcess.cpp:
2455         * WebProcess/WebProcess.h:
2456         (WebCore):
2457         (WebProcess):
2458         * WebProcess/WebProcess.messages.in:
2459
2460 2013-01-31  Brady Eidson  <beidson@apple.com>
2461
2462         Lack of a log level string should not obliterate compiled in logging channel state.
2463         https://bugs.webkit.org/show_bug.cgi?id=108502
2464
2465         Reviewed by Alexey Proskuryakov and Sam Weinig.
2466
2467         * Platform/mac/Logging.mac.mm:
2468         (WebKit::initializeLogChannel): If there's no log level string, leave the channel state alone.
2469
2470 2013-01-31  Alexey Proskuryakov  <ap@apple.com>
2471
2472         WebProcess sandbox profile overhaul.
2473
2474         Reviewed by Sam Weinig.
2475
2476         Moves some rules together by susbystem for easier maintenance.
2477
2478         Addresses <rdar://problem/9276393>, <rdar://problem/10844321>, <rdar://problem/12408537>,
2479         <rdar://problem/12558524>.
2480
2481         * WebProcess/com.apple.WebProcess.sb.in:
2482
2483 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2484
2485         Unreviewed trivial build fix: Pre C++11 the use of
2486         >> in nested templates is ambiguous in the grammar and
2487         requires the insertion of a space here. Since these files are
2488         not Mac specific we don't require C++11 yet and a space
2489         fixes the build.
2490
2491         * Platform/CoreIPC/Connection.h:
2492         (Connection):
2493         * Shared/ChildProcessProxy.h:
2494         (ChildProcessProxy):
2495
2496 2013-01-31  Christophe Dumez  <dchris@gmail.com>
2497
2498         [EFL] Disable Web Intents
2499         https://bugs.webkit.org/show_bug.cgi?id=108457
2500
2501         Reviewed by Alexey Proskuryakov.
2502
2503         Remove code related to Web Intents from EFL
2504         WebKit2.
2505
2506         * CMakeLists.txt:
2507         * PlatformEfl.cmake:
2508         * UIProcess/API/efl/EWebKit2.h:
2509         * UIProcess/API/efl/EwkViewCallbacks.h:
2510         * UIProcess/API/efl/ewk_intent.cpp: Removed.
2511         * UIProcess/API/efl/ewk_intent.h: Removed.
2512         * UIProcess/API/efl/ewk_intent_private.h: Removed.
2513         * UIProcess/API/efl/ewk_intent_service.cpp: Removed.
2514         * UIProcess/API/efl/ewk_intent_service.h: Removed.
2515         * UIProcess/API/efl/ewk_intent_service_private.h: Removed.
2516         * UIProcess/API/efl/ewk_view.cpp:
2517         * UIProcess/API/efl/ewk_view.h:
2518         * UIProcess/API/efl/tests/resources/intent-request.html: Removed.
2519         * UIProcess/API/efl/tests/resources/intent-service.html: Removed.
2520         * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed.
2521         * UIProcess/efl/PageLoadClientEfl.cpp:
2522         (WebKit::PageLoadClientEfl::PageLoadClientEfl):
2523         * UIProcess/efl/PageLoadClientEfl.h:
2524         (PageLoadClientEfl):
2525
2526 2013-01-31  Alexey Proskuryakov  <ap@apple.com>
2527
2528         <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
2529
2530         Address review comments.
2531
2532         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2533         * WebProcess/com.apple.WebProcess.sb.in:
2534
2535 2013-01-31  Anders Carlsson  <andersca@apple.com>
2536
2537         Stop using OutgoingMessage
2538         https://bugs.webkit.org/show_bug.cgi?id=108495
2539
2540         Reviewed by Sam Weinig.
2541
2542         * Platform/CoreIPC/Connection.cpp:
2543         (CoreIPC::Connection::sendMessage):
2544         (CoreIPC::Connection::sendOutgoingMessages):
2545         * Platform/CoreIPC/Connection.h:
2546         (Connection):
2547         * Shared/ChildProcessProxy.cpp:
2548         (WebKit::ChildProcessProxy::~ChildProcessProxy):
2549         (WebKit::ChildProcessProxy::sendMessage):
2550         (WebKit::ChildProcessProxy::didFinishLaunching):
2551         * Shared/ChildProcessProxy.h:
2552         (ChildProcessProxy):
2553
2554 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2555
2556         [Qt] Make it possible to compile WebKit2 Qt related files without access to internal WK2 C++ API
2557         https://bugs.webkit.org/show_bug.cgi?id=108472
2558
2559         Reviewed by Andreas Kling.
2560
2561         Add a new module to the qmake build system that represents the part of the WebKit2 Qt integration
2562         that doesn't depend on WebKit2 internals.
2563
2564         Changed qwebnavigationhistory.cpp to not use any internal headers and compile it as part of the
2565         internals-free module.
2566
2567         * Target.pri:
2568         * UIProcess/API/qt/qwebnavigationhistory.cpp:
2569         * WebKit2.pro:
2570         * WebKit2QML.pri: Added.
2571
2572 2013-01-31  Simon Hausmann  <simon.hausmann@digia.com>
2573
2574         Unreviewed trivial build fix: Add missing virtual destructor to
2575         LayerTreeRendererClient. Otherwise the build with -Werror breaks, which
2576         complains (rightly so) that we're deleting a sub-class where the super class
2577         doesn't have a virtual destructor.
2578
2579         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2580         (WebKit::LayerTreeRendererClient::~LayerTreeRendererClient):
2581
2582 2013-01-31  Seulgi Kim  <seulgikim@company100.net>
2583
2584         Coordinated Graphics: view the debug border/repaint count of the non composited layer.
2585         https://bugs.webkit.org/show_bug.cgi?id=108401
2586
2587         Reviewed by Noam Rosenthal.
2588
2589         Make non-compositing layer draw debug border and show repaint counter
2590         accroding to settings.
2591
2592         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2593         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
2594
2595 2013-01-31  Paweł Forysiuk  <tuxator@o2.pl>
2596
2597         InjectedBundle is being built even with --disable-webkit2
2598         https://bugs.webkit.org/show_bug.cgi?id=108364
2599
2600         Reviewed by Gustavo Noronha Silva.
2601
2602         * GNUmakefile.am: Wrap Injected bundle with ENABLE_WEBKIT2 condition
2603
2604 2013-01-31  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2605
2606         [EFL][WK2] RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl should be based on C API
2607         https://bugs.webkit.org/show_bug.cgi?id=107685
2608
2609         Reviewed by Benjamin Poulain.
2610
2611         RequestManagerClientEfl, DownloadManagerEfl and ContextHistoryClientEfl
2612         should be based on C API so that API layering is not violated.
2613
2614         * UIProcess/API/efl/ewk_context.cpp:
2615         (EwkContext::EwkContext):
2616         * UIProcess/efl/ContextHistoryClientEfl.cpp:
2617         (WebKit::ContextHistoryClientEfl::ContextHistoryClientEfl):
2618         (WebKit::ContextHistoryClientEfl::~ContextHistoryClientEfl):
2619         * UIProcess/efl/ContextHistoryClientEfl.h:
2620         (WebKit::ContextHistoryClientEfl::create):
2621         (ContextHistoryClientEfl):
2622         * UIProcess/efl/DownloadManagerEfl.cpp:
2623         (WebKit::DownloadManagerEfl::DownloadManagerEfl):
2624         (WebKit::DownloadManagerEfl::~DownloadManagerEfl):
2625         * UIProcess/efl/DownloadManagerEfl.h:
2626         (WebKit::DownloadManagerEfl::create):
2627         (DownloadManagerEfl):
2628         * UIProcess/efl/RequestManagerClientEfl.cpp:
2629         (WebKit::RequestManagerClientEfl::RequestManagerClientEfl):
2630         * UIProcess/efl/RequestManagerClientEfl.h:
2631         (WebKit::RequestManagerClientEfl::create):
2632         (RequestManagerClientEfl):
2633
2634 2013-01-31  Sheriff Bot  <webkit.review.bot@gmail.com>
2635
2636         Unreviewed, rolling out r141110.
2637         http://trac.webkit.org/changeset/141110
2638         https://bugs.webkit.org/show_bug.cgi?id=108349
2639
2640         This patch broke WK2-EFL unit tests (Requested by grzegorz on
2641         #webkit).
2642
2643         * UIProcess/efl/TextCheckerEfl.cpp:
2644         * WebProcess/WebCoreSupport/WebEditorClient.h:
2645         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
2646
2647 2013-01-31  Jae Hyun Park  <jae.park@company100.net>
2648
2649         Coordinated Graphics : Remove WebCoordinatedSurface dependency from CoordinatedSurface
2650         https://bugs.webkit.org/show_bug.cgi?id=108259
2651
2652         Reviewed by Noam Rosenthal.
2653
2654         This is a preparation patch for Threaded Coordinated Graphics.
2655
2656         WebCoordinatedSurface dependency should be removed from
2657         CoordinatedSurface so as to share CoordinatedSurface between
2658         WebCoordinatedSurface and CoordinatedSurface of WebKit1, which will be
2659         implemented for Threaded Coordinated Graphics.
2660
2661         This patch introduces CoordinatedSurface::Factory, which is a function
2662         pointer that creates CoordinatedSurfaces. CoordinatedLayerTreeHost sets
2663         static CoordinatedSurface::Factory member variable. Classes that use
2664         CoordinatedSurface, which are CoordinatedImageBacking and UpdateAtlas,
2665         create CoordinatedSurfaces by calling CoordinatedSurface::create, which
2666         will call the function set by CoordinatedLayerTreeHost.
2667
2668         This way, we can remove the WebCoordinatedSurface dependency from
2669         CoordinatedSurface and be able to share the code in Threaded Coordinated
2670         Graphics.
2671
2672         No new tests. No change in behavior.
2673
2674         * CMakeLists.txt:
2675         * Shared/CoordinatedGraphics/CoordinatedSurface.cpp: Added.
2676         (WebKit):
2677         (WebKit::CoordinatedSurface::setFactory):
2678         (WebKit::CoordinatedSurface::create):
2679         * Shared/CoordinatedGraphics/CoordinatedSurface.h:
2680         (CoordinatedSurface):
2681         * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
2682         * Target.pri:
2683         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2684         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
2685         (WebKit::CoordinatedLayerTreeHost::createCoordinatedSurface):
2686         (WebKit):
2687         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2688
2689 2013-01-30  Tim Horton  <timothy_horton@apple.com>
2690
2691         Unreviewed build fix after http://trac.webkit.org/changeset/141372.
2692
2693         * WebProcess/Plugins/PDF/PDFPlugin.mm:
2694         (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
2695
2696 2013-01-30  Jae Hyun Park  <jae.park@company100.net>
2697
2698         Coordinated Graphics : Remove CoordinatedLayerTreeHostProxy dependency from LayerTreeRenderer
2699         https://bugs.webkit.org/show_bug.cgi?id=108164
2700
2701         Reviewed by Benjamin Poulain.
2702
2703         This is a preparation patch for Threaded Coordinated Graphics.
2704
2705         LayerTreeRenderer should not depend on CoordinatedLayerTreeHostProxy so that it
2706         can be moved to WebCore.  This patch introduces LayerTreeRendererClient which
2707         is implemented in CoordinatedLayerTreeHostProxy. LayerTreeRenderer uses this
2708         client, instead of using CoordinatedLayerTreeHostProxy directly.
2709
2710         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2711         (CoordinatedLayerTreeHostProxy):
2712         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2713         (WebKit::LayerTreeRenderer::LayerTreeRenderer):
2714         (WebKit::LayerTreeRenderer::animationFrameReady):
2715         (WebKit::LayerTreeRenderer::updateViewport):
2716         (WebKit::LayerTreeRenderer::renderNextFrame):
2717         (WebKit::LayerTreeRenderer::purgeBackingStores):
2718         (WebKit::LayerTreeRenderer::detach):
2719         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2720         (WebKit):
2721         (LayerTreeRendererClient):
2722         (LayerTreeRenderer):
2723
2724 2013-01-30  Tim Horton  <timothy_horton@apple.com>
2725
2726         PDFPlugin: Should respond to three-finger tap for dictionary definitions
2727         https://bugs.webkit.org/show_bug.cgi?id=108418
2728         <rdar://problem/13121409>
2729
2730         Reviewed by Simon Fraser.
2731
2732         * WebProcess/Plugins/Netscape/NetscapePlugin.h: Add default implementation of performDictionaryLookupAtLocation.
2733         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add getSelectionForWordAtPoint and searchInDictionaryWithSelection.
2734         * WebProcess/Plugins/PDF/PDFPlugin.h: Add performDictionaryLookupAtLocation.
2735         * WebProcess/Plugins/PDF/PDFPlugin.mm: Grab a PDFSelection representing the word encompassing the given point, and
2736         throw up a dictionary popover.
2737         (WebKit::PDFPlugin::performDictionaryLookupAtLocation):
2738         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:  Add default implementation of performDictionaryLookupAtLocation.
2739         * WebProcess/Plugins/Plugin.h:  Add performDictionaryLookupAtLocation.
2740         * WebProcess/Plugins/PluginProxy.h: Add default implementation of performDictionaryLookupAtLocation.
2741         * WebProcess/Plugins/PluginView.cpp: 
2742         (WebKit::PluginView::performDictionaryLookupAtLocation): Forward performDictionaryLookupAtLocation to the plugin.
2743         * WebProcess/Plugins/PluginView.h: Add performDictionaryLookupAtLocation.
2744         * WebProcess/WebPage/mac/WebPageMac.mm:
2745         (WebKit::WebPage::performDictionaryLookupAtLocation): Intercept performDictionaryLookupAtLocation, and give
2746         the main-frame plugin (if it exists) a chance to handle it.
2747
2748 2013-01-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2749
2750         [WK2] Cleanup MessageID parameter after r141332
2751         https://bugs.webkit.org/show_bug.cgi?id=108419
2752
2753         Unreviewed to fix build breaks.
2754
2755         r141332 didn't remove MessageID parameter on some features.
2756         (battery, vibration, coordinate graphics, network info and so on)
2757
2758         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2759         (CoordinatedLayerTreeHostProxy):
2760         * UIProcess/DrawingAreaProxyImpl.cpp:
2761         (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
2762         * UIProcess/WebBatteryManagerProxy.h:
2763         (WebBatteryManagerProxy):
2764         * UIProcess/WebNetworkInfoManagerProxy.h:
2765         (WebNetworkInfoManagerProxy):
2766         * UIProcess/WebPageProxy.cpp:
2767         (WebKit::WebPageProxy::didReceiveMessage):
2768         * UIProcess/WebVibrationProxy.h:
2769         (WebVibrationProxy):
2770         * UIProcess/soup/WebSoupRequestManagerProxy.h:
2771         (WebSoupRequestManagerProxy):
2772         * WebProcess/Battery/WebBatteryManager.h:
2773         (WebBatteryManager):
2774         * WebProcess/NetworkInfo/WebNetworkInfoManager.h:
2775         (WebNetworkInfoManager):
2776         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2777         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2778         (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
2779         * WebProcess/WebPage/WebPage.cpp:
2780         (WebKit::WebPage::didReceiveMessage):
2781         * WebProcess/soup/WebSoupRequestManager.h:
2782         (WebSoupRequestManager):
2783
2784 2013-01-30  Anders Carlsson  <andersca@apple.com>
2785
2786         Remove MessageID from MessageSender
2787         https://bugs.webkit.org/show_bug.cgi?id=108413
2788
2789         Reviewed by Andreas Kling.
2790
2791         This is another step towards eliminating MessageID.
2792
2793         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2794         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
2795         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
2796         * NetworkProcess/NetworkConnectionToWebProcess.h:
2797         (NetworkConnectionToWebProcess):
2798         * NetworkProcess/NetworkProcess.cpp:
2799         (WebKit::NetworkProcess::didReceiveMessage):
2800         (WebKit::NetworkProcess::didReceiveSyncMessage):
2801         * NetworkProcess/NetworkProcess.h:
2802         (NetworkProcess):
2803         * Platform/CoreIPC/Connection.cpp:
2804         (CoreIPC::Connection::processIncomingMessage):
2805         (CoreIPC::Connection::dispatchSyncMessage):
2806         (CoreIPC::Connection::dispatchMessage):
2807         * Platform/CoreIPC/Connection.h:
2808         (QueueClient):
2809         (CoreIPC::Connection::waitForAndDispatchImmediately):
2810         * Platform/CoreIPC/MessageReceiver.h:
2811         (MessageReceiver):
2812         (CoreIPC::MessageReceiver::didReceiveSyncMessage):
2813         * Platform/CoreIPC/MessageReceiverMap.cpp:
2814         (CoreIPC::MessageReceiverMap::dispatchMessage):
2815         (CoreIPC::MessageReceiverMap::dispatchSyncMessage):
2816         * Platform/CoreIPC/MessageReceiverMap.h:
2817         (MessageReceiverMap):
2818         * PluginProcess/PluginProcess.cpp:
2819         (WebKit::PluginProcess::didReceiveMessage):
2820         * PluginProcess/PluginProcess.h:
2821         (PluginProcess):
2822         * PluginProcess/WebProcessConnection.cpp:
2823         (WebKit::WebProcessConnection::didReceiveMessage):
2824         (WebKit::WebProcessConnection::didReceiveSyncMessage):
2825         * PluginProcess/WebProcessConnection.h:
2826         (WebProcessConnection):
2827         * Scripts/webkit2/messages.py:
2828         (forward_declarations_and_headers):
2829         (generate_message_handler):
2830         * Scripts/webkit2/messages_unittest.py:
2831         * Shared/Authentication/AuthenticationManager.cpp:
2832         (WebKit::AuthenticationManager::didReceiveMessage):
2833         * Shared/Authentication/AuthenticationManager.h:
2834         (AuthenticationManager):
2835         * Shared/ChildProcessProxy.cpp:
2836         (WebKit::ChildProcessProxy::sendMessage):
2837         * Shared/ChildProcessProxy.h:
2838         (ChildProcessProxy):
2839         (WebKit::ChildProcessProxy::send):
2840         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
2841         (CustomProtocolManager):
2842         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2843         (WebKit::CustomProtocolManager::didReceiveMessage):
2844         * Shared/Plugins/NPRemoteObjectMap.cpp:
2845         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
2846         * Shared/Plugins/NPRemoteObjectMap.h:
2847         (NPRemoteObjectMap):
2848         * Shared/WebConnection.cpp:
2849         (WebKit::WebConnection::didReceiveMessage):
2850         * Shared/WebConnection.h:
2851         (WebConnection):
2852         * Shared/mac/SecItemShim.cpp:
2853         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
2854         * Shared/mac/SecItemShim.h:
2855         (SecItemShim):
2856         * SharedWorkerProcess/SharedWorkerProcess.cpp:
2857         (WebKit::SharedWorkerProcess::didReceiveMessage):
2858         * SharedWorkerProcess/SharedWorkerProcess.h:
2859         (SharedWorkerProcess):
2860         * UIProcess/Downloads/DownloadProxy.cpp:
2861         (WebKit::DownloadProxy::didReceiveMessage):
2862         (WebKit::DownloadProxy::didReceiveSyncMessage):
2863         * UIProcess/Downloads/DownloadProxy.h:
2864         (DownloadProxy):
2865         * UIProcess/DrawingAreaProxy.cpp:
2866         (WebKit::DrawingAreaProxy::didReceiveCoordinatedLayerTreeHostProxyMessage):
2867         * UIProcess/DrawingAreaProxy.h:
2868         (DrawingAreaProxy):
2869         * UIProcess/DrawingAreaProxyImpl.cpp:
2870         (WebKit::DrawingAreaProxyImpl::didReceiveCoordinatedLayerTreeHostProxyMessage):
2871         * UIProcess/DrawingAreaProxyImpl.h:
2872         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
2873         (CustomProtocolManagerProxy):
2874         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
2875         (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
2876         * UIProcess/Network/NetworkProcessProxy.cpp:
2877         (WebKit::NetworkProcessProxy::didReceiveMessage):
2878         (WebKit::NetworkProcessProxy::didReceiveSyncMessage):
2879         * UIProcess/Network/NetworkProcessProxy.h:
2880         (NetworkProcessProxy):
2881         * UIProcess/Notifications/WebNotificationManagerProxy.h:
2882         (WebNotificationManagerProxy):
2883         * UIProcess/Plugins/PluginProcessProxy.cpp:
2884         (WebKit::PluginProcessProxy::didReceiveMessage):
2885         * UIProcess/Plugins/PluginProcessProxy.h:
2886         (PluginProcessProxy):
2887         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
2888         (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
2889         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
2890         (SharedWorkerProcessProxy):
2891         * UIProcess/WebApplicationCacheManagerProxy.cpp:
2892         (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
2893         * UIProcess/WebApplicationCacheManagerProxy.h:
2894         (WebApplicationCacheManagerProxy):
2895         * UIProcess/WebContext.cpp:
2896         (WebKit::WebContext::dispatchMessage):
2897         (WebKit::WebContext::dispatchSyncMessage):
2898         (WebKit::WebContext::didReceiveMessage):
2899         (WebKit::WebContext::didReceiveSyncMessage):
2900         * UIProcess/WebContext.h:
2901         (WebContext):
2902         * UIProcess/WebCookieManagerProxy.cpp:
2903         (WebKit::WebCookieManagerProxy::didReceiveMessage):
2904         * UIProcess/WebCookieManagerProxy.h:
2905         (WebCookieManagerProxy):
2906         * UIProcess/WebDatabaseManagerProxy.cpp:
2907         (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
2908         * UIProcess/WebDatabaseManagerProxy.h:
2909         (WebDatabaseManagerProxy):
2910         * UIProcess/WebFullScreenManagerProxy.cpp:
2911         (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
2912         (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
2913         * UIProcess/WebFullScreenManagerProxy.h:
2914         (WebFullScreenManagerProxy):
2915         * UIProcess/WebGeolocationManagerProxy.h:
2916         (WebGeolocationManagerProxy):
2917         * UIProcess/WebIconDatabase.h:
2918         (WebIconDatabase):
2919         * UIProcess/WebKeyValueStorageManagerProxy.h:
2920         (WebKeyValueStorageManagerProxy):
2921         * UIProcess/WebMediaCacheManagerProxy.h:
2922         (WebMediaCacheManagerProxy):
2923         * UIProcess/WebPageProxy.cpp:
2924         (WebKit::WebPageProxy::didReceiveMessage):
2925         (WebKit::WebPageProxy::didReceiveSyncMessage):
2926         * UIProcess/WebPageProxy.h:
2927         (WebPageProxy):
2928         * UIProcess/WebProcessProxy.cpp:
2929         (WebKit::WebProcessProxy::didReceiveMessage):
2930         (WebKit::WebProcessProxy::didReceiveSyncMessage):
2931         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
2932         * UIProcess/WebProcessProxy.h:
2933         (WebProcessProxy):
2934         * UIProcess/WebResourceCacheManagerProxy.h:
2935         (WebResourceCacheManagerProxy):
2936         * UIProcess/mac/RemoteLayerTreeHost.h:
2937         (RemoteLayerTreeHost):
2938         * UIProcess/mac/RemoteLayerTreeHost.mm:
2939         (WebKit::RemoteLayerTreeHost::didReceiveMessage):
2940         * UIProcess/mac/SecItemShimProxy.cpp:
2941         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
2942         * UIProcess/mac/SecItemShimProxy.h:
2943         (SecItemShimProxy):
2944         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
2945         (WebKit::WebApplicationCacheManager::didReceiveMessage):
2946         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
2947         (WebApplicationCacheManager):
2948         * WebProcess/Cookies/WebCookieManager.cpp:
2949         (WebKit::WebCookieManager::didReceiveMessage):
2950         * WebProcess/Cookies/WebCookieManager.h:
2951         (WebCookieManager):
2952         * WebProcess/FullScreen/WebFullScreenManager.cpp:
2953         (WebKit::WebFullScreenManager::didReceiveMessage):
2954         * WebProcess/FullScreen/WebFullScreenManager.h:
2955         (WebFullScreenManager):
2956         * WebProcess/Geolocation/WebGeolocationManager.h:
2957         (WebGeolocationManager):
2958         * WebProcess/IconDatabase/WebIconDatabaseProxy.h:
2959         (WebIconDatabaseProxy):
2960         * WebProcess/MediaCache/WebMediaCacheManager.h:
2961         (WebMediaCacheManager):
2962         * WebProcess/Network/NetworkProcessConnection.cpp:
2963         (WebKit::NetworkProcessConnection::didReceiveMessage):
2964         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
2965         * WebProcess/Network/NetworkProcessConnection.h:
2966         (NetworkProcessConnection):
2967         * WebProcess/Notifications/WebNotificationManager.h:
2968         (WebNotificationManager):
2969         * WebProcess/Plugins/PluginProcessConnection.cpp:
2970         (WebKit::PluginProcessConnection::didReceiveMessage):
2971         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
2972         * WebProcess/Plugins/PluginProcessConnection.h:
2973         (PluginProcessConnection):
2974         * WebProcess/ResourceCache/WebResourceCacheManager.h:
2975         (WebResourceCacheManager):
2976         * WebProcess/Storage/WebKeyValueStorageManager.h:
2977         (WebKeyValueStorageManager):
2978         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
2979         (WebKit::WebDatabaseManager::didReceiveMessage):
2980         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
2981         (WebDatabaseManager):
2982         * WebProcess/WebPage/DrawingArea.h:
2983         (DrawingArea):
2984         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2985         (WebKit::DrawingAreaImpl::didReceiveCoordinatedLayerTreeHostMessage):
2986         * WebProcess/WebPage/DrawingAreaImpl.h:
2987         (DrawingAreaImpl):
2988         * WebProcess/WebPage/EventDispatcher.cpp:
2989         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
2990         * WebProcess/WebPage/EventDispatcher.h:
2991         (EventDispatcher):
2992         * WebProcess/WebPage/LayerTreeHost.h:
2993         (LayerTreeHost):
2994         * WebProcess/WebPage/WebPage.cpp:
2995         (WebKit::WebPage::didReceiveMessage):
2996         (WebKit::WebPage::didReceiveSyncMessage):
2997         * WebProcess/WebPage/WebPage.h:
2998         (WebPage):
2999         * WebProcess/WebPage/WebPageGroupProxy.h:
3000         (WebPageGroupProxy):
3001         * WebProcess/WebProcess.cpp:
3002         (WebKit::WebProcess::didReceiveSyncMessage):
3003         (WebKit::WebProcess::didReceiveMessage):
3004         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3005         * WebProcess/WebProcess.h:
3006         (WebProcess):
3007
3008 2013-01-30  Tim Horton  <timothy_horton@apple.com>
3009
3010         PDFPlugin: Update scrollbars if PDFLayerController's display mode changes
3011         https://bugs.webkit.org/show_bug.cgi?id=108412
3012         <rdar://problem/13002261>
3013
3014         Reviewed by Simon Fraser.
3015
3016         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add pdfLayerController:didChangeDisplayMode:
3017         * WebProcess/Plugins/PDF/PDFPlugin.h: Add notifyDisplayModeChanged().
3018         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3019         (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeDisplayMode:]): Forward didChangeDisplayMode to notifyDisplayModeChanged.
3020         (WebKit::PDFPlugin::notifyDisplayModeChanged): Update content size and scrollbar size when display mode changes.
3021
3022 2013-01-30  Alexey Proskuryakov  <ap@apple.com>
3023
3024         <rdar://problem/12695827> PPT: Make loading file URLs work with a sandboxed NetworkProcess
3025
3026         Reviewed by Sam Weinig.
3027
3028         * DerivedSources.make: Preprocess a .sb.in file to build the profile.
3029
3030         * NetworkProcess/mac/NetworkProcessMac.mm:
3031         Don't prevent entering the sandbox. Override sandbox path, because service
3032         gets a differnt one by default.
3033
3034         * WebKit2.xcodeproj/project.pbxproj:
3035         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in: Added.
3036
3037 2013-01-30  Huang Dongsung  <luxtella@company100.net>
3038
3039         Coordinated Graphics: LayerTreeRenderer manages the surface of UpdateAtlas.
3040         https://bugs.webkit.org/show_bug.cgi?id=107224
3041
3042         Reviewed by Benjamin Poulain.
3043
3044         Currently, CoordinatedLayerTreeHostProxy manages the surface of UpdateAtlas, but
3045         all other resources are managed by LayerTreeRenderer. This patch matches the
3046         surface of UpdateAtlas to other resources.
3047
3048         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3049         (WebKit::CoordinatedLayerTreeHostProxy::updateTileForLayer):
3050         (WebKit::CoordinatedLayerTreeHostProxy::createUpdateAtlas):
3051         (WebKit::CoordinatedLayerTreeHostProxy::removeUpdateAtlas):
3052         (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3053         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3054         (CoordinatedLayerTreeHostProxy):
3055         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3056         (WebKit::LayerTreeRenderer::updateTile):
3057         (WebKit::LayerTreeRenderer::createUpdateAtlas):
3058         (WebKit):
3059         (WebKit::LayerTreeRenderer::removeUpdateAtlas):
3060         (WebKit::LayerTreeRenderer::purgeGLResources):
3061         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3062         (TileUpdate):
3063         (WebKit::LayerTreeRenderer::TileUpdate::TileUpdate):
3064         (LayerTreeRenderer):
3065
3066 2013-01-30  Anders Carlsson  <andersca@apple.com>
3067
3068         Remove MessageID parameter from generated message receivers
3069         https://bugs.webkit.org/show_bug.cgi?id=108379
3070
3071         Reviewed by Beth Dakin.
3072
3073         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
3074         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
3075         (WebKit::NetworkConnectionToWebProcess::didReceiveSyncMessage):
3076         * NetworkProcess/NetworkConnectionToWebProcess.h:
3077         (NetworkConnectionToWebProcess):
3078         * NetworkProcess/NetworkProcess.cpp:
3079         (WebKit::NetworkProcess::didReceiveMessage):
3080         * NetworkProcess/NetworkProcess.h:
3081         (NetworkProcess):
3082         * PluginProcess/PluginControllerProxy.h:
3083         (PluginControllerProxy):
3084         * PluginProcess/PluginProcess.cpp:
3085         (WebKit::PluginProcess::didReceiveMessage):
3086         * PluginProcess/PluginProcess.h:
3087         (PluginProcess):
3088         * PluginProcess/WebProcessConnection.cpp:
3089         (WebKit::WebProcessConnection::didReceiveMessage):
3090         (WebKit::WebProcessConnection::didReceiveSyncMessage):
3091         * PluginProcess/WebProcessConnection.h:
3092         (WebProcessConnection):
3093         * Scripts/webkit2/messages.py:
3094         (generate_message_handler):
3095         * Scripts/webkit2/messages_unittest.py:
3096         * Shared/Authentication/AuthenticationManager.cpp:
3097         (WebKit::AuthenticationManager::didReceiveMessage):
3098         * Shared/Authentication/AuthenticationManager.h:
3099         (AuthenticationManager):
3100         * Shared/Network/CustomProtocols/CustomProtocolManager.h:
3101         (CustomProtocolManager):
3102         * Shared/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
3103         (WebKit::CustomProtocolManager::didReceiveMessage):
3104         * Shared/Plugins/NPObjectMessageReceiver.h:
3105         (NPObjectMessageReceiver):
3106         * Shared/Plugins/NPRemoteObjectMap.cpp:
3107         (WebKit::NPRemoteObjectMap::didReceiveSyncMessage):
3108         * Shared/WebConnection.cpp:
3109         (WebKit::WebConnection::didReceiveMessage):
3110         * Shared/WebConnection.h:
3111         (WebConnection):
3112         * Shared/mac/SecItemShim.cpp:
3113         (WebKit::SecItemShim::didReceiveMessageOnConnectionWorkQueue):
3114         * Shared/mac/SecItemShim.h:
3115         (SecItemShim):
3116         * SharedWorkerProcess/SharedWorkerProcess.cpp:
3117         (WebKit::SharedWorkerProcess::didReceiveMessage):
3118         * SharedWorkerProcess/SharedWorkerProcess.h:
3119         (SharedWorkerProcess):
3120         * UIProcess/Downloads/DownloadProxy.cpp:
3121         (WebKit::DownloadProxy::didReceiveMessage):
3122         (WebKit::DownloadProxy::didReceiveSyncMessage):
3123         * UIProcess/Downloads/DownloadProxy.h:
3124         (DownloadProxy):
3125         * UIProcess/DrawingAreaProxy.h:
3126         (DrawingAreaProxy):
3127         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h:
3128         (CustomProtocolManagerProxy):
3129         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
3130         (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
3131         * UIProcess/Network/NetworkProcessProxy.cpp:
3132         (WebKit::NetworkProcessProxy::didReceiveMessage):
3133         * UIProcess/Network/NetworkProcessProxy.h:
3134         (NetworkProcessProxy):
3135         * UIProcess/Plugins/PluginProcessProxy.cpp:
3136         (WebKit::PluginProcessProxy::didReceiveMessage):
3137         * UIProcess/Plugins/PluginProcessProxy.h:
3138         (PluginProcessProxy):
3139         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.cpp:
3140         (WebKit::SharedWorkerProcessProxy::didReceiveMessage):
3141         * UIProcess/SharedWorkers/SharedWorkerProcessProxy.h:
3142         (SharedWorkerProcessProxy):
3143         * UIProcess/WebApplicationCacheManagerProxy.cpp:
3144         (WebKit::WebApplicationCacheManagerProxy::didReceiveMessage):
3145         * UIProcess/WebApplicationCacheManagerProxy.h:
3146         (WebApplicationCacheManagerProxy):
3147         * UIProcess/WebContext.cpp:
3148         (WebKit::WebContext::didReceiveMessage):
3149         (WebKit::WebContext::didReceiveSyncMessage):
3150         * UIProcess/WebContext.h:
3151         (WebContext):
3152         * UIProcess/WebCookieManagerProxy.cpp:
3153         (WebKit::WebCookieManagerProxy::didReceiveMessage):
3154         * UIProcess/WebCookieManagerProxy.h:
3155         (WebCookieManagerProxy):
3156         * UIProcess/WebDatabaseManagerProxy.cpp:
3157         (WebKit::WebDatabaseManagerProxy::didReceiveMessage):
3158         * UIProcess/WebDatabaseManagerProxy.h:
3159         (WebDatabaseManagerProxy):
3160         * UIProcess/WebFullScreenManagerProxy.cpp:
3161         (WebKit::WebFullScreenManagerProxy::didReceiveMessage):
3162         (WebKit::WebFullScreenManagerProxy::didReceiveSyncMessage):
3163         * UIProcess/WebFullScreenManagerProxy.h:
3164         (WebFullScreenManagerProxy):
3165         * UIProcess/WebInspectorProxy.h:
3166         (WebInspectorProxy):
3167         * UIProcess/WebPageProxy.cpp:
3168         (WebKit::WebPageProxy::didReceiveMessage):
3169         (WebKit::WebPageProxy::didReceiveSyncMessage):
3170         * UIProcess/WebPageProxy.h:
3171         (WebPageProxy):
3172         * UIProcess/WebProcessProxy.cpp:
3173         (WebKit::WebProcessProxy::didReceiveMessage):
3174         (WebKit::WebProcessProxy::didReceiveSyncMessage):
3175         (WebKit::WebProcessProxy::didReceiveMessageOnConnectionWorkQueue):
3176         * UIProcess/WebProcessProxy.h:
3177         (WebProcessProxy):
3178         * UIProcess/mac/RemoteLayerTreeHost.h:
3179         (RemoteLayerTreeHost):
3180         * UIProcess/mac/RemoteLayerTreeHost.mm:
3181         (WebKit::RemoteLayerTreeHost::didReceiveMessage):
3182         * UIProcess/mac/SecItemShimProxy.cpp:
3183         (WebKit::SecItemShimProxy::didReceiveMessageOnConnectionWorkQueue):
3184         * UIProcess/mac/SecItemShimProxy.h:
3185         (SecItemShimProxy):
3186         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3187         (WebKit::WebApplicationCacheManager::didReceiveMessage):
3188         * WebProcess/ApplicationCache/WebApplicationCacheManager.h:
3189         (WebApplicationCacheManager):
3190         * WebProcess/Cookies/WebCookieManager.cpp:
3191         (WebKit::WebCookieManager::didReceiveMessage):
3192         * WebProcess/Cookies/WebCookieManager.h:
3193         (WebCookieManager):
3194         * WebProcess/FullScreen/WebFullScreenManager.cpp:
3195         (WebKit::WebFullScreenManager::didReceiveMessage):
3196         * WebProcess/FullScreen/WebFullScreenManager.h:
3197         (WebFullScreenManager):
3198         * WebProcess/Network/NetworkProcessConnection.cpp:
3199         (WebKit::NetworkProcessConnection::didReceiveMessage):
3200         (WebKit::NetworkProcessConnection::didReceiveSyncMessage):
3201         * WebProcess/Network/WebResourceLoader.h:
3202         (WebResourceLoader):
3203         * WebProcess/Plugins/PluginProcessConnection.cpp:
3204         (WebKit::PluginProcessConnection::didReceiveMessage):
3205         (WebKit::PluginProcessConnection::didReceiveSyncMessage):
3206         * WebProcess/Plugins/PluginProcessConnection.h:
3207         (PluginProcessConnection):
3208         * WebProcess/Plugins/PluginProxy.h:
3209         (PluginProxy):
3210         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3211         (WebKit::WebDatabaseManager::didReceiveMessage):
3212         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3213         (WebDatabaseManager):
3214         * WebProcess/WebPage/DrawingArea.h:
3215         (DrawingArea):
3216         * WebProcess/WebPage/EventDispatcher.cpp:
3217         (WebKit::EventDispatcher::didReceiveMessageOnConnectionWorkQueue):
3218         * WebProcess/WebPage/EventDispatcher.h:
3219         (EventDispatcher):
3220         * WebProcess/WebPage/WebInspector.h:
3221         (WebInspector):
3222         * WebProcess/WebPage/WebPage.cpp:
3223         (WebKit::WebPage::didReceiveMessage):
3224         (WebKit::WebPage::didReceiveSyncMessage):
3225         * WebProcess/WebPage/WebPage.h:
3226         (WebPage):
3227         * WebProcess/WebProcess.cpp:
3228         (WebKit::WebProcess::didReceiveMessage):
3229         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3230         * WebProcess/WebProcess.h:
3231         (WebProcess):
3232
3233 2013-01-30  Christophe Dumez  <dchris@gmail.com>
3234
3235         [WK2][UNIX] g_spawn_sync() generates warning in PluginProcessProxy::scanPlugin()
3236         https://bugs.webkit.org/show_bug.cgi?id=108371
3237
3238         Reviewed by Martin Robinson.
3239
3240         g_spawn_sync() was sometimes displaying a warning about the SIGCHLD
3241         signal disposition not being set to SIG_DFL, despite the fix in r133755.
3242         The reason was that the code was only setting the disposition to SIG_DFL
3243         if the previous disposition was SIG_IGN.
3244
3245         In this patch, we set the SIGCHLD signal disposition to SIG_DFL, no
3246         matter what its previous disposition was. Also, the signal disposition
3247         is now restored to its previous state after the call to g_spawn_sync()
3248         to avoid side effects. Finally, we now use SIGCHLD instead of SIDCLD
3249         since this is the more compatible POSIX name.
3250
3251         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
3252         (WebKit::spawnProcessSync):
3253         (WebKit):
3254         (WebKit::PluginProcessProxy::scanPlugin):
3255
3256 2013-01-30  Huang Dongsung  <luxtella@company100.net>
3257
3258         [EFL][Qt][WK2] We should consider a page scale factor in WebCore instead of our own scale factor.
3259         https://bugs.webkit.org/show_bug.cgi?id=105978
3260
3261         Reviewed by Simon Fraser.
3262
3263         Currently, PageViewportController sends a page scale factor to Coordinated
3264         Graphics System regardless of the page scale factor in WebCore. This patch makes
3265         Coordinated Graphics System use the page scale factor in WebCore to match other
3266         ports.
3267
3268         When it is needed to change a page scale, PageViewportController sends the scale
3269         to Page in Web Process via WebPageProxy::scalePage. When the page scale in
3270         WebCore is changed, CoordinatedGraphicsLayer gets notified via
3271         deviceOrPageScaleFactorChanged callback. CoordinatedGraphicsLayer uses the page
3272         scale factor like previous our own scale factor.
3273
3274         We set true to applyDeviceScaleFactorInCompositor and
3275         ApplyPageScaleFactorInCompositor in Settings like chromium, because
3276         TiledBackingStore that is a backing store of each GraphicsLayer applies the
3277         scale to our raster graphics engines instead of applying the scale to the local
3278         transform of each render object.
3279
3280         Thank Kenneth Rohde Christiansen for implementing the base patch of this patch.
3281
3282         No new tests. Covered by existing tests.
3283
3284         * UIProcess/API/qt/qquickwebview.cpp:
3285         (QQuickWebViewLegacyPrivate::updateViewportSize):
3286         * UIProcess/API/qt/raw/qrawwebview.cpp:
3287         (QRawWebView::setSize):
3288         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3289         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
3290         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
3291             Does not receive a pageScaleFactor argument because
3292             PageViewportController sends a page scale factor to Page.
3293             However, this method still receives a scroll position because we
3294             enable delegates scrolling.
3295         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3296         (CoordinatedLayerTreeHostProxy):
3297         * UIProcess/DrawingAreaProxy.h:
3298         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
3299         * UIProcess/DrawingAreaProxyImpl.cpp:
3300         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
3301         * UIProcess/DrawingAreaProxyImpl.h:
3302         * UIProcess/PageViewportController.cpp:
3303         (WebKit::PageViewportController::didRenderFrame):
3304         (WebKit::PageViewportController::didChangeContentsVisibility):
3305         (WebKit::PageViewportController::syncVisibleContents):
3306         (WebKit::PageViewportController::applyScaleAfterRenderingContents):
3307         (WebKit::PageViewportController::applyPositionAfterRenderingContents):
3308         * UIProcess/efl/PageClientLegacyImpl.cpp:
3309         (WebKit::PageClientLegacyImpl::updateViewportSize):
3310         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3311         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3312         (WebCore::CoordinatedGraphicsLayer::deviceOrPageScaleFactorChanged):
3313         (WebCore::CoordinatedGraphicsLayer::effectiveContentsScale):
3314         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3315         (CoordinatedGraphicsLayer):
3316         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3317         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3318         (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
3319         (WebKit::CoordinatedLayerTreeHost::deviceScaleFactor):
3320         (WebKit):
3321         (WebKit::CoordinatedLayerTreeHost::pageScaleFactor):
3322         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
3323         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
3324         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3325         (CoordinatedLayerTreeHost):
3326         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
3327         * WebProcess/WebPage/WebPage.cpp:
3328         (WebKit::WebPage::setUseFixedLayout):
3329
3330 2013-01-30  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
3331
3332         [Qt] Fix Win build after r141177
3333         https://bugs.webkit.org/show_bug.cgi?id=108325
3334
3335         Reviewed by Anders Carlsson.
3336
3337         * Platform/CoreIPC/win/ConnectionWin.cpp:
3338         (CoreIPC::Connection::readEventHandler):
3339         (CoreIPC::Connection::sendOutgoingMessage):
3340
3341 2013-01-30  Thiago Marcos P. Santos  <thiago.santos@intel.com>
3342
3343         REGRESSION (r141051): Broke plugin support on non-Mac WebKit2 Ports
3344         https://bugs.webkit.org/show_bug.cgi?id=108182
3345
3346         Reviewed by Sam Weinig.
3347
3348         Send the plugin path to the PluginProcess as a parameter.
3349
3350         * PluginProcess/qt/PluginProcessMainQt.cpp:
3351         (WebKit::PluginProcessMain):
3352         * PluginProcess/unix/PluginProcessMainUnix.cpp:
3353         (WebKit::PluginProcessMainUnix):
3354         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
3355         (WebKit::ProcessLauncher::launchProcess):
3356         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
3357         (WebKit::ProcessLauncher::launchProcess):
3358         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
3359         (WebKit::ProcessLauncher::launchProcess):
3360         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
3361         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
3362         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
3363         (WebKit::PluginProcessProxy::platformInitializeLaunchOptions):
3364
3365 2013-01-30  Christophe Dumez  <christophe.dumez@intel.com>
3366
3367         [EFL][WK2] Use C API inside ewk_window_features
3368         https://bugs.webkit.org/show_bug.cgi?id=107924
3369
3370         Reviewed by Sam Weinig.
3371
3372         Use C API inside ewk_window_features instead of accessing
3373         internal C++ classes directly, to avoid violating API
3374         layering.
3375
3376         * UIProcess/API/efl/EwkView.cpp:
3377         (EwkView::createNewPage):
3378         * UIProcess/API/efl/EwkView.h:
3379         (EwkView):
3380         * UIProcess/API/efl/ewk_window_features.cpp:
3381         (EwkWindowFeatures::EwkWindowFeatures):
3382         (getWindowFeatureValue):
3383         (EwkWindowFeatures::getWindowFeatureBoolValue):
3384         (EwkWindowFeatures::getWindowFeatureDoubleValue):
3385         (ewk_window_features_geometry_get):
3386         * UIProcess/API/efl/ewk_window_features_private.h:
3387         (EwkWindowFeatures::create):
3388         (EwkWindowFeatures::geometry):
3389         (EwkWindowFeatures::setGeometry):
3390         (EwkWindowFeatures):
3391         * UIProcess/efl/PageUIClientEfl.cpp:
3392         (WebKit::PageUIClientEfl::createNewPage):
3393
3394 2013-01-30  Zeno Albisser  <zeno@webkit.org>
3395
3396         [Qt] Fix Qt/Mac build after r141024 and r141037
3397         https://bugs.webkit.org/show_bug.cgi?id=108318
3398
3399         Reviewed by Kentaro Hara.
3400
3401         * Platform/CoreIPC/mac/ConnectionMac.cpp:
3402         (CoreIPC::Connection::platformInvalidate):
3403             Replace nullptr with 0 to allow compiling without C++11 support.
3404
3405 2013-01-30  Kondapally Kalyan  <kalyan.kondapally@intel.com>
3406
3407         [EFL][Qt][WebGL] Avoid deleting an uncreated canvas.
3408         https://bugs.webkit.org/show_bug.cgi?id=106878
3409
3410         Reviewed by Benjamin Poulain.
3411
3412         setContentsToCanvas is responsible for marking canvas for creation or deletion.
3413         The issue here is that the canvas is marked for deletion even though it has not
3414         been created. This causes an assert in LayerTreeRenderer::destroyCanvas.
3415         This patch adds a seperate check to ensure that CoordinatedGraphicsLayer
3416         tries to issue a request for canvas deletion only after request for canvas
3417         creation has been handled.
3418
3419         New test: fast/canvas/webgl/canvas-resize-crash.html
3420
3421         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3422         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3423         (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas):
3424         (WebCore::CoordinatedGraphicsLayer::destroyCanvasIfNeeded):
3425         (WebCore::CoordinatedGraphicsLayer::createCanvasIfNeeded):
3426         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3427         (CoordinatedGraphicsLayer):
3428         (WebCore::CoordinatedGraphicsLayer::fixedToViewport):
3429
3430 2013-01-30  Zan Dobersek  <zdobersek@igalia.com>
3431
3432         Unreviewed GTK build fix.
3433
3434         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp: Include GraphicsLayerTextureMapper.h
3435         as a forwarding header from WebCore.
3436
3437 2013-01-30  Huang Dongsung  <luxtella@company100.net>
3438
3439         Coordinated Graphics: Remove m_pendingSyncBackingStores in LayerTreeRenderer.
3440         https://bugs.webkit.org/show_bug.cgi?id=107099
3441
3442         Reviewed by Noam Rosenthal.
3443
3444         Instead of queuing the setting of backing stores in LayerTreeRenderer,
3445         and then setting them directly to TextureMapperLayer, we allow
3446         GraphicsLayerTextureMapper's existing queuing mechanism to handle that.
3447         Instead of a m_pendingSyncBackingStores queue, we have a m_backingStores
3448         queue which can be applied much more easily to the layer tree.
3449
3450         In addition, LayerTreeRenderer::purgeGLResources() does not call
3451         TextureMapperLayer::clearBackingStoresRecursive() because
3452         TextureMapperLayer will be destructed soon.
3453
3454         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
3455         (WebKit::LayerTreeRenderer::deleteLayer):
3456         (WebKit::LayerTreeRenderer::createBackingStoreIfNeeded):
3457         (WebKit::LayerTreeRenderer::removeBackingStoreIfNeeded):
3458         (WebKit::LayerTreeRenderer::resetBackingStoreSizeToLayerSize):
3459         (WebKit::LayerTreeRenderer::createTile):
3460         (WebKit::LayerTreeRenderer::removeTile):
3461         (WebKit::LayerTreeRenderer::updateTile):
3462         (WebKit::LayerTreeRenderer::commitPendingBackingStoreOperations):
3463         (WebKit::LayerTreeRenderer::purgeGLResources):
3464         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
3465
3466 2013-01-29  Anders Carlsson  <andersca@apple.com>
3467
3468         Update the expected generated message results
3469         https://bugs.webkit.org/show_bug.cgi?id=108293
3470
3471         Reviewed by Beth Dakin.
3472
3473         * Scripts/webkit2/messages.py:
3474         (generate_messages_header):
3475         * Scripts/webkit2/messages_unittest.py:
3476
3477 2013-01-29  Sam Weinig  <sam@webkit.org>
3478
3479         Replace unnecessary ArgumentDecoder member functions with decode overloads
3480         https://bugs.webkit.org/show_bug.cgi?id=102013
3481
3482         Reviewed by Anders Carlsson.
3483
3484         * Platform/CoreIPC/ArgumentCoders.cpp:
3485         (CoreIPC::::decode):
3486         * Platform/CoreIPC/ArgumentCoders.h:
3487         * Platform/CoreIPC/ArgumentDecoder.cpp:
3488         (CoreIPC::ArgumentDecoder::decodeVariableLengthByteArray):
3489         (CoreIPC::ArgumentDecoder::decode):
3490         * Platform/CoreIPC/ArgumentDecoder.h:
3491         (ArgumentDecoder):
3492         (CoreIPC::ArgumentDecoder::decodeEnum):
3493         (CoreIPC):
3494         * Platform/CoreIPC/Connection.cpp:
3495         (CoreIPC::Connection::dispatchSyncMessage):
3496         * Platform/CoreIPC/MessageDecoder.cpp:
3497         (CoreIPC::MessageDecoder::MessageDecoder):
3498         * Platform/mac/SharedMemoryMac.cpp:
3499         (WebKit::SharedMemory::Handle::decode):
3500         * Platform/win/SharedMemoryWin.cpp:
3501         (WebKit::SharedMemory::Handle::decode):
3502         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
3503         (CoreIPC::::decode):
3504         (CoreIPC::decodeTimingFunction):
3505         * Shared/DictionaryPopupInfo.cpp:
3506         (WebKit::DictionaryPopupInfo::decode):
3507         * Shared/UserMessageCoders.h:
3508         (WebKit::UserMessageDecoder::baseDecode):
3509         * Shared/cf/ArgumentCodersCF.cpp:
3510         (CoreIPC::decode):
3511         * Shared/mac/ArgumentCodersMac.mm:
3512         (CoreIPC::decode):
3513         * Shared/mac/ObjCObjectGraphCoders.mm:
3514         (WebKit::ObjCObjectGraphDecoder::baseDecode):
3515         * Shared/mac/SandboxExtensionMac.mm:
3516         (WebKit::SandboxExtension::HandleArray::decode):
3517         * Shared/mac/SecItemRequestData.cpp:
3518         (WebKit::SecItemRequestData::decode):
3519         * Shared/mac/SecItemResponseData.cpp:
3520         (WebKit::SecItemResponseData::decode):
3521         * Shared/qt/ArgumentCodersQt.cpp:
3522 &n