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