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