c33031ed235735e21293d5d51d70ae9e495196ef
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-03-07  Alexey Proskuryakov  <ap@apple.com>
2
3         Don't try to create a sandbox extension when path is empty
4         https://bugs.webkit.org/show_bug.cgi?id=111788
5
6         Reviewed by Anders Carlsson.
7
8         * Shared/FileAPI/BlobRegistrationData.cpp:
9         (WebKit::BlobRegistrationData::BlobRegistrationData): Skip File objects with empty
10         paths to avoid logging an error to console.
11
12 2013-03-07  Mark Lam  <mark.lam@apple.com>
13
14         WebPageProxy::exceededDatabaseQuota() needs to be serialized.
15         https://bugs.webkit.org/show_bug.cgi?id=111631.
16
17         Reviewed by Geoffrey Garen.
18
19         Previously, WebPageProxy::exceededDatabaseQuota() is called synchronously
20         with script execution in the WebProcess. Hence, it is never called in a
21         recursive manner.
22
23         In webkit2, we can have multiple WebProcesses concurrently triggering a
24         call to this function. While the function is waiting on feedback from a
25         UI dialog, the wait loop may re-enter the function to service a second
26         request to call this function from another WebProcess. This results in
27         problems where some of the WebProcesses will not get a proper reply, and
28         therefore hangs perpetually waiting for a non-forthcoming reply.
29
30         This changeset changes the function to queue the requests and ensure
31         that we do not recursively callback to the UI client.
32
33         * Platform/CoreIPC/HandleMessage.h:
34         (CoreIPC::callMemberFunction):
35         * UIProcess/WebPageProxy.cpp:
36         (ExceededDatabaseQuotaRecords):
37         (Record):
38         (WebKit::ExceededDatabaseQuotaRecords::areBeingProcessed):
39         (WebKit::ExceededDatabaseQuotaRecords::ExceededDatabaseQuotaRecords):
40         (WebKit::ExceededDatabaseQuotaRecords::~ExceededDatabaseQuotaRecords):
41         (WebKit::ExceededDatabaseQuotaRecords::shared):
42         (WebKit::ExceededDatabaseQuotaRecords::createRecord):
43         (WebKit::ExceededDatabaseQuotaRecords::add):
44         (WebKit::ExceededDatabaseQuotaRecords::next):
45         (WebKit::WebPageProxy::exceededDatabaseQuota):
46         * UIProcess/WebPageProxy.h:
47         * UIProcess/WebPageProxy.messages.in:
48
49 2013-03-07  Jeffrey Pfau  <jpfau@apple.com>
50
51         CFNetwork cache partitioning does not work properly on subdomains
52         https://bugs.webkit.org/show_bug.cgi?id=111772
53
54         Reviewed by David Kilzer.
55
56         Ensure that the CFString is UTF-8 so that WKCFURLCacheCopyAllHostNamesInPersistentStoreForPartition will always work.
57
58         * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp:
59         (WebKit::partitionName): Create a UTF-8 CFString explicitly
60
61 2013-03-07  Beth Dakin  <bdakin@apple.com>
62
63         Need API to draw custom overhang area
64         https://bugs.webkit.org/show_bug.cgi?id=111679
65         -and corresponding-
66         <rdar://problem/13291415>
67
68         Reviewed by Simon Fraser.
69
70         The new API is WKBundlePageSetTopOverhangImage() and 
71         WKBundlePageSetBottomOverhangImage(). When the API is called, WebPage will get 
72         GraphicsLayers for the appropriate area from FrameView, and then set the image as 
73         the contents of the layer.
74
75         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
76         (WKBundlePageSetTopOverhangImage):
77         (WKBundlePageSetBottomOverhangImage):
78         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
79         * WebProcess/WebPage/WebPage.h:
80         (WebPage):
81         * WebProcess/WebPage/mac/WebPageMac.mm:
82         (WebKit::WebPage::setTopOverhangImage):
83         (WebKit):
84         (WebKit::WebPage::setBottomOverhangImage):
85
86 2013-03-07  Gavin Barraclough  <barraclough@apple.com>
87
88         Reduce page cache size on Mac
89         https://bugs.webkit.org/show_bug.cgi?id=111795
90
91         Rubber stamped by Geoff Garen
92
93         5 entries is unnecessarily large; research show 3 should suffice.
94         On a low memory warning we should clear this completely.
95
96         * Shared/CacheModel.cpp:
97         (WebKit::calculateCacheSizes):
98             - reduce maximum to 3.
99
100 2013-03-07  Anders Carlsson  <andersca@apple.com>
101
102         Add a didFocusTextField callback to the injected bundle form client
103         https://bugs.webkit.org/show_bug.cgi?id=111771
104
105         Reviewed by Andreas Kling.
106
107         Add a new client callback that's invoked whenever a text input field is focused.
108
109         * Shared/APIClientTraits.cpp:
110         (WebKit):
111         * Shared/APIClientTraits.h:
112         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
113         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.cpp:
114         (WebKit::InjectedBundlePageFormClient::didFocusTextField):
115         (WebKit):
116         * WebProcess/InjectedBundle/InjectedBundlePageFormClient.h:
117         (InjectedBundlePageFormClient):
118         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
119         (WebKit::WebChromeClient::focusedNodeChanged):
120
121 2013-03-07  Tim Horton  <timothy_horton@apple.com>
122
123         Null-check the page overlay before trying to use it.
124
125         Reviewed by Simon Fraser.
126
127         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
128         (WebKit::TiledCoreAnimationDrawingArea::scroll):
129
130 2013-03-07  Zan Dobersek  <zdobersek@igalia.com>
131
132         [GTK] Limit the supported compilers to GCC >= 4.7 and Clang >= 3.0
133         https://bugs.webkit.org/show_bug.cgi?id=109932
134
135         Reviewed by Martin Robinson.
136
137         * GNUmakefile.am: Replace references to SYMBOL_VISIBILITY_INLINES and SYMBOL_VISIBILITY variables with the actual flags.
138         They are now available by default due to the limited set of supported compilers.
139
140 2013-03-05  Gustavo Noronha Silva  <gns@gnome.org>
141
142         [GTK] Enable translations for WebKit2
143         https://bugs.webkit.org/show_bug.cgi?id=111398
144
145         Reviewed by Martin Robinson.
146
147         * GNUmakefile.am: define PACKAGE_LOCALE_DIR when building WebProcess's main module.
148         * WebProcess/gtk/WebProcessMainGtk.cpp:
149         (WebKit::WebProcessMainGtk): register the i18n domain name, and prefer UTF-8, since
150         we're GTK+; at the moment we're just using the same name as WebKitGTK+, pro: the
151         translation module can be reused, con: you can't have different versions of
152         WebKitGTK+ and WebKit2GTK+ installed, because the module would not be fit for reuse
153         in that case.
154         * UIProcess/Launcher/gtk/ProcessLauncherGtk.cpp:
155         (WebKit::childSetupFunction): do not set LC_ALL environment variable explicitly,
156         the child process will already inherit the environment of the parent, which should
157         have all the variables set properly.
158
159 2013-03-06  Alexey Proskuryakov  <ap@apple.com>
160
161         SandboxExtension::createHandle raises an uncaught Objective-C exception if path is empty
162         https://bugs.webkit.org/show_bug.cgi?id=111689
163
164         Reviewed by Filip Pizlo.
165
166         * Shared/mac/SandboxExtensionMac.mm: (WebKit::SandboxExtension::createHandle):
167         Use a function from WebCore platform layer instead of Foundation one equivalent.
168         We already do this elsewhere in this file.
169
170 2013-03-06  Tim Horton  <timothy_horton@apple.com>
171
172         [wk2] Page overlays shouldn't dirty the entire layer when flushing if the main frame can't scroll
173         https://bugs.webkit.org/show_bug.cgi?id=111662
174         <rdar://problem/13355808>
175
176         Reviewed by Simon Fraser.
177
178         Instead of setNeedsDisplay()ing the whole page overlay layer every time through
179         TCADA::flushLayers, do it at scroll time instead. Repainting on scroll is
180         necessary to keep things painted in the right place when we scroll (the overlay
181         is fixed to the size of the view), but is quite wasteful in apps that don’t scroll.
182
183         This works with threaded scrolling because overlay installation forces us
184         into main-thread scrolling mode.
185
186         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
187         (WebKit::TiledCoreAnimationDrawingArea::scroll):
188         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
189
190 2013-03-06  Tim Horton  <timothy_horton@apple.com>
191
192         [wk2] Page overlays should use the accelerated drawing setting instead of hardcoding it on
193         https://bugs.webkit.org/show_bug.cgi?id=111654
194         <rdar://problem/13364085>
195
196         Reviewed by Simon Fraser.
197
198         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
199         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
200         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
201
202 2013-03-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
203
204         [EFL][WK2] Enable interactive form validation for email and url input type validation
205         https://bugs.webkit.org/show_bug.cgi?id=111026
206
207         Reviewed by Laszlo Gombos.
208
209         WebKit EFL can check if input value is valid by enabling this feature.
210
211         * UIProcess/API/efl/EwkView.cpp:
212         (EwkView::EwkView):
213
214 2013-03-06  Alexey Proskuryakov  <ap@apple.com>
215
216         [Mac] Synthetic ResourceResponses cannot be sent over IPC without losing most information
217         https://bugs.webkit.org/show_bug.cgi?id=111623
218
219         Reviewed by Brady Eidson.
220
221         * Shared/WebCoreArgumentCoders.cpp:
222         * Shared/WebCoreArgumentCoders.h:
223         (CoreIPC::::encode): Made the decision on whether to serialize WebCore data in
224         ResourceResponse dynamic. If the platform data is out of date, we need both
225         (because some platforms use encodePlatformData() to pass additional information).
226         (CoreIPC::::decode): Decode platform data first, because this overwrites the ResourceResponse.
227
228         * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::::encodePlatformData): Don't
229         encode NSURLResponse if it's out of date. We may have a bad NSURLResponse with 0
230         status code given to client, but it was almost certainly the same on sending side.
231         WebCore doesn't mutate real responses - it either keeps them as is, or builds
232         entirely synthetic ones.
233
234 2013-03-04  Jer Noble  <jer.noble@apple.com>
235
236         Default mouse cursor behavior should be auto-hide for full screen video with custom controls
237         https://bugs.webkit.org/show_bug.cgi?id=107601
238
239         Reviewed by Beth Dakin.
240
241         Enable the CURSOR_VISIBILITY feature.
242
243         * Configurations/FeatureDefines.xcconfig:
244
245 2013-03-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
246
247         [GTK][WK2] Implement WebInspector::localizedStringsURL() to return the file URL of localizedStrings.js
248         https://bugs.webkit.org/show_bug.cgi?id=111448
249
250         Reviewed by Alexey Proskuryakov.
251
252         Implement WebInspector::localizedStringsURL() method to return the
253         file URL of the localizedStrings.js.
254
255         This prevents printing warnings about "Localized string not found" in
256         the console.
257
258         * WebProcess/WebPage/gtk/WebInspectorGtk.cpp:
259         (WebKit::WebInspector::localizedStringsURL):
260
261 2013-03-06  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
262
263         [EFL][WK2] REGRESSION(r143582): API test EWK2UnitTestBase.ewk_view_contents_size_changed failing
264         https://bugs.webkit.org/show_bug.cgi?id=110608
265
266         Reviewed by Kenneth Rohde Christiansen.
267
268         Test was expecting ContentsSizeChanged signal from ViewClientEfl, but
269         WebView was not calling client callback if useFixedLayout() is true.
270
271         This patch prevent early return if useFixedLayout() is true and call
272         client callback didChangeContentsSize(), which will emit the signal.
273
274         * UIProcess/efl/ViewClientEfl.cpp:
275         (WebKit::ViewClientEfl::didChangeContentsSize):
276         * UIProcess/efl/WebView.cpp:
277         (WebKit::WebView::didChangeContentsSize):
278
279 2013-03-06  Manuel Rego Casasnovas  <rego@igalia.com>
280
281         [WK2][GTK] Fix unit test WebKit2APITests/WebKitWebView/mouse-target
282         https://bugs.webkit.org/show_bug.cgi?id=82866
283
284         Reviewed by Martin Robinson.
285
286         Test was failing because of new media controls needs more space to be
287         painted than just 10x10 pixels. This is similar to r144070.
288
289         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
290         (testWebViewMouseTarget): Modified HTML in order to give more space to the media controls.
291
292 2013-03-06  Tim Horton  <timothy_horton@apple.com>
293
294         [wk2] Page Overlays: Hook up the layer border/repaint counter setting to the overlay layer
295         https://bugs.webkit.org/show_bug.cgi?id=111547
296         <rdar://problem/13355801>
297
298         Reviewed by Simon Fraser.
299
300         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
301         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
302         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
303         Keep the page overlay layer's debug border and repaint counter settings updated.
304
305 2013-03-06  Geoffrey Garen  <ggaren@apple.com>
306
307         Joing the adoptNS/adoptCF/adoptRef club.
308         https://bugs.webkit.org/show_bug.cgi?id=111467
309
310         Reviewed by Darin Adler.
311
312         Responding to review comments by Darin Adler.
313
314         * NetworkProcess/mac/NetworkProcessMac.mm:
315         (WebKit::NetworkProcess::platformInitializeNetworkProcess):
316         * WebProcess/mac/WebProcessMac.mm:
317         (WebKit::WebProcess::platformInitializeWebProcess): Tighten up this code
318         by reducing extraneous local variables.
319
320 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
321
322         Track sandbox extensions for blobs in NetworkProcess
323         https://bugs.webkit.org/show_bug.cgi?id=111484
324
325         Reviewed by Sam Weinig.
326
327         * WebKit2.xcodeproj/project.pbxproj:
328         * NetworkProcess/FileAPI: Added.
329         * NetworkProcess/FileAPI/NetworkBlobRegistry.cpp: Added.
330         * NetworkProcess/FileAPI/NetworkBlobRegistry.h: Added.
331         Added a registry that wraps normal in-process "BlobRegistryImpl", and also tracks
332         sandbox extensions for blobs. It will also track process connections, so that
333         blobs could be removed when a process crashes.
334
335         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
336         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
337         (WebKit::NetworkConnectionToWebProcess::registerBlobURLFromURL):
338         (WebKit::NetworkConnectionToWebProcess::unregisterBlobURL):
339         Use NetworkBlobRegistry.
340
341         * NetworkProcess/SchedulableLoader.h:
342         * NetworkProcess/SchedulableLoader.cpp:
343         (WebKit::SchedulableLoader::SchedulableLoader): Add extensions for blobs, both in
344         request URL and in request data.
345         (WebKit::SchedulableLoader::consumeSandboxExtensions): Request may now have multiple
346         extensions.
347         (WebKit::SchedulableLoader::invalidateSandboxExtensions): Ditto.
348
349         * Shared/FileAPI/BlobRegistrationData.cpp: Fixed extension creation - actually
350         store the result.
351
352 2013-03-06  Andras Becsi  <andras.becsi@digia.com>
353
354         [Qt][WK2] Fix the Mac build after r144787
355         https://bugs.webkit.org/show_bug.cgi?id=111569
356
357         Reviewed by Csaba Osztrogonác.
358
359         Use uint_64 explicitly instead of size_t.
360
361         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
362         (CoreIPC::::encode):
363         (CoreIPC::::decode):
364
365 2013-03-05  Kent Tamura  <tkent@chromium.org>
366
367         Rename WebCore/editing/visible_units.* to VisibleUnits.*
368         https://bugs.webkit.org/show_bug.cgi?id=111426
369
370         Reviewed by Alexey Proskuryakov.
371
372         * WebProcess/WebPage/mac/WebPageMac.mm:
373
374 2013-03-06  Zeno Albisser  <zeno@webkit.org>
375
376         DataReference::vector() should be const.
377         https://bugs.webkit.org/show_bug.cgi?id=109928
378
379         Reviewed by Anders Carlsson.
380
381         * Platform/CoreIPC/DataReference.h:
382         (CoreIPC::DataReference::vector):
383
384 2013-03-06  Luiz Agostini  <luiz.agostini@nokia.com>
385
386         Accelerated overflow scrolling for Coordinated Graphics.
387         https://bugs.webkit.org/show_bug.cgi?id=110323
388
389         Reviewed by Noam Rosenthal.
390         Signed off for WebKit2 by Simon Fraser.
391
392         A scroll offset is applied to individual layers on UI process and the
393         web process is notified assynchronously.
394         The new API WKCoordinatedScene may be used to scroll layers in the UI process.
395
396         * CMakeLists.txt:
397
398         Encoding and decoding the new members of CoordinatedGraphicsLayerState.
399
400         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
401         (CoreIPC::::encode):
402         (CoreIPC::::decode):
403
404         Adding acceleratedCompositingForOverflowScrollEnabled to WebPreferencesStore.
405
406         * Shared/WebPreferencesStore.h:
407         * WebProcess/WebPage/WebPage.cpp:
408         (WebKit::WebPage::updatePreferences):
409
410         New API WKCoordinatedScene is used to scroll layers on UI side.
411
412         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
413         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.h:
414         * UIProcess/CoordinatedGraphics/WKCoordinatedSceneAPICast.h:
415
416         A new message is used to send scroll commit messages to web process.
417
418         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
419         (WebKit::CoordinatedLayerTreeHostProxy::commitScrollOffset):
420         (WebKit):
421         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
422         (CoordinatedLayerTreeHostProxy):
423         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
424         (WebKit::CoordinatedLayerTreeHost::~CoordinatedLayerTreeHost):
425         (WebKit::CoordinatedLayerTreeHost::detachLayer):
426         (WebKit::CoordinatedLayerTreeHost::createGraphicsLayer):
427         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
428         (WebKit::CoordinatedLayerTreeHost::purgeBackingStores):
429         (WebKit::CoordinatedLayerTreeHost::commitScrollOffset):
430         (WebKit):
431         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
432         (CoordinatedLayerTreeHost):
433         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.messages.in:
434
435 2013-03-06  Huang Dongsung  <luxtella@company100.net>
436
437         [EFL][WK2] Convert from device view size to UI view size only in EwkView.
438         https://bugs.webkit.org/show_bug.cgi?id=110197
439
440         Reviewed by Kenneth Rohde Christiansen.
441
442         Signed off for WebKit2 by Benjamin Poulain.
443
444         Device scale factor is a property of the physical display, so only EwkView
445         should deal with converting device view size to UI (a.k.a Density Independent Pixel)
446         view size. It increases readability because we can regard a view size in
447         other classes (e.g. WebView, PageViewportController, WebPage) except for
448         EwkView as UI size.
449
450         * UIProcess/API/efl/EwkView.cpp:
451         (EwkView::setDeviceScaleFactor):
452         (EwkView::setDeviceSize):
453         (EwkView::size):
454         (EwkView::deviceSize):
455         (EwkView::scheduleUpdateDisplay):
456         (EwkView::createGLSurface):
457         (EwkView::handleEvasObjectCalculate):
458         * UIProcess/API/efl/EwkView.h:
459         (EwkView):
460         * UIProcess/efl/WebView.cpp:
461         (WebKit::WebView::paintToCurrentGLContext):
462         (WebKit::WebView::updateViewportSize):
463
464 2013-03-06  Christophe Dumez  <ch.dumez@sisa.samsung.com>
465
466         [EFL][WK2] Use Vector::reserveInitialCapacity() in WebEventFactory::createWebTouchEvent()
467         https://bugs.webkit.org/show_bug.cgi?id=111530
468
469         Reviewed by Benjamin Poulain.
470
471         In WebEventFactory::createWebTouchEvent(), when constructing the vector of touch points,
472         we already know in advance the total number of touch points. Therefore, we should
473         leverage WTF::Vector::reserveInitialCapacity() and WTF::Vector::uncheckedAppend() to save
474         some capacity checks.
475
476         * Shared/efl/WebEventFactory.cpp:
477         (WebKit::WebEventFactory::createWebTouchEvent):
478
479 2013-03-05  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
480
481         [WK2][EFL] Enable asynchronous spell checking by default
482         https://bugs.webkit.org/show_bug.cgi?id=111295
483
484         Reviewed by Benjamin Poulain.
485
486         Asynchronous spell checking feature is disabled by default for wk2 platforms.
487         It means all requests of spell checking are sent synchronously.
488
489         WebKit-EFL implements requestCheckingOfString method which allows
490         to check spelling asynchronously.
491
492         * UIProcess/API/efl/EwkView.cpp:
493         (EwkView::EwkView):
494
495 2013-03-05  Kondapally Kalyan  <kalyan.kondapally@intel.com>
496
497         [EFL] Ensure right format is used in SnapshotImageGL.
498         https://bugs.webkit.org/show_bug.cgi?id=111333
499
500         Reviewed by Benjamin Poulain.
501
502         GL_BGRA format is not standard for glReadPixels with GLES.
503         This patch ensures that GL_RGBA is used in SnapshotImageGL
504         while using GLES.
505
506         * UIProcess/API/efl/SnapshotImageGL.cpp:
507         (getImageSurfaceFromFrameBuffer):
508
509 2013-03-05  Geoffrey Garen  <ggaren@apple.com>
510
511         Each web process truncates the disk cache to zero on launch
512         https://bugs.webkit.org/show_bug.cgi?id=111467
513
514         Reviewed by Darin Adler.
515
516         Let's not do that.
517
518         * WebProcess/mac/WebProcessMac.mm:
519         (WebKit::WebProcess::platformInitializeWebProcess):
520
521 2013-03-05  Anders Carlsson  <andersca@apple.com>
522
523         Reset the values if there is a quota error
524         https://bugs.webkit.org/show_bug.cgi?id=111500
525
526         Reviewed by Beth Dakin.
527
528         * WebProcess/Storage/StorageAreaProxy.cpp:
529         (WebKit::StorageAreaProxy::didSetItem):
530         (WebKit::StorageAreaProxy::resetValues):
531         (WebKit):
532         * WebProcess/Storage/StorageAreaProxy.h:
533         (StorageAreaProxy):
534
535 2013-03-05  Anders Carlsson  <andersca@apple.com>
536
537         Keep track of pending value changes in StorageAreaProxy
538         https://bugs.webkit.org/show_bug.cgi?id=111496
539
540         Reviewed by Beth Dakin.
541
542         Add a HashCountedSet to keep track of the number of pending value
543         changes for a given key. If we get incoming storage events from other
544         processes while we have pending value changes, ignore the events.
545
546         * WebProcess/Storage/StorageAreaProxy.cpp:
547         (WebKit::StorageAreaProxy::setItem):
548         (WebKit::StorageAreaProxy::didSetItem):
549         (WebKit::StorageAreaProxy::dispatchStorageEvent):
550         (WebKit::StorageAreaProxy::shouldApplyChangesForKey):
551         (WebKit):
552         * WebProcess/Storage/StorageAreaProxy.h:
553         (StorageAreaProxy):
554
555 2013-03-05  Ryuan Choi  <ryuan.choi@samsung.com>
556
557         [EFL] Build break with latest EFL libraries
558         https://bugs.webkit.org/show_bug.cgi?id=111028
559
560         Reviewed by Dirk Pranke.
561
562         * PlatformEfl.cmake: Added ECORE_XXX_INCLUDE_DIRS.
563
564 2013-03-05  Anders Carlsson  <andersca@apple.com>
565
566         Use a named parameter for whether a quota error ocurred or not
567         https://bugs.webkit.org/show_bug.cgi?id=111490
568
569         Reviewed by Beth Dakin.
570
571         This is clearer than setItem returning true on error.
572         Also, actually set the item in the storage map.
573
574         * UIProcess/Storage/StorageManager.cpp:
575         (StorageManager::StorageArea):
576         (WebKit::StorageManager::StorageArea::setItem):
577         (WebKit::StorageManager::setItem):
578
579 2013-03-05  Kiran Muppala  <cmuppala@apple.com>
580
581         Use new assertion API for process suppression on Mac
582         https://bugs.webkit.org/show_bug.cgi?id=111387
583
584         Reviewed by Alexey Proskuryakov.
585
586         * Shared/ChildProcess.h:
587         (WebKit::ChildProcess::processSuppressionEnabled): Rename
588         m_processVisibleAssertion to m_processSuppressionAssertion.
589         * Shared/mac/ChildProcessMac.mm:
590         (WebKit::ChildProcess::setProcessSuppressionEnabled): Ditto. And,
591         replace calls to WKNSProcessInfoProcessAssertionWithTypes() with call to
592         -[NSProcessInfo beginSuspensionOfSystemBehaviors:].
593
594 2013-03-05  Anders Carlsson  <andersca@apple.com>
595
596         Move storageType() to StorageAreaProxy
597         https://bugs.webkit.org/show_bug.cgi?id=111488
598
599         Reviewed by Andreas Kling.
600
601         * WebProcess/Storage/StorageAreaProxy.cpp:
602         (WebKit::StorageAreaProxy::StorageAreaProxy):
603         (WebKit::StorageAreaProxy::storageType):
604         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
605         * WebProcess/Storage/StorageAreaProxy.h:
606         (StorageAreaProxy):
607         * WebProcess/Storage/StorageNamespaceProxy.cpp:
608         * WebProcess/Storage/StorageNamespaceProxy.h:
609
610 2013-03-05  Jeffrey Pfau  <jpfau@apple.com>
611
612         Clear associated cache partitions when deleting origins' cache
613         https://bugs.webkit.org/show_bug.cgi?id=111383
614
615         Reviewed by Maciej Stachowiak.
616
617         Clear the cache partitions associated with the origin being cleared.
618
619         * WebProcess/ResourceCache/cf/WebResourceCacheManagerCFNet.cpp:
620         (WebKit):
621         (WebKit::partitionName):
622         (WebKit::WebResourceCacheManager::clearCFURLCacheForHostNames):
623
624 2013-03-05  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
625
626         [WK2][EFL] WebPageProxy::setThemePath() should check that the page is valid
627         https://bugs.webkit.org/show_bug.cgi?id=109917
628
629         Reviewed by Alexey Proskuryakov.
630
631         WebPageProxy::setThemePath() should check that the page is valid before
632         sending IPC message.
633
634         * UIProcess/efl/WebPageProxyEfl.cpp:
635         (WebKit::WebPageProxy::setThemePath):
636
637 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
638
639         <rdar://problem/13269245> Crashes creating WebKit processes in WKSandboxExtensionConsume
640         https://bugs.webkit.org/show_bug.cgi?id=111456
641
642         Reviewed by Anders Carlsson.
643
644         It's too late to be draconian about this condition here, crashing doesn't help
645         diagnose what went wrong when creating a sandbox extension.
646
647         Other SandboxExtension functions already have null checks for WKSandboxExtensionRef,
648         and so should consumePermanently().
649
650         * Shared/mac/SandboxExtensionMac.mm:
651         (WebKit::SandboxExtension::createHandle): For now, added logging when extension
652         creation fails. If that proves insufficiently helpful in practice, we can change
653         to a CRASH() later.
654         (WebKit::SandboxExtension::createHandleForTemporaryFile): Ditto.
655         (WebKit::SandboxExtension::consumePermanently): Gracefully fail if there is no extension
656         to consume.
657
658 2013-03-05  Gwang Yoon Hwang  <ryumiel@company100.net>
659
660         Coordinated Graphics: CoordinatedGraphicsLayer makes CoordinatedGraphicsScene perform via CoordinatedGraphicsState.
661         https://bugs.webkit.org/show_bug.cgi?id=108294
662
663         Reviewed by Anders Carlsson.
664
665         There are two changes in WK2.
666         1. Change CoordinatedLayerTreeHostProxy to use CoordinatedGraphicsState.
667         2. Add encode/decode of CoordinatedGraphicsState in CoordinatedGraphicsArgumentCoders.
668
669         This patch is based on Dongsung Huang, and Noam's work in
670         https://bugs.webkit.org/show_bug.cgi?id=108294
671
672         No new tests, covered by existing tests.
673
674         * Scripts/webkit2/messages.py:
675         (headers_for_type):
676         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
677         (CoreIPC::::encode):
678             Encoding UpdateImageBacking and CreateUpdateAtlas can fail when
679             encoding WebCoordinatedSurface::Handle fails, but we don't
680             recover in the case.
681         (CoreIPC::::decode):
682         (CoreIPC):
683         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
684         (WebCore):
685         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
686         (WebKit::CoordinatedLayerTreeHostProxy::commitCoordinatedGraphicsState):
687         (WebKit):
688         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
689         (WebCore):
690         (CoordinatedLayerTreeHostProxy):
691         (WebKit::CoordinatedLayerTreeHostProxy::coordinatedGraphicsScene):
692         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
693         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
694         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
695         (WebKit::CoordinatedLayerTreeHost::initializeRootCompositingLayerIfNeeded):
696         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
697         (WebKit::CoordinatedLayerTreeHost::prepareCustomFilterProxiesIfNeeded):
698         (WebKit):
699         (WebKit::CoordinatedLayerTreeHost::updateImageBacking):
700         (WebKit::CoordinatedLayerTreeHost::setBackgroundColor):
701         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
702         (CoordinatedLayerTreeHost):
703
704 2013-03-05  Sam Weinig  <sam@webkit.org>
705
706         Follow up to https://bugs.webkit.org/show_bug.cgi?id=111453, forgot to mark the files as Private.
707
708         * WebKit2.xcodeproj/project.pbxproj:
709
710 2013-03-05  Sam Weinig  <sam@webkit.org>
711
712         Elevate accessors of C-SPI API variants to Objective-C SPI
713         https://bugs.webkit.org/show_bug.cgi?id=111453
714         <rdar://problem/13340357>
715
716         Reviewed by Alexey Proskuryakov.
717
718         * Shared/mac/ObjCObjectGraphCoders.mm:
719         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h:
720         * UIProcess/API/mac/WKBrowsingContextControllerPrivate.h:
721         * UIProcess/API/mac/WKBrowsingContextGroup.mm:
722         * UIProcess/API/mac/WKBrowsingContextGroupPrivate.h: Renamed from Source/WebKit2/UIProcess/API/mac/WKBrowsingContextGroupInternal.h.
723         * UIProcess/API/mac/WKProcessGroup.mm:
724         * UIProcess/API/mac/WKProcessGroupPrivate.h: Copied from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
725         * UIProcess/API/mac/WKView.mm:
726         * WebKit2.xcodeproj/project.pbxproj:
727         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.mm:
728         (-[WKWebProcessPlugInController _bundleRef]):
729         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInPrivate.h: Renamed from Source/WebKit2/UIProcess/API/mac/WKProcessGroupInternal.h.
730         Add access to C-SPI WebKit types as Objective-C SPI.
731
732 2013-03-04  Alexey Proskuryakov  <ap@apple.com>
733
734         Make AsyncFileReader work without ScriptExecutionContext
735         https://bugs.webkit.org/show_bug.cgi?id=111376
736
737         Reviewed by Anders Carlsson.
738
739         * NetworkProcess/NetworkResourceLoader.cpp:
740         * NetworkProcess/NetworkResourceLoader.h:
741         Removed a dummy implementation of createAsyncFileStream, which is no longer needed.
742
743 2013-03-05  Alexey Proskuryakov  <ap@apple.com>
744
745         <rdar://problem/13345116> REGRESSION: Child processes get access to user cache
746         and temporary directories instead of private ones
747
748         Reviewed by Sam Weinig.
749
750         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::initializeSandbox):
751         Restore the correct order of calls, so sandbox parameters respect WebKit pseudo
752         containers.
753
754 2013-03-05  David Kilzer  <ddkilzer@apple.com>
755
756         BUILD FIX (r144698): Only enable SPEECH_SYNTHESIS for Mac
757         <http://webkit.org/b/106742>
758
759         Fixes the following build failures:
760
761             Undefined symbols for architecture i386:
762               "__ZTVN7WebCore25PlatformSpeechSynthesizerE", referenced from:
763                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
764               NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
765               "__ZN7WebCore25PlatformSpeechSynthesizer19initializeVoiceListEv", referenced from:
766                   __ZN7WebCore25PlatformSpeechSynthesizerC2EPNS_31PlatformSpeechSynthesizerClientE in PlatformSpeechSynthesizer.o
767             ld: symbol(s) not found for architecture i386
768
769         * Configurations/FeatureDefines.xcconfig:
770         - Only set ENABLE_SPEECH_SYNTHESIS for the macosx platform.
771
772 2013-03-05  Tim Horton  <timothy_horton@apple.com>, Grzegorz Czajkowski  <g.czajkowski@samsung.com>
773
774         [WK2] WTR needs an implementation of setAsynchronousSpellCheckingEnabled
775         https://bugs.webkit.org/show_bug.cgi?id=81042
776
777         Reviewed by Enrica Casucci.
778
779         Expose WK2 setting to enable/disabled asynchronous spell checking.
780         It's used by WebKitTestRunner to reset the setting at the beginning
781         of the test.
782         WebKit2 ports might be interested in this setting if they are going
783         to enable this feature.
784
785         * Shared/WebPreferencesStore.h:
786         * UIProcess/API/C/WKPreferences.cpp:
787         (WKPreferencesSetAsynchronousSpellCheckingEnabled):
788         (WKPreferencesGetAsynchronousSpellCheckingEnabled):
789         * UIProcess/API/C/WKPreferences.h:
790         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
791         (WKBundleSetAsynchronousSpellCheckingEnabled):
792         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
793         * WebProcess/InjectedBundle/InjectedBundle.cpp:
794         (WebKit::InjectedBundle::setAsynchronousSpellCheckingEnabled):
795         * WebProcess/InjectedBundle/InjectedBundle.h:
796         * WebProcess/WebPage/WebPage.cpp:
797         (WebKit::WebPage::updatePreferences):
798
799 2013-03-03  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
800
801         [WK2][EFL] Add requestCheckingOfString implementation.
802         https://bugs.webkit.org/show_bug.cgi?id=108172
803
804         Reviewed by Hajime Morrita.
805
806         Provide implementation of 'requestCheckingOfString' for WK2-EFL.
807         It uses the unified text checker feature.
808
809         * UIProcess/efl/TextCheckerEfl.cpp:
810         (WebKit::TextChecker::requestCheckingOfString):
811
812 2013-03-04  Chris Fleizach  <cfleizach@apple.com>
813
814         Support WebSpeech - Speech Synthesis
815         https://bugs.webkit.org/show_bug.cgi?id=106742
816
817         Reviewed by Simon Fraser.
818
819         Enable speech synthesis for the Mac.
820
821         * Configurations/FeatureDefines.xcconfig:
822
823 2013-03-04  Anders Carlsson  <andersca@apple.com>
824
825         UI process storage areas should hold on to storage maps
826         https://bugs.webkit.org/show_bug.cgi?id=111374
827
828         Reviewed by Beth Dakin.
829
830         Pass the session storage quota size through to the storage area constructor and
831         create a StorageMap with the given quota size.
832
833         * UIProcess/Storage/StorageManager.cpp:
834         (StorageManager::StorageArea):
835         (WebKit::StorageManager::StorageArea::create):
836         (WebKit::StorageManager::StorageArea::StorageArea):
837         (StorageManager::SessionStorageNamespace):
838         (WebKit::StorageManager::SessionStorageNamespace::create):
839         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
840         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
841         (WebKit::StorageManager::createSessionStorageNamespace):
842         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
843         * UIProcess/Storage/StorageManager.h:
844         (StorageManager):
845         * UIProcess/WebPageProxy.cpp:
846         (WebKit::WebPageProxy::WebPageProxy):
847
848 2013-03-04  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
849
850         Unreviewed build fix after r144675.
851
852         Work around picky/old C++ compilers by separating the '>>' in
853         nested templates with a space.
854
855         * UIProcess/Storage/StorageManager.cpp:
856         (StorageManager::StorageArea):
857
858 2013-03-04  Anders Carlsson  <andersca@apple.com>
859
860         More work on UI side storage
861         https://bugs.webkit.org/show_bug.cgi?id=111370
862
863         Reviewed by Andreas Kling.
864
865         Add a DispatchStorageEvent message and begin hooking it up.
866
867         * UIProcess/Storage/StorageManager.cpp:
868         (StorageManager::StorageArea):
869         (WebKit::StorageManager::StorageArea::setItem):
870         (WebKit):
871         (WebKit::StorageManager::StorageArea::dispatchEvents):
872         (WebKit::StorageManager::setItem):
873         (WebKit::StorageManager::findStorageArea):
874         * UIProcess/Storage/StorageManager.h:
875         (StorageManager):
876         * UIProcess/Storage/StorageManager.messages.in:
877         * WebProcess/Storage/StorageAreaProxy.cpp:
878         (WebKit::StorageAreaProxy::setItem):
879         (WebKit::StorageAreaProxy::dispatchStorageEvent):
880         (WebKit):
881         * WebProcess/Storage/StorageAreaProxy.h:
882         (StorageAreaProxy):
883         * WebProcess/Storage/StorageAreaProxy.messages.in:
884
885 2013-03-04  Jer Noble  <jer.noble@apple.com>
886
887         Unreviewed build fix: wrap references to PluginInfoStore with 
888         guards for platforms which do not enable NETSCAPE_PLUGIN_AP.
889
890         * UIProcess/WebContext.cpp:
891         (WebKit::WebContext::WebContext):
892         (WebKit::WebContext::~WebContext):
893         * UIProcess/WebContext.h:
894
895 2013-03-04  Anders Carlsson  <andersca@apple.com>
896
897         Create and destroy storage areas in the UI process
898         https://bugs.webkit.org/show_bug.cgi?id=111361
899
900         Reviewed by Sam Weinig.
901
902         * UIProcess/Storage/StorageManager.cpp:
903         (StorageManager::StorageArea):
904         Keep track of listener connection and storage area ID pairs.
905         
906         (WebKit::StorageManager::StorageArea::~StorageArea):
907         Assert that we don't have any listeners left.
908
909         (WebKit::StorageManager::StorageArea::addListener):
910         Add the pair to the set of listeners.
911         
912         (WebKit::StorageManager::StorageArea::removeListener):
913         Remove the pair from the set of listeners.
914         
915         (WebKit::StorageManager::SessionStorageNamespace::getOrCreateStorageArea):
916         Given an origin, look up or create the storage area.
917
918         (WebKit::StorageManager::createStorageArea):
919         Create the storage area if it doesn't already exist.
920
921         (WebKit::StorageManager::destroyStorageArea):
922         Look up the storage area and destroy it.
923
924         * UIProcess/Storage/StorageManager.h:
925         Add a map of open storage areas.
926
927 2013-03-04  Jer Noble  <jer.noble@apple.com>
928
929         Add API to allow WK2 clients to query the list of installed plug-ins.
930         https://bugs.webkit.org/show_bug.cgi?id=111245
931
932         Reviewed by Alexey Proskuryakov.
933
934         Add API in WKContext, implemented by WebContext, that allows callers to register a callback 
935         retrieve an array containing installed plugin information. This API is exposed through WebContext 
936         because it owns the PluginInfoStore used to fulfill the request.
937
938         Bump the WKContextClient API by 1:
939         * Shared/APIClientTraits.cpp:
940         * Shared/APIClientTraits.h:
941         * UIProcess/API/C/WKContext.h:
942
943         Add a client protocol to PluginInfoStore to notify the client when plugIn information has been
944         successfully loaded:
945         * UIProcess/Plugins/PluginInfoStore.cpp:
946         (WebKit::PluginInfoStore::PluginInfoStore): Initialize m_client to 0.
947         (WebKit::PluginInfoStore::loadPluginsIfNecessary): If the client is present, notify after loading the plugin store.
948         * UIProcess/Plugins/PluginInfoStore.h:
949         (WebKit::PluginInfoStoreClient::~PluginInfoStoreClient): Default destructor.
950         (WebKit::PluginInfoStoreClient::PluginInfoStoreClient): Default constructor.
951         (WebKit::PluginInfoStore::setClient): Simple setter.
952         (WebKit::PluginInfoStore::client): Simple getter.
953
954         * UIProcess/WebContext.cpp:
955         (WebKit::WebContext::WebContext): Set self as the client of PluginInfoStore.
956         (WebKit::WebContext::~WebContext): Clear the client of PluginInfoStore.
957         (WebKit::WebContext::pluginInfoStoreDidLoadPlugins): Pass the callback to own client.
958         * UIProcess/WebContext.h:
959         * UIProcess/WebContextClient.cpp:
960         (WebKit::WebContextClient::plugInInformationBecameAvailable): Pass the callback to the registered WK callback, if present.
961         * UIProcess/WebContextClient.h:
962
963 2013-03-04  Tim Horton  <timothy_horton@apple.com>
964
965         PDFPlugin: Hook up Services
966         https://bugs.webkit.org/show_bug.cgi?id=111246
967         <rdar://problem/13062672>
968
969         Reviewed by Alexey Proskuryakov.
970
971         Make the Application->Services menu work when the focused selection is a PDFPlugin.
972
973         * Shared/EditorState.cpp:
974         (WebKit::EditorState::encode):
975         (WebKit::EditorState::decode):
976         * Shared/EditorState.h:
977         (WebKit::EditorState::EditorState):
978         (EditorState):
979         Add isInPlugin property to EditorState.
980
981         * UIProcess/API/mac/WKView.mm:
982         (-[WKView validRequestorForSendType:returnType:]):
983         If the selection is currently in a Plugin, we only currently have the ability
984         to retrieve the selection as a plain-text string, so restrict sendType to NSStringPboardType.
985
986         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
987         * WebProcess/Plugins/Plugin.h:
988         * WebProcess/Plugins/PluginView.h:
989         * WebProcess/Plugins/PluginProxy.h:
990         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
991         Add getStringSelection.
992
993         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h:
994         Add pdfLayerController:didChangeSelection: delegate method.
995
996         * WebProcess/Plugins/PDF/PDFPlugin.h:
997         (PDFPlugin):
998         Add getStringSelection and notifySelectionChanged.
999
1000         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1001         (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeSelection:]):
1002         Forward selection change notifications to our PDFPlugin.
1003
1004         (WebKit::PDFPlugin::notifySelectionChanged):
1005         Forward selection change notifications to our WebPage.
1006
1007         (WebKit::PDFPlugin::getStringSelection):
1008         Retrieve PDFLayerController's selection as a plain text string.
1009         
1010         * WebProcess/Plugins/PluginView.cpp:
1011         (WebKit::PluginView::countFindMatches):
1012         (WebKit::PluginView::findString):
1013         Drive-bys, check for existance and initialization of the plugin before using it.
1014
1015         (WebKit::PluginView::getStringSelection): Added.
1016
1017         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1018         (WebKit::WebEditorClient::respondToChangedSelection):
1019         Use didChangeSelection instead of sending the EditorStateChanged message directly.
1020
1021         * WebProcess/WebPage/WebPage.cpp:
1022         (WebKit::WebPage::editorState):
1023         If a plugin is focused and has a selection, return a EditorState that reflects that.
1024         Since PDFs aren't editable (when editing annotations, the plugin doesn't have focus),
1025         I'm not adding support for the editing-related properties when a plugin has focus.
1026
1027         (WebKit::WebPage::focusedPluginViewForFrame):
1028         (WebKit::WebPage::pluginViewForFrame):
1029         Make these class methods instead of static functions so we can use them from
1030         WebPageMac too, instead of duplicating code there.
1031
1032         (WebKit::WebPage::didChangeSelection): Added.
1033
1034         * WebProcess/WebPage/WebPage.h:
1035         Add didChangeSelection and [focused]PluginViewForFrame.
1036
1037         * WebProcess/WebPage/mac/WebPageMac.mm:
1038         (WebKit::WebPage::getStringSelectionForPasteboard):
1039         Defer to the focused plugin (if it exists) when retrieving the plain-text selection.
1040
1041 2013-03-04  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1042
1043         [WK2][EFL] Add callbacks to the WKViewClient to handle Web Process crash and relaunch
1044         https://bugs.webkit.org/show_bug.cgi?id=109828
1045
1046         Reviewed by Kenneth Rohde Christiansen.
1047
1048         Providing WKViewClient with Web Process crash and Web Process relaunch
1049         callbacks brings better design as WebView should not be aware of
1050         EFL-specific code handling the corresponding events.
1051
1052         The implementation of the mentioned Web Process callbacks was also added.
1053
1054         * UIProcess/API/C/efl/WKView.cpp:
1055         (WKViewSetThemePath):
1056         * UIProcess/API/C/efl/WKView.h:
1057         * UIProcess/efl/ViewClientEfl.cpp:
1058         (WebKit::ViewClientEfl::webProcessCrashed):
1059         (WebKit):
1060         (WebKit::ViewClientEfl::webProcessDidRelaunch):
1061         (WebKit::ViewClientEfl::ViewClientEfl):
1062         * UIProcess/efl/ViewClientEfl.h:
1063         (ViewClientEfl):
1064         * UIProcess/efl/WebView.cpp:
1065         (WebKit::WebView::setThemePath):
1066
1067             Accepts WTF::String instead of WKStringRef as it is
1068             more appropriate for C++ API implementation class.
1069
1070         (WebKit::WebView::processDidCrash):
1071         (WebKit::WebView::didRelaunchProcess):
1072         * UIProcess/efl/WebView.h:
1073         (WebView):
1074         * UIProcess/efl/WebViewClient.cpp:
1075         (WebKit::WebViewClient::webProcessCrashed):
1076         (WebKit):
1077         (WebKit::WebViewClient::webProcessDidRelaunch):
1078         * UIProcess/efl/WebViewClient.h:
1079
1080 2013-03-04  Anders Carlsson  <andersca@apple.com>
1081
1082         Complete the plug-in URL string before sending it to the UI process
1083         https://bugs.webkit.org/show_bug.cgi?id=111355
1084         <rdar://problem/13326713>
1085
1086         Reviewed by Andreas Kling.
1087
1088         If the URL is not absolute, we won't be able to find it by path extension in the plug-in info store.
1089
1090         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1091         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
1092
1093 2013-03-04  Carlos Garcia Campos  <cgarcia@igalia.com>
1094
1095         [GTK] Some WebKit2 GTK+ unit tests are failing in 32 bits bot
1096         https://bugs.webkit.org/show_bug.cgi?id=111346
1097
1098         Reviewed by Martin Robinson.
1099
1100         The problem is the use of a temporary CString object in the macro
1101         g_assert_cmpstr. It's a common mistake because we usually forget
1102         that g_assert_cmpstr is not a function but a macro, that expands
1103         to multiple lines. This patch adds a new macro ASSERT_CMP_CSTRING
1104         with the same implementation that g_assert_cmpstr, but using
1105         CStrings instead of const char*. It fixes all the cases where a
1106         temporary CString was used in g_assert_cmpstr, and uses the new
1107         macro also for the cases where we were caching the CString just
1108         for g_assert_cmpstr.
1109
1110         * UIProcess/API/gtk/tests/TestDownloads.cpp:
1111         (testDownloadRemoteFile):
1112         * UIProcess/API/gtk/tests/TestInspectorServer.cpp:
1113         (testInspectorServerPageList):
1114         * UIProcess/API/gtk/tests/TestLoaderClient.cpp:
1115         * UIProcess/API/gtk/tests/TestMain.h:
1116         * UIProcess/API/gtk/tests/TestResources.cpp:
1117         * UIProcess/API/gtk/tests/TestWebKitFaviconDatabase.cpp:
1118         (testGetFaviconURI):
1119         * UIProcess/API/gtk/tests/TestWebKitSettings.cpp:
1120         (assertThatUserAgentIsSentInHeaders):
1121         (testWebKitSettingsUserAgent):
1122
1123 2013-03-04  Kunihiko Sakamoto  <ksakamoto@chromium.org>
1124
1125         Add build flag for FontLoader
1126         https://bugs.webkit.org/show_bug.cgi?id=111289
1127
1128         Reviewed by Benjamin Poulain.
1129
1130         Add ENABLE_FONT_LOAD_EVENTS build flag (disabled by default).
1131
1132         * Configurations/FeatureDefines.xcconfig:
1133
1134 2013-03-03  Tim Horton  <timothy_horton@apple.com>
1135
1136         PDFPlugin: Rename delegate method from openWithPreview to openWithNativeApplication
1137         https://bugs.webkit.org/show_bug.cgi?id=111258
1138
1139         Reviewed by Alexey Proskuryakov.
1140
1141         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h:
1142         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1143         (-[WKPDFLayerControllerDelegate openWithNativeApplication]):
1144         Rename from openWithPreview to openWithNativeApplication to match PDFKit.
1145
1146 2013-03-03  Huang Dongsung  <luxtella@company100.net>
1147
1148         [EFL][QT][WK2] Turn on ApplyDeviceScaleFactorInCompositor always.
1149         https://bugs.webkit.org/show_bug.cgi?id=110298
1150
1151         Reviewed by Kenneth Rohde Christiansen.
1152
1153         Currently, EFL and Qt turn on ApplyDeviceScaleFactorInCompositor when using
1154         fixed layout, but ApplyDeviceScaleFactorInCompositor is not related to fixed
1155         layout. It is confusing that a platform WebView deals with device view size or
1156         DIP view size case by case. So this patch always turns on
1157         ApplyDeviceScaleFactorInCompositor.
1158
1159         In addition, move the code that turns on ScrollingCoordinatorEnabled to
1160         CoordinatedLayerTreeHost.
1161
1162         * UIProcess/API/efl/EwkView.cpp:
1163         (EwkView::setDeviceScaleFactor):
1164             We should make WebPage know new DIP size.
1165         (EwkView::setSize):
1166             When we set ApplyDeviceScaleFactorInCompositor to true, make WebPage
1167             know the DIP size as a view size.
1168         * UIProcess/efl/WebView.cpp:
1169         (WebKit::WebView::updateViewportSize):
1170         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1171         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
1172         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1173         (WebKit::DrawingAreaImpl::DrawingAreaImpl):
1174         * WebProcess/WebPage/WebPage.cpp:
1175         (WebKit::WebPage::setUseFixedLayout):
1176             WebPage sends the DIP size to Web Process even when we don't use fixed layout.
1177
1178 2013-03-03  Sam Weinig  <sam@webkit.org>
1179
1180         Shared Web Workers have an incorrect visible process name
1181         https://bugs.webkit.org/show_bug.cgi?id=111277
1182
1183         Reviewed by Dan Bernstein.
1184
1185         * SharedWorkerProcess/SharedWorkerProcess.cpp:
1186         (WebKit::SharedWorkerProcess::initializeSharedWorkerProcess):
1187         * SharedWorkerProcess/SharedWorkerProcess.h:
1188         (SharedWorkerProcess):
1189         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
1190         (WebKit::SharedWorkerProcess::initializeProcessName):
1191         The SharedWorkerProcess is not an internet plug-in!
1192
1193 2013-03-03  Adam Barth  <abarth@webkit.org>
1194
1195         Unreviewed attempted build fix. Adds back some includes removed in
1196         http://trac.webkit.org/changeset/144565.
1197
1198         * Shared/WebRenderLayer.cpp:
1199         * Shared/WebRenderObject.cpp:
1200         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1201         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1202         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1203         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1204         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1205         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1206         * WebProcess/Plugins/PluginView.cpp:
1207         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1208         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1209         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1210         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1211         * WebProcess/WebPage/mac/WebPageMac.mm:
1212         * WebProcess/WebProcess.cpp:
1213         * WebProcess/soup/WebProcessSoup.cpp:
1214
1215 2013-03-03  Adam Barth  <abarth@webkit.org>
1216
1217         Unreviewed rollout of http://trac.webkit.org/r144530
1218         As described in https://bugs.webkit.org/show_bug.cgi?id=111167 and
1219         https://bugs.webkit.org/show_bug.cgi?id=111035, this patch caused a
1220         large number of ASSERTs in chromium-win.
1221
1222         * NetworkProcess/HostRecord.h:
1223         * NetworkProcess/NetworkResourceLoadScheduler.h:
1224         * NetworkProcess/NetworkResourceLoader.h:
1225         (WebCore):
1226         * Shared/WebRenderLayer.cpp:
1227         * Shared/WebRenderObject.cpp:
1228         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1229         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1230         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1231         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1232         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1233         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1234         * WebProcess/Plugins/PluginView.cpp:
1235         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1236         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1237         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1238         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1239         * WebProcess/WebPage/mac/WebPageMac.mm:
1240         * WebProcess/WebProcess.cpp:
1241         * WebProcess/soup/WebProcessSoup.cpp:
1242
1243 2013-03-02  Sam Weinig  <sam@webkit.org>
1244
1245         WebKit2 is missing the setShowsURLsInToolTips preference
1246         https://bugs.webkit.org/show_bug.cgi?id=111259
1247         <rdar://problem/12991891>
1248
1249         Reviewed by Maciej Stachowiak.
1250
1251         * Shared/WebPreferencesStore.h:
1252         * UIProcess/API/C/WKPreferences.cpp:
1253         (WKPreferencesSetShowsURLsInToolTipsEnabled):
1254         (WKPreferencesGetShowsURLsInToolTipsEnabled):
1255         * UIProcess/API/C/WKPreferencesPrivate.h:
1256         * WebProcess/WebPage/WebPage.cpp:
1257         (WebKit::WebPage::updatePreferences):
1258         Pipe it through.
1259
1260 2013-03-02  Benjamin Poulain  <bpoulain@apple.com>
1261
1262         Move computedStyleIncludingVisitedInfo from TestRunner to Internals
1263         https://bugs.webkit.org/show_bug.cgi?id=109772
1264
1265         Reviewed by Andreas Kling.
1266
1267         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1268         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
1269         * WebProcess/WebPage/WebFrame.cpp:
1270         * WebProcess/WebPage/WebFrame.h:
1271         (WebFrame):
1272
1273 2013-03-01  Kiran Muppala  <cmuppala@apple.com>
1274
1275         Remove call to set task priority of WebKit2 processes on Mac
1276         https://bugs.webkit.org/show_bug.cgi?id=111239
1277
1278         Reviewed by Darin Adler.
1279
1280         Remove call to set task prioirty of WebKit2 processes on Mac as it
1281         is no longer necessary.
1282
1283         * Shared/mac/ChildProcessMac.mm:
1284         (WebKit::ChildProcess::platformInitialize): Remove call to setpriority().
1285
1286 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1287
1288         Reduce amount of rebuilding when touching networking headers
1289         https://bugs.webkit.org/show_bug.cgi?id=111035
1290
1291         Reviewed by Eric Seidel.
1292
1293         Adding includes that are now necessary because WebCore headers don't have them
1294         any more.
1295
1296         * NetworkProcess/HostRecord.h:
1297         * NetworkProcess/NetworkResourceLoadScheduler.h:
1298         * NetworkProcess/NetworkResourceLoader.h:
1299         * Shared/WebRenderLayer.cpp:
1300         * Shared/WebRenderObject.cpp:
1301         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1302         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1303         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1304         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1305         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1306         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1307         * WebProcess/Plugins/PluginView.cpp:
1308         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1309         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1310         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1311         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1312         * WebProcess/WebPage/mac/WebPageMac.mm:
1313         * WebProcess/WebProcess.cpp:
1314         * WebProcess/soup/WebProcessSoup.cpp:
1315
1316 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1317
1318         Make in-memory blobs work in NetworkProcess
1319         https://bugs.webkit.org/show_bug.cgi?id=111132
1320
1321         Reviewed by Sam Weinig.
1322
1323         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
1324         (WebKit::NetworkConnectionToWebProcess::registerBlobURL):
1325         (WebKit::NetworkConnectionToWebProcess::registerBlobURLFromURL):
1326         (WebKit::NetworkConnectionToWebProcess::unregisterBlobURL):
1327         * NetworkProcess/NetworkConnectionToWebProcess.h:
1328         Implement BlobRegistry interface by using BlobRegistryImpl (same one as used in
1329         WebProcess in non-PPT mode).
1330
1331         * NetworkProcess/NetworkConnectionToWebProcess.messages.in: Added three messages
1332         needed for BlobRegistry.
1333
1334         * NetworkProcess/NetworkProcess.cpp:
1335         * NetworkProcess/NetworkProcessPlatformStrategies.cpp: Added.
1336         * NetworkProcess/NetworkProcessPlatformStrategies.h: Added.
1337         Added a mostly empty platform strategy, just for FormData to talk to BlobRegistry.
1338         Perhaps we'll find a way to avoid this WebCore code path in NetworkProcess, because
1339         we obviously know which registry implementation is in use in this process.
1340
1341         * Shared/FileAPI: Added.
1342         * Shared/FileAPI/BlobRegistrationData.cpp: Added.
1343         * Shared/FileAPI/BlobRegistrationData.h: Added.
1344         Added a class for passing BlobData and extension handles over IPC.
1345         This uses a trick with mutable a member to avoid copying decoded BlobStorageData.
1346
1347         * WebKit2.xcodeproj/project.pbxproj:
1348         * WebProcess/FileAPI: Added.
1349         * WebProcess/FileAPI/BlobRegistryProxy.cpp: Added.
1350         * WebProcess/FileAPI/BlobRegistryProxy.h: Added.
1351         A proxy implementation of BlobRegistry that just sends requests over IPC. We only
1352         need async ones.
1353
1354         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
1355         (WebKit::WebPlatformStrategies::createBlobRegistry):
1356         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
1357         Create an appropriate BlobRegistry.
1358
1359 2013-03-01  Zan Dobersek  <zdobersek@igalia.com>
1360
1361         Uncomment ENABLE_SVG guards to avoid having WebKitPluginProcess link
1362         against libWebCoreSVG.la when SVG is disabled.
1363
1364         Rubber-stamped by Gustavo Noronha.
1365
1366         * GNUmakefile.am:
1367
1368 2013-02-28  Sam Weinig  <sam@webkit.org>
1369
1370         Add SPI for marking a WebView as doing things on behalf of another process
1371         https://bugs.webkit.org/show_bug.cgi?id=111125
1372
1373         Reviewed by Alexey Proskuryakov.
1374
1375         * NetworkProcess/mac/RemoteNetworkingContext.h:
1376         * NetworkProcess/mac/RemoteNetworkingContext.mm:
1377         (WebKit::RemoteNetworkingContext::sourceApplicationAuditData):
1378         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
1379         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1380         (WebKit::WebFrameNetworkingContext::sourceApplicationAuditData):
1381         Stub out sourceApplicationAuditData() client function.
1382
1383 2013-03-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1384
1385         Unreviewed, rolling out r144422 and r144424.
1386         http://trac.webkit.org/changeset/144422
1387         http://trac.webkit.org/changeset/144424
1388         https://bugs.webkit.org/show_bug.cgi?id=111167
1389
1390         Caused over 20 tests to fail assertion on Chromium Win port as
1391         ASSERTION FAILED: m_platformRequestUpdated (Requested by
1392         toyoshim on #webkit).
1393
1394         * NetworkProcess/HostRecord.h:
1395         * NetworkProcess/NetworkResourceLoadScheduler.h:
1396         * NetworkProcess/NetworkResourceLoader.h:
1397         (WebCore):
1398         * Shared/WebRenderLayer.cpp:
1399         * Shared/WebRenderObject.cpp:
1400         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1401         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1402         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1403         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1404         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1405         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1406         * WebProcess/Plugins/PluginView.cpp:
1407         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1408         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1409         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1410         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1411         * WebProcess/WebPage/mac/WebPageMac.mm:
1412         * WebProcess/WebProcess.cpp:
1413         * WebProcess/soup/WebProcessSoup.cpp:
1414
1415 2013-03-01  Andras Becsi  <andras.becsi@digia.com>
1416
1417         [Qt][WK2] Fix failing API tests after r143935
1418         https://bugs.webkit.org/show_bug.cgi?id=111086
1419
1420         Reviewed by Jocelyn Turcotte.
1421
1422         Convert a leftorver resume call to the new resumeAndUpdateContent() call
1423         in PageViewportControllerClientQt so that the notifications about zoom
1424         animation state changes reach the API tests.
1425
1426         * UIProcess/qt/PageViewportControllerClientQt.cpp:
1427         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
1428
1429 2013-03-01  Grzegorz Czajkowski  <g.czajkowski@samsung.com>, Mariusz Grzegorczyk <mariusz.g@samsung.com>
1430
1431         [WK2] Asynchronous spell checking implementation
1432         https://bugs.webkit.org/show_bug.cgi?id=109577
1433
1434         Reviewed by Enrica Casucci.
1435
1436         Associate the abstract 'WebCore::TextCheckingRequest' object with the unique identifier
1437         on WebProcess side. The request data from the 'TextCheckingRequest' are retrieved and
1438         passed to the UIProcess. The WK2 client (TextChecker{Gtk/Mac/Efl/Qt}.cpp) gets
1439         the 'TextCheckerCompletion' object with the request data and possibility to notify
1440         the WebProcess about the spelling results.
1441         Finally, the WebPage object calls on the proper 'TextCheckingRequest' object
1442         didSuccess/didCancel method to notify the WebCore about the spelling result.
1443
1444         * CMakeLists.txt:
1445         * GNUmakefile.list.am:
1446         Add 'TextCheckerCompletion.{h/cpp}' to the WebKit2 cmake based and
1447         WK2-Gtk+ builds.
1448
1449         * Scripts/webkit2/messages.py:
1450         (headers_for_type):
1451         Add exception for 'TextCheckingRequestData' class to properly find header
1452         file for it.
1453
1454         * Shared/WebCoreArgumentCoders.cpp:
1455         * Shared/WebCoreArgumentCoders.h:
1456         Teach 'ArgumentCoder' how to encode/decode 'TextCheckingRequestData' class.
1457
1458         * Target.pri:
1459         Add 'TextCheckerCompletion.{h/cpp}' to the WK2-Qt build.
1460
1461         * UIProcess/TextChecker.h:
1462         Add 'requestCheckingOfString' method to the TextChecker's interface.
1463
1464         * UIProcess/TextCheckerCompletion.cpp: Added.
1465         (WebKit::TextCheckerCompletion::create):
1466         (WebKit::TextCheckerCompletion::TextCheckerCompletion):
1467
1468         (WebKit::TextCheckerCompletion::spellDocumentTag):
1469         Return the WebPageProxy's spellDocumentTag as the client might be
1470         interested in from which page the request came.
1471
1472         (WebKit::TextCheckerCompletion::textCheckingRequestData):
1473         Allow to retrieve 'TextCheckingRequestData' object.
1474
1475         (WebKit::TextCheckerCompletion::didFinishCheckingText):
1476         (WebKit::TextCheckerCompletion::didCancelCheckingText):
1477         Notify the 'WebPageProxy' object that the given request has been
1478         handled or canceled.
1479
1480         * UIProcess/TextCheckerCompletion.h: Added.
1481         Introduce a new class for WK2 to retrieve the request data and
1482         call didFinishCheckingText/didCancelCheckingText.
1483
1484         * UIProcess/WebPageProxy.cpp:
1485         (WebKit::WebPageProxy::requestCheckingOfString):
1486         Create 'TextCheckerCompletion' object and pass it
1487         to the 'TextChecker::requestCheckingOfString' method.
1488
1489         (WebKit::WebPageProxy::didFinishCheckingText):
1490         (WebKit::WebPageProxy::didCancelCheckingText):
1491         Send the messages to WebProcess that the given request has been
1492         handled or canceled.
1493
1494         * UIProcess/WebPageProxy.h:
1495         (WebPageProxy):
1496         Add public declarations for 'didFinishCheckingText', 'didCancelCheckingText'.
1497         Add private declarations for 'requestCheckingOfString'.
1498         Move the 'spellDocumentTag()' method to to the public section to be
1499         accessible from 'TextCheckerCompletion' class.
1500
1501         * UIProcess/WebPageProxy.messages.in:
1502         A new entry for 'RequestCheckingOfString'.
1503
1504         * UIProcess/efl/TextCheckerEfl.cpp:
1505         (WebKit::TextChecker::requestCheckingOfString):
1506         (WebKit):
1507         * UIProcess/gtk/TextCheckerGtk.cpp:
1508         (WebKit::TextChecker::requestCheckingOfString):
1509         (WebKit):
1510         * UIProcess/mac/TextCheckerMac.mm:
1511         (WebKit::TextChecker::requestCheckingOfString):
1512         (WebKit):
1513         * UIProcess/qt/TextCheckerQt.cpp:
1514         (WebKit::TextChecker::requestCheckingOfString):
1515         (WebKit):
1516         Add dummy implementations for 'requestCheckingOfString'.
1517
1518         * WebKit2.xcodeproj/project.pbxproj:
1519         Add 'TextCheckerCompletion.{h/cpp} to Mac build.
1520
1521         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1522         (WebKit::generateTextCheckingRequestID):
1523         Helper function to generate the unique identifier for the abstract
1524         'TextCheckingRequest' object.
1525
1526         (WebKit::WebEditorClient::requestCheckingOfString):
1527         Associate 'TextCheckingRequest' with the unique identifier and add them
1528         to the map object.
1529         Get the request data and send it to the UIProcess.
1530
1531         * WebProcess/WebPage/WebPage.cpp:
1532         (WebKit::WebPage::addTextCheckingRequest):
1533         Add the identifier and the request to the map object.
1534
1535         (WebKit::WebPage::didFinishCheckingText):
1536         (WebKit::WebPage::didCancelCheckingText):
1537         Call didSucceed/didCancel on the 'TextCheckingRequest' to notify the WebCore
1538         about spellcheking results.
1539         Remove the request from the map object.
1540
1541         * WebProcess/WebPage/WebPage.h:
1542         Add declarations for 'addTextCheckingRequest', 'didFinishCheckingText' and
1543         'didCancelCheckingText.'
1544
1545         * WebProcess/WebPage/WebPage.messages.in:
1546         Add a new entry for DidFinishCheckingText, DidCancelCheckingText.
1547
1548 2013-02-28  Alexey Proskuryakov  <ap@apple.com>
1549
1550         Reduce amount of rebuilding when touching networking headers
1551         https://bugs.webkit.org/show_bug.cgi?id=111035
1552
1553         Reviewed by Eric Seidel.
1554
1555         Adding includes that are now necessary because WebCore headers don't have them
1556         any more.
1557
1558         * NetworkProcess/HostRecord.h:
1559         * NetworkProcess/NetworkResourceLoadScheduler.h:
1560         * NetworkProcess/NetworkResourceLoader.h:
1561         * Shared/WebRenderLayer.cpp:
1562         * Shared/WebRenderObject.cpp:
1563         * WebProcess/Geolocation/GeolocationPermissionRequestManager.cpp:
1564         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
1565         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1566         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1567         * WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp:
1568         * WebProcess/Plugins/PDF/PDFPlugin.mm:
1569         * WebProcess/Plugins/PluginView.cpp:
1570         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1571         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1572         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1573         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
1574         * WebProcess/WebPage/mac/WebPageMac.mm:
1575         * WebProcess/WebProcess.cpp:
1576         * WebProcess/soup/WebProcessSoup.cpp:
1577
1578 2013-02-28  Seokju Kwon  <seokju.kwon@gmail.com>
1579
1580         [WK2] Refactoring : Fix indentation and braces in WebInspectorClient.h|cpp
1581         https://bugs.webkit.org/show_bug.cgi?id=109925
1582
1583         Reviewed by Benjamin Poulain.
1584
1585         The contents of an outermost namespace block should not be indented.
1586         And One-line control clauses should not use braces.
1587
1588         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1589         (WebKit::WebInspectorClient::closeInspectorFrontend):
1590         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1591         (WebCore):
1592
1593 2013-02-28  Kiran Muppala  <cmuppala@apple.com>
1594
1595         Add a pre-bootstrap message for NetworkProcess XPC service
1596         https://bugs.webkit.org/show_bug.cgi?id=111127
1597
1598         Reviewed by Sam Weinig.
1599
1600         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1601         (WebKit::XPCServiceEventHandler): Hold on to the pre-bootstrap message.
1602         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
1603         (WebKit::XPCServiceEventHandler): Ditto.
1604         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1605         (WebKit::connectToService): Send a pre-bootstrap message for NetworkProcess
1606         XPC service.
1607
1608 2013-02-28  Conrad Shultz  <conrad_shultz@apple.com>
1609
1610         Need API to control page underlay color
1611         https://bugs.webkit.org/show_bug.cgi?id=110918
1612
1613         Reviewed by Simon Fraser.
1614
1615         * Shared/WebPageCreationParameters.cpp:
1616         (WebKit::WebPageCreationParameters::encode):
1617         Encode underlayColor.
1618         (WebKit::WebPageCreationParameters::decode):
1619         Decode underlayColor.
1620
1621         * Shared/WebPageCreationParameters.h:
1622         (WebPageCreationParameters):
1623         Add underlayColor member.
1624
1625         * UIProcess/API/mac/WKView.mm:
1626         (-[WKView underlayColor]):
1627         Accessor; retrieves the WebCore::Color from the WebPageProxy and converts it to an NSColor.
1628         (-[WKView setUnderlayColor:]):
1629         Mutator; converts the NSColor to a WebCore::Color and passes it to the WebPageProxy.
1630
1631         * UIProcess/API/mac/WKViewPrivate.h:
1632         Add underlayColor @property.
1633
1634         * UIProcess/WebPageProxy.cpp:
1635         (WebKit::WebPageProxy::setUnderlayColor):
1636         Mutator; dispatches SetUnderlayColor to WebPage.
1637         (WebKit::WebPageProxy::creationParameters):
1638         Set the parameters' underlayColor member appropriately.
1639
1640         * UIProcess/WebPageProxy.h:
1641         Declare new member functions and variable.
1642         (WebKit::WebPageProxy::underlayColor):
1643         Accessor.
1644
1645         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1646         (WebKit::WebChromeClient::underlayColor):
1647         Return the associated WebPage's underlayColor.
1648
1649         * WebProcess/WebCoreSupport/WebChromeClient.h:
1650         (WebChromeClient):
1651         Declare underlayColor().
1652
1653         * WebProcess/WebPage/WebPage.cpp:
1654         (WebKit::WebPage::WebPage):
1655         Apply any underlayColor that was supplied as part of the WebPageCreationParameters.
1656
1657         * WebProcess/WebPage/WebPage.h:
1658         Declare new member functions and variable.
1659         (WebKit::WebPage::underlayColor):
1660         Accessor.
1661
1662         * WebProcess/WebPage/WebPage.messages.in:
1663         Add SetUnderlayColor message.
1664
1665 2013-02-28  Anders Carlsson  <andersca@apple.com>
1666
1667         Add the notion of an allowed connection to SessionStorageNamespace
1668         https://bugs.webkit.org/show_bug.cgi?id=111122
1669
1670         Reviewed by Sam Weinig.
1671
1672         Group together each session storage namespace with an allowed connection.
1673         This will help ensure that rouge web processes will not be able to access session storage
1674         from pages in other processes.
1675         
1676         * UIProcess/Storage/StorageManager.cpp:
1677         (StorageManager::SessionStorageNamespace):
1678         (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
1679         (WebKit::StorageManager::SessionStorageNamespace::create):
1680         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1681         (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
1682         Add an m_allowedConnection member variable, as well as setters and getters.
1683
1684         (WebKit::StorageManager::createSessionStorageNamespace):
1685         Take an optional allowed connection. (It can be null if the process has not finished launching).
1686
1687         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
1688         New function to set the allowed connection for a session storage namespace.
1689
1690         (WebKit::StorageManager::createStorageArea):
1691         Add another FIXME.
1692
1693         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1694         Pass the connection to the SessionStorageNamespace constructor.
1695
1696         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
1697         Set the allowed connection.
1698
1699         * UIProcess/WebPageProxy.cpp:
1700         (WebKit::WebPageProxy::WebPageProxy):
1701         Pass the connection to createSessionStorageNamespace.
1702
1703         (WebKit::WebPageProxy::connectionWillOpen):
1704         Call setAllowedSessionStorageNamespaceConnection.
1705         
1706         (WebKit::WebPageProxy::connectionWillClose):
1707         Call setAllowedSessionStorageNamespaceConnection with a null connection.
1708
1709         * UIProcess/WebProcessProxy.cpp:
1710         (WebKit::WebProcessProxy::connectionWillOpen):
1711         Call connectionWillOpen on all pages.
1712
1713         (WebKit::WebProcessProxy::connectionWillClose):
1714         Call connectionWillClose on all pages.
1715
1716 2013-02-28  Kiran Muppala  <cmuppala@apple.com>
1717
1718         Add private API to disable WKView window occlusion detection
1719         https://bugs.webkit.org/show_bug.cgi?id=111107
1720
1721         Reviewed by Simon Fraser.
1722
1723         * UIProcess/API/mac/WKView.mm:
1724         (-[WKView _enableWindowOcclusionNotifications]): Check if occlusion
1725         detection is enabled before enabling notifications.
1726         (windowBecameOccluded): Ditto before changing window occlusion state.
1727         (-[WKView initWithFrame:contextRef:pageGroupRef:relatedToPage:]):
1728         Initialize occlusion detection enabled flag to "YES".
1729         (-[WKView windowOcclusionDetectionEnabled]):
1730         (-[WKView setWindowOcclusionDetectionEnabled:]):
1731         * UIProcess/API/mac/WKViewPrivate.h:
1732
1733 2013-02-28  Anders Carlsson  <andersca@apple.com>
1734
1735         Add the notion of an allowed connection to SessionStorageNamespace
1736         https://bugs.webkit.org/show_bug.cgi?id=111122
1737
1738         Reviewed by Sam Weinig.
1739
1740         Group together each session storage namespace with an allowed connection.
1741         This will help ensure that rouge web processes will not be able to access session storage
1742         from pages in other processes.
1743         
1744         * UIProcess/Storage/StorageManager.cpp:
1745         (StorageManager::SessionStorageNamespace):
1746         (WebKit::StorageManager::SessionStorageNamespace::allowedConnection):
1747         (WebKit::StorageManager::SessionStorageNamespace::create):
1748         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1749         (WebKit::StorageManager::SessionStorageNamespace::setAllowedConnection):
1750         Add an m_allowedConnection member variable, as well as setters and getters.
1751
1752         (WebKit::StorageManager::createSessionStorageNamespace):
1753         Take an optional allowed connection. (It can be null if the process has not finished launching).
1754
1755         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnection):
1756         New function to set the allowed connection for a session storage namespace.
1757
1758         (WebKit::StorageManager::createStorageArea):
1759         Add another FIXME.
1760
1761         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1762         Pass the connection to the SessionStorageNamespace constructor.
1763
1764         (WebKit::StorageManager::setAllowedSessionStorageNamespaceConnectionInternal):
1765         Set the allowed connection.
1766
1767         * UIProcess/WebPageProxy.cpp:
1768         (WebKit::WebPageProxy::WebPageProxy):
1769         Pass the connection to createSessionStorageNamespace.
1770
1771         (WebKit::WebPageProxy::connectionWillOpen):
1772         Call setAllowedSessionStorageNamespaceConnection.
1773         
1774         (WebKit::WebPageProxy::connectionWillClose):
1775         Call setAllowedSessionStorageNamespaceConnection with a null connection.
1776
1777         * UIProcess/WebProcessProxy.cpp:
1778         (WebKit::WebProcessProxy::connectionWillOpen):
1779         Call connectionWillOpen on all pages.
1780
1781         (WebKit::WebProcessProxy::connectionWillClose):
1782         Call connectionWillClose on all pages.
1783
1784 2013-02-28  Anders Carlsson  <andersca@apple.com>
1785
1786         Implement more StorageAreaProxy member functions
1787         https://bugs.webkit.org/show_bug.cgi?id=111103
1788
1789         Reviewed by Sam Weinig.
1790
1791         * Shared/SecurityOriginData.cpp:
1792         (WebKit::SecurityOriginData::securityOrigin):
1793         * Shared/SecurityOriginData.h:
1794         Add helper to create a WebCore::SecurityOrigin from a SecurityOriginData object.
1795
1796         * WebProcess/Storage/StorageAreaProxy.cpp:
1797         (WebKit::StorageAreaProxy::key):
1798         Fill the storage map and call through to StorageMap::key.
1799
1800         (WebKit::StorageAreaProxy::contains):
1801         Fill the storage map and call through to StorageMap::contains.
1802
1803         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
1804         Return 0; this matches StorageAreaImpl.
1805
1806 2013-02-28  Tim Horton  <timothy_horton@apple.com>
1807
1808         PDFPlugin: PDF orientation isn't respected when printing or print-previewing
1809         https://bugs.webkit.org/show_bug.cgi?id=110925
1810         <rdar://problem/13008621>
1811
1812         Reviewed by Alexey Proskuryakov.
1813
1814         * WebProcess/WebPage/mac/WebPageMac.mm:
1815         (WebKit::drawPDFPage): Teach drawPDFPage about PDFPage's rotation property, and use it
1816         to swap the PDF's cropbox. Painting now matches PDFViewController's historical behavior.
1817
1818 2013-02-28  Sam Weinig  <sam@webkit.org>
1819
1820         Don't install unused XPCServices on Lion
1821         <rdar://problem/13264712>
1822
1823         Rubber-stamped by Anders Carlsson
1824
1825         * Configurations/BaseXPCService.xcconfig:
1826
1827 2013-02-28  David Kilzer  <ddkilzer@apple.com>
1828
1829         BUILD FIX (r144221): SetSmartInsertDeleteEnabled should be wrapped in PLATFORM(MAC)
1830
1831         * WebProcess/WebPage/WebPage.messages.in: Move
1832         SetSmartInsertDeleteEnabled from USE(APPKIT) to PLATFORM(MAC).
1833
1834 2013-02-27  Csaba Osztrogonác  <ossy@webkit.org>
1835
1836         [WK2] One more unreviewed buildfix for EFL, GTK and Qt after r144218.
1837
1838         * CMakeLists.txt:
1839         * GNUmakefile.list.am:
1840         * Target.pri:
1841         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1842         (WebKit::StorageNamespaceProxy::copy):
1843
1844 2013-02-27  Zan Dobersek  <zdobersek@igalia.com>
1845
1846         Unreviewed (speculative) build fixes for EFL, GTK and Qt after r144218.
1847
1848         * CMakeLists.txt:
1849         * DerivedSources.pri:
1850         * GNUmakefile.list.am:
1851         * Target.pri:
1852
1853 2013-02-27  John Bauman  <jbauman@chromium.org>
1854
1855         Plugin in iframe may not display
1856         https://bugs.webkit.org/show_bug.cgi?id=109879
1857
1858         Reviewed by Simon Fraser.
1859
1860         Update geometry when cliprect changes.
1861
1862         * WebProcess/Plugins/PluginView.cpp:
1863         (WebKit::PluginView::clipRectChanged):
1864         * WebProcess/Plugins/PluginView.h:
1865
1866 2013-02-27  Jer Noble  <jer.noble@apple.com>
1867
1868         REGRESSION (48533): Full-frame plugins stopped working (download instead of loading the plugin)
1869         https://bugs.webkit.org/show_bug.cgi?id=111003
1870
1871         Reviewed by Anders Carlsson.
1872
1873         Also query the Page's pluginData when determining whether a given MIME type can be shown.
1874
1875         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1876         (WKBundlePageCanShowMIMEType):
1877         * WebProcess/WebPage/WebPage.cpp:
1878         (WebKit::WebPage::canShowMIMEType):
1879         * WebProcess/WebPage/WebPage.h:
1880
1881 2013-02-27  Manuel Rego Casasnovas  <rego@igalia.com>
1882
1883         Add smartInsertDeleteEnabled setting to WebCore::Page
1884         https://bugs.webkit.org/show_bug.cgi?id=107840
1885
1886         Reviewed by Ryosuke Niwa.
1887
1888         * Shared/WebPageCreationParameters.cpp:
1889         (WebKit::WebPageCreationParameters::encode):
1890         (WebKit::WebPageCreationParameters::decode): Remove code related to
1891         isSmartInsertDeleteEnabled.
1892         * Shared/WebPageCreationParameters.h:
1893         (WebPageCreationParameters): Remove isSmartInsertDeleteEnabled.
1894         * Shared/WebPreferencesStore.h:
1895         (WebKit): Add macro for smartInsertDeleteEnabled setting.
1896         * UIProcess/API/C/WKPreferences.cpp:
1897         (WKPreferencesSetSmartInsertDeleteEnabled):
1898         (WKPreferencesGetSmartInsertDeleteEnabled): Implement methods using the
1899         new setting.
1900         * UIProcess/API/C/WKPreferencesPrivate.h: Add new methods headers.
1901         * UIProcess/WebPageProxy.cpp:
1902         (WebKit::WebPageProxy::initializeWebPage): Set smartInsertDeleteEnabled
1903         setting using m_isSmartInsertDeleteEnabled to keep initial value on Mac.
1904         (WebKit::WebPageProxy::creationParameters): Remove usage of
1905         parameters.isSmartInsertDeleteEnabled.
1906         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1907         (WebKit::WebEditorClient::smartInsertDeleteEnabled): Enable method for
1908         all platforms.
1909         * WebProcess/WebPage/WebPage.cpp:
1910         (WebKit::WebPage::WebPage): Remove m_isSmartInsertDeleteEnabled
1911         initialization.
1912         (WebKit::WebPage::updatePreferences): Set smartInsertDeleteEnabled
1913         setting.
1914         (WebKit::WebPage::isSmartInsertDeleteEnabled): Implement method using
1915         settings.
1916         (WebKit):
1917         (WebKit::WebPage::setSmartInsertDeleteEnabled): Implement method using
1918         settings.
1919         * WebProcess/WebPage/WebPage.h:
1920         (WebPage): Enable methods dealing with smartInsertDeleteEnabled for all
1921         platforms and remove m_isSmartInsertDeleteEnabled as it will be a
1922         setting.
1923
1924
1925 2013-02-27  Anders Carlsson  <andersca@apple.com>
1926
1927         More storage scaffolding
1928         https://bugs.webkit.org/show_bug.cgi?id=110997
1929
1930         Reviewed by Andreas Kling.
1931
1932         * DerivedSources.make:
1933         Add StorageAreaProxy.
1934         
1935         * UIProcess/Storage/StorageManager.cpp:
1936         (WebKit::StorageManager::setItem):
1937         Send back a DidSetItem message.
1938         
1939         * WebKit2.xcodeproj/project.pbxproj:
1940         Add generated files.
1941
1942         * WebProcess/Storage/StorageAreaProxy.cpp:
1943         (WebKit::StorageAreaProxy::StorageAreaProxy):
1944         Add the message receiver.
1945         
1946         (WebKit::StorageAreaProxy::~StorageAreaProxy):
1947         Remove the message receiver.
1948         
1949         (WebKit::StorageAreaProxy::didSetItem):
1950         add stub.
1951
1952         * WebProcess/Storage/StorageAreaProxy.h:
1953         (StorageAreaProxy):
1954         * WebProcess/Storage/StorageAreaProxy.messages.in: Added.
1955
1956 2013-02-27  Sam Weinig  <sam@webkit.org>
1957
1958         REGRESSION: Loading flash switches to discrete graphics, 100 MB on membuster
1959         <rdar://problem/13229828>
1960
1961         Reviewed by Dan Bernstein.
1962
1963         Due the change in CFBundleIdentifier, the WebProcess and PluginProcess were
1964         unnecessarily muxing (they used to be whitelisted by OpenGL) to the discrete
1965         GPU.
1966
1967         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1968         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist:
1969         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
1970         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
1971         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
1972         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
1973         Add NSSupportsAutomaticGraphicsSwitching YES.
1974
1975         * WebKit2.xcodeproj/project.pbxproj:
1976         Re-add the PluginService.32-64.Info.plist plist to the project file.
1977
1978 2013-02-26  Alexey Proskuryakov  <ap@apple.com>
1979
1980         Don't add a body to platform request until necessary
1981         https://bugs.webkit.org/show_bug.cgi?id=110900
1982
1983         Reviewed by Brady Eidson.
1984
1985         * NetworkProcess/NetworkResourceLoader.cpp:
1986         (WebKit::NetworkResourceLoader::willSendRequest): Restore body after IPC. There
1987         is no way for the client to change it.
1988
1989         * Shared/Downloads/mac/DownloadMac.mm:
1990         (WebKit::Download::start):
1991         (WebKit::Download::startWithHandle):
1992         Pass UpdateHTTPBody when passing a request to NSURLConnection.
1993
1994         * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::::encodePlatformData):
1995         Never serialize the request body. It's slow, and sometimes impossible, so just
1996         keeping things consistent.
1997
1998         * Shared/mac/WebURLRequestMac.mm: (WebKit::WebURLRequest::platformRequest):
1999         Pass DoNotUpdateHTTPBody, as we can't update it outside NetworkProcess.
2000
2001         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
2002         (WebKit::CustomProtocolManagerProxy::startLoading): Ditto.
2003
2004         * WebProcess/InjectedBundle/InjectedBundlePageResourceLoadClient.cpp:
2005         (WebKit::InjectedBundlePageResourceLoadClient::willSendRequestForFrame):
2006         Restore existing body after a client call..
2007
2008         * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::platformCanHandleRequest):
2009         Pass DoNotUpdateHTTPBody, as we can't update it outside NetworkProcess.
2010
2011 2013-02-27  Glenn Adams  <glenn@skynav.com>
2012
2013         Add ENABLE_CSS3_TEXT_LINE_BREAK flag.
2014         https://bugs.webkit.org/show_bug.cgi?id=110944
2015
2016         Reviewed by Dean Jackson.
2017
2018         * Configurations/FeatureDefines.xcconfig:
2019
2020 2013-02-27  Michael Brüning  <michael.bruning@digia.com>
2021
2022         [Qt][WK2] Replace use of WebPreferences with use of WKPrefences C API
2023         https://bugs.webkit.org/show_bug.cgi?id=108952
2024
2025         Reviewed by Simon Hausmann.
2026
2027         Signed off for WebKit2 by Benjamin Poulain.
2028
2029         This patch moves the view classes and preferences in the Qt API
2030         to use the C API for accessing and manipulating preferences as
2031         part of the cleanup and move towards using the C API as base for
2032         the Qt WebKit2 API.
2033
2034         Adds the function WebKit::adoptToQString for convenience when
2035         dealing with QString and copied String objects.
2036
2037         Removes the ScrollAnimatorEnabled options from QWebPreferences.
2038
2039         * UIProcess/API/cpp/qt/WKStringQt.cpp:
2040         (WebKit::adoptToQString):
2041         * UIProcess/API/cpp/qt/WKStringQt.h:
2042         (WebKit):
2043         * UIProcess/API/qt/qquickwebview.cpp:
2044         (QQuickWebViewPrivate::initialize):
2045         * UIProcess/API/qt/qwebpreferences.cpp:
2046         (QWebPreferencesPrivate::testAttribute):
2047         (QWebPreferencesPrivate::setAttribute):
2048         (QWebPreferencesPrivate::setFontFamily):
2049         (QWebPreferencesPrivate::fontFamily):
2050         (QWebPreferencesPrivate::setFontSize):
2051         (QWebPreferencesPrivate::fontSize):
2052         * UIProcess/API/qt/qwebpreferences_p.h:
2053         * UIProcess/API/qt/qwebpreferences_p_p.h:
2054
2055 2013-02-26  Anders Carlsson  <andersca@apple.com>
2056
2057         Implement StorageAreaProxy::getItem and StorageAreaProxy::setItem
2058         https://bugs.webkit.org/show_bug.cgi?id=110927
2059
2060         Reviewed by Sam Weinig.
2061
2062         * UIProcess/Storage/StorageManager.cpp:
2063         (WebKit::StorageManager::setItem):
2064         * UIProcess/Storage/StorageManager.h:
2065         Add empty stub.
2066         
2067         * UIProcess/Storage/StorageManager.messages.in:
2068         Add SetItem message.
2069
2070         * WebProcess/Storage/StorageAreaProxy.cpp:
2071         (WebKit::StorageAreaProxy::getItem):
2072         Fill the storage map and get the item from it.
2073
2074         (WebKit::StorageAreaProxy::setItem):
2075         Update the storage map and send a SetItem message to the UI process.
2076
2077 2013-02-26  Anders Carlsson  <andersca@apple.com>
2078
2079         StorageAreaProxy should hold on to a StorageMap and not a HashMap
2080         https://bugs.webkit.org/show_bug.cgi?id=110919
2081
2082         Reviewed by Jessie Berlin.
2083
2084         Create a storage map instead of a hash map.
2085
2086         * WebProcess/Storage/StorageAreaProxy.cpp:
2087         (WebKit::StorageAreaProxy::length):
2088         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
2089         * WebProcess/Storage/StorageAreaProxy.h:
2090         (WebCore):
2091         (StorageAreaProxy):
2092
2093 2013-02-26  Anders Carlsson  <andersca@apple.com>
2094
2095         Fix a copy/paste error in WebLoaderClient::didBlockInsecurePluginVersion
2096         https://bugs.webkit.org/show_bug.cgi?id=110914
2097         <rdar://problem/13297581>
2098
2099         Reviewed by Beth Dakin.
2100
2101         Pass kWKErrorCodeInsecurePlugInVersion to the pluginDidFail callback.
2102
2103         * UIProcess/WebLoaderClient.cpp:
2104         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2105
2106 2013-02-26  Jer Noble  <jer.noble@apple.com>
2107
2108         Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
2109
2110         * Configurations/FeatureDefines.xcconfig:
2111
2112 2013-02-26  Manuel Rego Casasnovas  <rego@igalia.com>
2113
2114         [WK2][GTK] REGRESSION (r143463): unit test failure in WebKit2APITests/TestContextMenu
2115         https://bugs.webkit.org/show_bug.cgi?id=110869
2116
2117         Reviewed by Martin Robinson.
2118
2119         Test was failing because of new media controls needs more space to be
2120         painted than just 10x10 pixels.
2121
2122         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
2123         (testContextMenuDefaultMenu): Modified test in order to give more space
2124         to the media controls.
2125
2126 2013-02-26  Dean Jackson  <dino@apple.com>
2127
2128         Draw intermediate snapshots if possible
2129         https://bugs.webkit.org/show_bug.cgi?id=110811
2130
2131         Reviewed by Simon Fraser.
2132
2133         After http://webkit.org/b/110495 we delayed snapshotting until we've
2134         received a nice image, but this made the page look like it is broken.
2135         We should draw any intermediate snapshots that we find, which might
2136         include content such as progress bars/spinners.
2137
2138         * WebProcess/Plugins/PluginView.cpp:
2139         (WebKit): Reinstate 60 attempts at snapshots before giving up.
2140         (WebKit::PluginView::isAcceleratedCompositingEnabled): We do not
2141         want accelerated compositing enabled when we are trying to capture
2142         snapshots.
2143
2144 2013-02-26  Andras Becsi  <andras.becsi@digia.com>
2145
2146         Remove nonexistent StringPairVector.h from Target.pri after r142839
2147
2148         Unreviewed gardening.
2149
2150         * Target.pri:
2151
2152 2013-02-26  Simon Hausmann  <simon.hausmann@digia.com>
2153
2154         Unreviewed trivial !ENABLE(NETSCAPE_PLUGIN_API) build fix
2155
2156         Add an intermediate pluginName string variable instead of
2157         accessing plugin.info outside the feature #ifdef.
2158
2159         * UIProcess/WebPageProxy.cpp:
2160         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
2161
2162 2013-02-25  Huang Dongsung  <luxtella@company100.net>
2163
2164         Coordinated Graphics: remove redundant update of non compositing layer.
2165         https://bugs.webkit.org/show_bug.cgi?id=110444
2166
2167         Reviewed by Noam Rosenthal.
2168
2169         Currently, we update non compositing layer when the page scrolled. However, it
2170         is not needed, because TiledBackingStore can scroll without tile update.
2171
2172         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2173         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
2174         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2175         (CoordinatedLayerTreeHost):
2176
2177 2013-02-25  Jer Noble  <jer.noble@apple.com>
2178
2179         REGRESSION(r143981): Crash in WebFrameLoaderClient::dispatchDidStartProvisionalLoad()
2180         https://bugs.webkit.org/show_bug.cgi?id=110848
2181
2182         Reviewed by Ryosuke Niwa.
2183
2184         NULL-check the result of document->documentElement().
2185
2186         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2187         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2188
2189 2013-02-25  Anders Carlsson  <andersca@apple.com>
2190
2191         Add a new unavailablePluginButtonClicked callback that takes a WKDictionary of plug-in information
2192         https://bugs.webkit.org/show_bug.cgi?id=110821
2193
2194         Reviewed by Beth Dakin.
2195
2196         * UIProcess/API/C/WKPage.cpp:
2197         (WKPageGetPluginInformationPluginspageAttributeURLKey):
2198         (WKPageGetPluginInformationPluginURLKey):
2199         Add two new API key getters.
2200         
2201         * UIProcess/API/C/WKPage.h:
2202         Add a new callback and deprecate the old callback.
2203         
2204         * UIProcess/WebLoaderClient.cpp:
2205         (WebKit::WebLoaderClient::didFailToInitializePlugin):
2206         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2207         (WebKit::WebLoaderClient::pluginLoadPolicy):
2208         Make the pluginInformationDictionary a static member function of WebPageProxy so it
2209         can be called from WebUIClient as well.
2210         
2211         * UIProcess/WebPageProxy.cpp:
2212         (WebKit::WebPageProxy::getPluginPath):
2213         Pass the bundle version as well.
2214
2215         (WebKit::WebPageProxy::pluginInformationPluginspageAttributeURLKey):
2216         (WebKit::WebPageProxy::pluginInformationPluginURLKey):
2217         Add two new keys.
2218
2219         (WebKit::WebPageProxy::pluginInformationDictionary):
2220         Handle more keys.
2221
2222         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
2223         Get the plug-in bundle identifier and version.
2224
2225         * UIProcess/WebPageProxy.messages.in:
2226         Pass along more information; the frame and page URLs.
2227
2228         * UIProcess/WebUIClient.cpp:
2229         (WebKit::WebUIClient::unavailablePluginButtonClicked):
2230         Call the new callback if it's supported.
2231
2232         * UIProcess/WebUIClient.h:
2233         (WebUIClient):
2234         * UIProcess/mac/WebInspectorProxyMac.mm:
2235         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2236         Update for API changes.
2237
2238         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2239         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
2240         Ensure that the pluginspage attribute is a valid URL.
2241
2242 2013-02-21  Jeffrey Pfau  <jpfau@apple.com>
2243
2244         Optionally partition cache to prevent using cache for tracking
2245         https://bugs.webkit.org/show_bug.cgi?id=110269
2246
2247         Reviewed by Maciej Stachowiak.
2248
2249         Update WKSI bindings and add feature defines.
2250
2251         * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
2252         * WebCoreSupport/WebSystemInterface.mm:
2253         (InitWebCoreSystemInterface):
2254
2255 2013-02-25  Jer Noble  <jer.noble@apple.com>
2256
2257         Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
2258         https://bugs.webkit.org/show_bug.cgi?id=110806
2259
2260         Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
2261
2262         Reviewed by Alexey Proskuryakov.
2263
2264         * Configurations/FeatureDefines.xcconfig:
2265
2266 2013-02-25  Jer Noble  <jer.noble@apple.com>
2267
2268         Full screen mode should not exit when application resigns active state.
2269         https://bugs.webkit.org/show_bug.cgi?id=106129
2270
2271         Reviewed by Darin Adler.
2272
2273         Now that full screen windows get their own full screen space, there is no reason to exit full
2274         screen mode when the application resigns active state. Instead, the windowserver will bring the
2275         space containing the newly active application to the foreground. The user can then swipe back
2276         to the full screen space (or use Mission Control) to get back to the full screen window.
2277
2278         * UIProcess/mac/WKFullScreenWindowController.mm:
2279         (-[WKFullScreenWindowController windowDidLoad]): Remove the applicationDidResignActive: notification from WKFullScreenWindowController.
2280
2281 2013-02-25  Jer Noble  <jer.noble@apple.com>
2282
2283         Safari shows empty window and paints webpage in full-screen background
2284         https://bugs.webkit.org/show_bug.cgi?id=103712
2285
2286         Reviewed by Darin Adler.
2287
2288         When canceling full screen mode due to a provisional load, exit normally instead of closing the
2289         full screen window controller. Additionally, to ensure full screen is cancelled when the enclosing
2290         frame around a full screen iframe is navigated, check to see if the navigating document contains
2291         a full screen element, rather than checking whether the document itself is full screen.
2292
2293         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2294         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
2295
2296 2013-02-25  Anders Carlsson  <andersca@apple.com>
2297
2298         Fix build.
2299
2300         * UIProcess/WebPageProxy.cpp:
2301         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
2302
2303 2013-02-25  Anders Carlsson  <andersca@apple.com>
2304
2305         Add a new pluginDidFail callback that takes a WKDictionary of plug-in information
2306         https://bugs.webkit.org/show_bug.cgi?id=110793
2307         <rdar://problem/13265303>
2308
2309         Reviewed by Sam Weinig.
2310
2311         Add a new pluginDidFail callback that takes a WKDictionaryRef and also pass in the
2312         frame and page URLs.
2313
2314         * UIProcess/API/C/WKPage.h:
2315         * UIProcess/WebLoaderClient.cpp:
2316         (WebKit::pluginInformationDictionary):
2317         (WebKit::WebLoaderClient::didFailToInitializePlugin):
2318         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
2319         (WebKit::WebLoaderClient::pluginLoadPolicy):
2320         * UIProcess/WebLoaderClient.h:
2321         * UIProcess/WebPageProxy.cpp:
2322         (WebKit::WebPageProxy::didFailToInitializePlugin):
2323         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
2324         * UIProcess/WebPageProxy.h:
2325         * UIProcess/WebPageProxy.messages.in:
2326         * WebProcess/Plugins/PluginView.cpp:
2327         (WebKit::PluginView::didFailToInitializePlugin):
2328         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2329         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
2330         * WebProcess/WebPage/WebPage.cpp:
2331         (WebKit::WebPage::createPlugin):
2332
2333 2013-02-25  Tim Horton  <timothy_horton@apple.com>
2334
2335         PDFPlugin: Tab between text annotations
2336         https://bugs.webkit.org/show_bug.cgi?id=106539
2337         <rdar://problem/12751789>
2338
2339         Reviewed by Darin Adler.
2340
2341         Use [PDFLayerController activateNextAnnotation:] to advance focus when the tab key is hit while inside a PDF form.
2342
2343         Also, a drive-by fix to make the lifetime of PDFPluginAnnotationEventListener's m_annotation pointer more explicit.
2344
2345         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add activateNextAnnotation: SPI.
2346         * WebProcess/Plugins/PDF/PDFPlugin.h:
2347         (PDFPlugin): Add focus(Next|Previous)Annotation.
2348         * WebProcess/Plugins/PDF/PDFPlugin.mm:
2349         (WebKit::PDFPlugin::focusNextAnnotation): Ask PDFLayerController to focus the next annotation.
2350         (WebKit::PDFPlugin::focusPreviousAnnotation): Ask PDFLayerController to focus the next annotation.
2351         * WebProcess/Plugins/PDF/PDFPluginAnnotation.h: Drive-by, initialize m_parent to 0.
2352         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::setAnnotation): Added.
2353         * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm:
2354         (WebKit::PDFPluginAnnotation::attach): Use eventNames() instead of string literals.
2355         (WebKit::PDFPluginAnnotation::~PDFPluginAnnotation): Clear the event listener's reference to its annotation.
2356         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::handleEvent): Null-check the event listener's annotation.
2357         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h:
2358         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotation): Create our PDFPluginTextAnnotationEventListener.
2359         (PDFPluginTextAnnotationEventListener): Added an event listener (for keydown events in form fields).
2360         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::create):
2361         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::setTextAnnotation):
2362         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::PDFPluginTextAnnotationEventListener):
2363         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
2364         (WebKit::PDFPluginTextAnnotation::~PDFPluginTextAnnotation): Unregister our keydown event listener.
2365         (WebKit::PDFPluginTextAnnotation::createAnnotationElement): Register our keydown event listener.
2366         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::handleEvent): Ask PDFPlugin to focus
2367         the next/previous annotation when the tab key is pressed (Shift-Tab goes backwards).
2368
2369 2013-02-25  Alexey Proskuryakov  <ap@apple.com>
2370
2371         <rdar://problem/12976385> Remove rule to silence attempts to create the ~/Library/Caches/com.apple.WebKit2.WebProcessService directory
2372
2373         Reviewed by Anders Carlsson.
2374
2375         * WebProcess/com.apple.WebProcess.sb.in: Remove the obsolete rule. We no longer
2376         have a "WebProcessService".
2377
2378 2013-02-25  Andras Becsi  <andras.becsi@digia.com>
2379
2380         [Qt][WK2] Remove unneeded method didResumeContent from PageViewportController clients
2381         https://bugs.webkit.org/show_bug.cgi?id=110751
2382
2383         Reviewed by Jocelyn Turcotte.
2384
2385         This is a clean-up in the PageViewportController clients that removes leftover
2386         code from previous design that is partially unused and unnecessary, to simplify
2387         the interaction between PageViewportController and clients.
2388
2389         * UIProcess/PageViewportController.cpp:
2390         (WebKit::PageViewportController::resumeContent):
2391         * UIProcess/PageViewportControllerClient.h:
2392         (PageViewportControllerClient):
2393         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2394         * UIProcess/efl/PageViewportControllerClientEfl.h:
2395         (PageViewportControllerClientEfl):
2396         * UIProcess/qt/PageViewportControllerClientQt.cpp:
2397         (WebKit::PageViewportControllerClientQt::animateContentRectVisible):
2398         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
2399         (WebKit::PageViewportControllerClientQt::resumeAndUpdateContent):
2400         (WebKit::PageViewportControllerClientQt::pinchGestureCancelled):
2401         * UIProcess/qt/PageViewportControllerClientQt.h:
2402         (PageViewportControllerClientQt):
2403
2404 2013-02-25  Andreas Kling  <akling@apple.com>
2405
2406         Reduce amount of code that includes StylePropertySet.h
2407         <http://webkit.org/b/101149>
2408
2409         Reviewed by Antti Koivisto.
2410
2411         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
2412
2413 2013-02-24  Andreas Kling  <akling@apple.com>
2414
2415         Reduce include graph of JSDOMBinding.h
2416         <http://webkit.org/b/110709>
2417
2418         Reviewed by Antti Koivisto.
2419
2420         * Shared/WebRenderObject.cpp:
2421         (WebKit::WebRenderObject::WebRenderObject):
2422         * WebProcess/Storage/StorageAreaProxy.cpp:
2423
2424 2013-02-22  Sam Weinig  <sam@webkit.org>
2425
2426         Add temporary work around for 32-bit plugins not working in production builds as XPCServices
2427         https://bugs.webkit.org/show_bug.cgi?id=110680
2428         <rdar://problem/13236883>
2429
2430         Reviewed by Anders Carlsson.
2431
2432         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
2433         (WebKit::shouldUseXPC):
2434         Temporarily don't use XPC for plug-ins for Safari while we figure out why the
2435         32-bit XPCService is being built universal.
2436
2437 2013-02-22  Tim Horton  <timothy_horton@apple.com>
2438
2439         [WK2] The root and page overlay layers should be the size of the view, not the content
2440         https://bugs.webkit.org/show_bug.cgi?id=110660
2441         <rdar://problem/13096456>
2442
2443         Reviewed by Simon Fraser.
2444
2445         Use the view size for the size of the root and page overlay layers.
2446         For one, we never update these layers' sizes when the content size changes, causing size mismatches.
2447         In addition, there's no reason an overlay shouldn't be able to draw outside of the bounds of the content.
2448
2449         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2450         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
2451         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
2452
2453 2013-02-22  Anders Carlsson  <andersca@apple.com>
2454
2455         pluginLoadStrategy should take a WKDictionaryRef for extensibility
2456         https://bugs.webkit.org/show_bug.cgi?id=110656
2457         <rdar://problem/13265303>
2458
2459         Reviewed by Jessie Berlin.
2460
2461         Change pluginLoadStrategy to take a WKDictionaryRef instead of a number of parameters;
2462         this lets us add more plug-in information if needed. Also add the page URL and rename documentURL to frameURL.
2463
2464         * UIProcess/API/C/WKPage.cpp:
2465         (WKPageGetPluginInformationBundleIdentifierKey):
2466         (WKPageGetPluginInformationBundleVersionKey):
2467         (WKPageGetPluginInformationDisplayNameKey):
2468         (WKPageGetPluginInformationFrameURLKey):
2469         (WKPageGetPluginInformationMIMETypeKey):
2470         (WKPageGetPluginInformationPageURLKey):
2471         * UIProcess/API/C/WKPage.h:
2472         * UIProcess/WebLoaderClient.cpp:
2473         (WebKit):
2474         (WebKit::WebLoaderClient::pluginLoadPolicy):
2475         * UIProcess/WebLoaderClient.h:
2476         (WebLoaderClient):
2477         * UIProcess/WebPageProxy.cpp:
2478         (WebKit::WebPageProxy::getPluginPath):
2479         (WebKit::WebPageProxy::pluginInformationBundleIdentifierKey):
2480         (WebKit):
2481         (WebKit::WebPageProxy::pluginInformationBundleVersionKey):
2482         (WebKit::WebPageProxy::pluginInformationDisplayNameKey):
2483         (WebKit::WebPageProxy::pluginInformationFrameURLKey):
2484         (WebKit::WebPageProxy::pluginInformationMIMETypeKey):
2485         (WebKit::WebPageProxy::pluginInformationPageURLKey):
2486         * UIProcess/WebPageProxy.h:
2487         (WebPageProxy):
2488         * UIProcess/WebPageProxy.messages.in:
2489         * WebProcess/WebPage/WebPage.cpp:
2490         (WebKit::WebPage::createPlugin):
2491         (WebKit::WebPage::canPluginHandleResponse):
2492
2493 2013-02-22  Anders Carlsson  <andersca@apple.com>
2494
2495         Move pluginLoadPolicy to the page loader client
2496         https://bugs.webkit.org/show_bug.cgi?id=110635
2497         <rdar://problem/13265303>
2498         
2499         Reviewed by Sam Weinig.
2500
2501         Move the pluginLoadPolicy callback to the page loader client where it belongs.
2502
2503         * UIProcess/API/C/WKPage.h:
2504         * UIProcess/WebLoaderClient.cpp:
2505         (WebKit::toWKPluginLoadPolicy):
2506         (WebKit):
2507         (WebKit::toPluginModuleLoadPolicy):
2508         (WebKit::WebLoaderClient::pluginLoadPolicy):
2509         * UIProcess/WebLoaderClient.h:
2510         (WebLoaderClient):
2511         * UIProcess/WebPageProxy.cpp:
2512         (WebKit::WebPageProxy::getPluginPath):
2513         * UIProcess/WebUIClient.cpp:
2514         (WebKit):
2515         * UIProcess/WebUIClient.h:
2516         (WebUIClient):
2517         * UIProcess/mac/WebInspectorProxyMac.mm:
2518         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2519
2520 2013-02-21  Jer Noble  <jer.noble@apple.com>
2521
2522         Two video contollers appear after exiting the fullscreen video when using menubar to exit.
2523         https://bugs.webkit.org/show_bug.cgi?id=110506
2524
2525         Reviewed by Eric Carlson.
2526
2527         When we are notified that the fullscreen window is about to exit fullscreen mode unrequested,
2528         call requestExitFullScreen(), as that will result in Document::webkitExitFullScreen() correctly
2529         tearing down the fullscreen state.
2530
2531         * UIProcess/mac/WKFullScreenWindowController.mm:
2532         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
2533
2534 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2535
2536         Yet another unreviewed buildfix after r143714.
2537
2538         * UIProcess/efl/WebView.cpp:
2539         (WebKit::WebView::paintToCairoSurface):
2540
2541 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2542
2543         Unreviewed preventive buildfix after my last commit.
2544
2545         * UIProcess/API/efl/EwkView.cpp:
2546         * UIProcess/efl/WebView.cpp:
2547
2548 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
2549
2550         [CoordGfx] Minor cleanup in CoordinatedGraphicsScene::paintToGraphicsContext
2551         https://bugs.webkit.org/show_bug.cgi?id=109824
2552
2553         Reviewed by Andreas Kling.
2554
2555         Avoid ugly ifdefs by using PlatformGraphicsContext.
2556
2557         * UIProcess/API/efl/EwkView.cpp:
2558         (EwkView::displayTimerFired):
2559
2560 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2561
2562         [WK2][EFL] Remove declaration of non-existent functions from EwkView
2563         https://bugs.webkit.org/show_bug.cgi?id=110572
2564
2565         Reviewed by Kenneth Rohde Christiansen.
2566
2567         Removed declarations of non-existent EwkView::paintToCurrentGLContext() and
2568         EwkView::paintToCairoSurface(cairo_surface_t*) that were accidentally
2569         left at r143699.
2570
2571         * UIProcess/API/efl/EwkView.h:
2572         (EwkView):
2573
2574 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2575
2576         [WK2][EFL] Clean up PageViewportControllerClientEfl class
2577         https://bugs.webkit.org/show_bug.cgi?id=110438
2578
2579         Reviewed by Andreas Kling.
2580
2581         Cleaned up PageViewportControllerClientEfl class from unused methods
2582         and class members, eliminated access to WK2 internals from this class.
2583
2584         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2585         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2586         * UIProcess/efl/PageViewportControllerClientEfl.h:
2587         (WebKit::PageViewportControllerClientEfl::~PageViewportControllerClientEfl):
2588         (PageViewportControllerClientEfl):
2589         * UIProcess/efl/WebView.cpp:
2590         (WebKit::WebView::WebView):
2591         (WebKit::WebView::updateViewportSize):
2592
2593 2013-02-22  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
2594
2595         [WK2][EFL][GTK][Qt] Add context menu item tags for C API
2596         https://bugs.webkit.org/show_bug.cgi?id=109815
2597
2598         Reviewed by Anders Carlsson.
2599
2600         This patch adds context menu item tags used by EFL, GTK and Qt ports, defined in
2601         WebCore to WK2 C API.
2602
2603         * Shared/API/c/WKContextMenuItemTypes.h:
2604         * Shared/API/c/WKSharedAPICast.h:
2605         (WebKit::toAPI):
2606         (WebKit::toImpl):
2607
2608 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2609
2610         [WK2][EFL] Move AC code from EwkView to WebView
2611         https://bugs.webkit.org/show_bug.cgi?id=110216
2612
2613         Reviewed by Anders Carlsson.
2614
2615         Accelerated compositing code is moved from EwkView to WebView.
2616         Added new WKView API to be used from EwkView instead of direct accessing
2617         to coordinated graphics scene.
2618
2619         * UIProcess/API/C/efl/WKView.cpp:
2620         (WKViewSetUserViewportTranslation):
2621         (WKViewUserViewportToContents):
2622         (WKViewPaintToCurrentGLContext):
2623         (WKViewPaintToCairoSurface):
2624         * UIProcess/API/C/efl/WKView.h:
2625
2626             Added WKView API functions.
2627
2628         * UIProcess/API/efl/EwkView.cpp:
2629         (EwkView::EwkView):
2630         (EwkView::displayTimerFired):
2631         (EwkView::feedTouchEvent):
2632         (EwkView::createGLSurface):
2633         (EwkView::handleEvasObjectCalculate):
2634         (EwkView::handleEwkViewMouseWheel):
2635         (EwkView::handleEwkViewMouseDown):
2636         (EwkView::handleEwkViewMouseUp):
2637         (EwkView::handleEwkViewMouseMove):
2638         * UIProcess/API/efl/EwkView.h:
2639         (EwkView):
2640
2641             Using new WKView API.
2642
2643         * UIProcess/efl/WebView.cpp:
2644         (WebKit::WebView::initialize):
2645         (WebKit):
2646         (WebKit::WebView::paintToCurrentGLContext):
2647         (WebKit::WebView::paintToCairoSurface):
2648         (WebKit::WebView::userViewportToContents):
2649         (WebKit::WebView::transformFromScene):
2650         (WebKit::WebView::transformToScene):
2651         (WebKit::WebView::coordinatedGraphicsScene):
2652         (WebKit::WebView::enterAcceleratedCompositingMode):
2653         (WebKit::WebView::exitAcceleratedCompositingMode):
2654         * UIProcess/efl/WebView.h:
2655         (WebCore):
2656         (WebKit::WebView::setUserViewportTranslation):
2657         (WebView):
2658
2659             Added WebView methods to support new WKView API.
2660
2661 2013-02-21  Dima Gorbik  <dgorbik@apple.com>
2662
2663         QuickTime plugin doesn't load when accelerated compositing is disabled
2664         https://bugs.webkit.org/show_bug.cgi?id=110534
2665
2666         Reviewed by Anders Carlsson.
2667
2668         We shouldn't disable accelerated compositing for plugins, because
2669         plugins such as QuickTime rely on this and will try to set other drawing
2670         models that we don't support.
2671
2672         * WebProcess/Plugins/PluginView.cpp:
2673         (WebKit::PluginView::isAcceleratedCompositingEnabled):
2674
2675 2013-02-21  Dean Jackson  <dino@apple.com>
2676
2677         Plug-in snapshotting code always accepts first snapshot
2678         https://bugs.webkit.org/show_bug.cgi?id=110495
2679
2680         Reviewed by Tim Horton.
2681
2682         When we detect a plugin that can be snapshotted we start capturing
2683         images until we find one that we believe isn't blank, or we timeout.
2684         I introduced a regression recently where we swap renderers as
2685         soon as the snapshot arrives, whether or not is is blank.
2686
2687         The fix was to have the embedder (currently only WK2) be the one
2688         who tells the HTMLPlugInElement to start displaying snapshots.
2689
2690         * WebProcess/Plugins/PluginView.cpp:
2691         (WebKit::PluginView::pluginSnapshotTimerFired): When we find a
2692         snapshot that we like, tell the HTMLPlugInElement to move to
2693         the snapshot view.
2694
2695 2013-02-21  Carlos Garcia Campos  <cgarcia@igalia.com>
2696
2697         Unreviewed. Fix make distcheck.
2698
2699         * GNUmakefile.am: Add -DBUILDING_WEBKIT flags to introspection
2700         scanner.
2701         * GNUmakefile.list.am: Add missing header to compilation and
2702         remove one that no longer exists.
2703
2704 2013-02-21  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2705
2706         [WK2][EFL] Move PageViewportController and PageViewportControllerClientEfl out from WebView
2707         https://bugs.webkit.org/show_bug.cgi?id=110345
2708
2709         Reviewed by Andreas Kling.
2710
2711         WebView does not need to know about both PageViewportController and 
2712         PageViewportControllerClientEfl. Considering the fact that PageViewportController
2713         will stop being WK2 internal and will be based on WK2 C API, it 
2714         should be owned by EwkView rather than WebView.
2715
2716         This patch is also a preparation for WKViewClient API extension to cover all
2717         the places where PageViewportController and PageViewportControllerClientEfl
2718         are accessed directly from WebView at the moment.
2719
2720         * UIProcess/API/efl/EwkView.cpp:
2721         (EwkView::EwkView):
2722         * UIProcess/API/efl/EwkView.h:
2723         (WebKit):
2724         (EwkView::pageViewportControllerClient):
2725         (EwkView::pageViewportController):
2726         (EwkView):
2727         * UIProcess/efl/WebView.cpp:
2728         (WebKit::WebView::didCommitLoad):
2729         (WebKit::WebView::updateViewportSize):
2730         (WebKit::WebView::didChangeContentsSize):
2731         (WebKit::WebView::didChangeViewportProperties):
2732         (WebKit::WebView::pageDidRequestScroll):
2733         (WebKit::WebView::didRenderFrame):
2734         (WebKit::WebView::pageTransitionViewportReady):
2735         * UIProcess/efl/WebView.h:
2736         (WebView):
2737
2738 2013-02-20  Tim Horton  <timothy_horton@apple.com>
2739
2740         Provide WKView SPI to defer telling the WebPageProxy and WebProcess about changes in the hosting window
2741         https://bugs.webkit.org/show_bug.cgi?id=110415
2742         <rdar://problem/13095405>
2743
2744         Reviewed by Simon Fraser.
2745
2746         * UIProcess/API/mac/WKView.mm: Add _viewInWindowChangesDeferredCount and _viewInWindowChangeWasDeferred to WKViewData.
2747         (-[WKView viewDidMoveToWindow]): If we're deferring window changes, don't include the ViewIsInWindow flag
2748         when sending viewStateDidChange. Instead, save the fact that we want to do that later aside.
2749         (-[WKView beginDeferringViewInWindowChanges]):
2750         (-[WKView endDeferringViewInWindowChanges]): Straightforward begin/end pair. When we exit the last pair and
2751         have a pending window change, let the WebPageProxy know. WebPageProxy will do the check to ensure that
2752         the in-window state has actually changed.
2753         (-[WKView isDeferringViewInWindowChanges]):
2754         * UIProcess/API/mac/WKViewPrivate.h: 
2755
2756 2013-02-20  Kiran Muppala  <cmuppala@apple.com>
2757
2758         Disable window occlusion notifications for App Store on Mac.
2759         https://bugs.webkit.org/show_bug.cgi?id=110417
2760
2761         Reviewed by Simon Fraser.
2762
2763         Temporary fix to workaround issues with window occlusion notifications
2764         in App Store.
2765
2766         * UIProcess/API/mac/WKView.mm:
2767         (+[WKView _registerWindowOcclusionNotificationHandlers]): Return early
2768         if the main bundle identifier matches that of App Store.
2769
2770 2013-02-20  Mark Rowe  <mrowe@apple.com>
2771
2772         <https://webkit.org/b/110410> Specify the plug-in process / service entitlements via the Xcode configuration.
2773
2774         This is the modern mechanism for applying entitlements to production builds,
2775         and it simplifies the maintenance of entitlements going forward. It also allows
2776         us to fix the new XPC PluginServices to have the same entitlements as PluginProcess.
2777
2778         Reviewed by Alexey Proskuryakov.
2779
2780         * Configurations/Base.xcconfig: Ad-hoc sign all WebKit2 components.
2781         * Configurations/PluginProcess.xcconfig: Specify the entitlements to use.
2782         * Configurations/PluginService.32.xcconfig: Ditto.
2783         * Configurations/PluginService.64.xcconfig: Ditto.
2784         * Configurations/PluginService.Development.xcconfig: Ditto.
2785         * Configurations/PluginService.entitlements: Renamed from Source/WebKit2/PluginProcess/mac/PluginProcess.entitlements.
2786         Move the entitlements in to the Configurations directory to make them easier to find.
2787         * PluginProcess/mac/add-entitlements.sh: Removed. In my testing the dependency issue mentioned
2788         in the script is not an issue with current versions of Xcode. If we see it again we can come
2789         up with a workaround that doesn't involve performing the signing via a script phase.
2790         * WebKit2.xcodeproj/project.pbxproj:
2791
2792 2013-02-20  Mark Rowe  <mrowe@apple.com>
2793
2794         <https://webkit.org/b/110409> Remove duplication between 32- and 64-bit PluginService plists.
2795
2796         Reviewed by Dan Bernstein.
2797
2798         The only difference between the plists was the CFBundleIdentifier. Since the values are the
2799         same as the product name, we can just use the value of the PRODUCT_NAME configuration setting.
2800
2801         * Configurations/PluginService.32.xcconfig:
2802         * Configurations/PluginService.64.xcconfig:
2803         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist: Renamed from Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist.
2804         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist: Removed.
2805
2806 2013-02-20  Simon Fraser  <simon.fraser@apple.com>
2807
2808         Zoomed, slow-scrolling pages keep recreating tiles when scrolled
2809         https://bugs.webkit.org/show_bug.cgi?id=110379
2810
2811         Reviewed by Tim Horton.
2812
2813         Make the visible rect and exposed rects passed through
2814         the drawing area to the tile cache FloatRects instead of IntRects.
2815
2816         * UIProcess/API/mac/WKView.mm:
2817         (-[WKView setFrameSize:]):
2818         (-[WKView _updateWindowAndViewFrames]):
2819         (-[WKView enableFrameSizeUpdates]):
2820         (-[WKView setMinimumWidthForAutoLayout:]):
2821         * UIProcess/WebPageProxy.h:
2822         * UIProcess/mac/WebPageProxyMac.mm:
2823         (WebKit::WebPageProxy::viewExposedRectChanged):
2824         * WebProcess/WebPage/DrawingArea.h:
2825         (WebKit::DrawingArea::setExposedRect):
2826         * WebProcess/WebPage/WebPage.cpp:
2827         (WebKit::WebPage::viewExposedRectChanged):
2828         * WebProcess/WebPage/WebPage.h:
2829         * WebProcess/WebPage/WebPage.messages.in:
2830         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2831         (TiledCoreAnimationDrawingArea):
2832         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2833         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect):
2834
2835 2013-02-20  Dirk Schulze  <krit@webkit.org>
2836
2837         Enable CANVAS_PATH flag
2838         https://bugs.webkit.org/show_bug.cgi?id=108508
2839
2840         Reviewed by Simon Fraser.
2841
2842         Enable CANVAS_PATH flag on trunk.
2843
2844         * Configurations/FeatureDefines.xcconfig:
2845
2846 2013-02-20  Laszlo Gombos  <l.gombos@samsung.com>
2847
2848         Remove unnecessary includes for Platform.h from headers
2849         https://bugs.webkit.org/show_bug.cgi?id=110300
2850
2851         Reviewed by Alexey Proskuryakov.
2852
2853         wtf/Platform.h only need to be included in a few places directly    
2854         as it is included in config.h. Remove the unnecessay duplicate as    
2855         it can be confusing.
2856
2857         * Shared/PrintInfo.h:
2858
2859 2013-02-20  Huang Dongsung  <luxtella@company100.net>
2860
2861         [WK2] Remove m_viewportSize in WebPage.
2862         https://bugs.webkit.org/show_bug.cgi?id=110311
2863
2864         Reviewed by Anders Carlsson.
2865
2866         EFL and Qt use m_viewSize as a contents size while Apple use it as a viewport
2867         size, so EFL and Qt introduced m_viewportSize to make WebPage know a viewport
2868         size.
2869
2870         EFL and Qt use m_viewSize as a contents size because the size of non compositing
2871         layer is contents size, and EFL and Qt mark whole non compositing layer as dirty
2872         using m_viewSize. Bug 110299 (http://webkit.org/b/110299) changes that it is not
2873         necessary to know m_viewSize when marking whole non compositing layer as dirty.
2874         So we can make EFL and Qt use m_viewSize as a viewport size also.
2875
2876         This patch removes m_viewportSize and related methods to increase readability.
2877
2878         * UIProcess/API/qt/raw/qrawwebview.cpp:
2879         (QRawWebView::setSize):
2880         * UIProcess/PageViewportController.cpp:
2881         (WebKit::PageViewportController::didChangeViewportSize):
2882         * UIProcess/WebPageProxy.cpp:
2883         (WebKit):
2884         * UIProcess/WebPageProxy.h:
2885         (WebPageProxy):
2886         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2887         (WebKit::WebChromeClient::pageRect):
2888         (WebKit::WebChromeClient::contentsSizeChanged):
2889         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2890         (WebKit::DrawingAreaImpl::updateBackingStoreState):
2891         * WebProcess/WebPage/WebPage.cpp:
2892         (WebKit::WebPage::setSize):
2893         (WebKit::WebPage::sendViewportAttributesChanged):
2894         * WebProcess/WebPage/WebPage.h:
2895         (WebPage):
2896         * WebProcess/WebPage/WebPage.messages.in:
2897
2898 2013-02-20  Huang Dongsung  <luxtella@company100.net>
2899
2900         [WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
2901         https://bugs.webkit.org/show_bug.cgi?id=110299
2902
2903         Reviewed by Anders Carlsson.
2904
2905         Currently, we call setNeedsDisplay with the size of WebPage to mark whole
2906         backing store as dirty. However, the size of non compositing layer can be
2907         inconsistent with the size of WebPage. For example, in Coordinated Graphics, the
2908         size of non compositing layer is contents size.
2909
2910         So, WebPage should not assume the size of non compositing layer, and should just
2911         call setNeedsDisplay when marking whole layer as dirty.
2912
2913         In addition, this patch renames from setNeedsDisplay() with a rect argument to
2914         setNeedsDisplayInRect(), which matches to the terms of GraphicsLayer.
2915
2916         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2917         (WebKit::WebChromeClient::invalidateContentsAndRootView):
2918         (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
2919         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2920         (WebKit::WebFrameLoaderClient::restoreViewState):
2921         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2922         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplay):
2923         (WebKit):
2924         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplayInRect):
2925         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
2926         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2927         (CoordinatedLayerTreeHost):
2928         * WebProcess/WebPage/DrawingArea.h:
2929         (DrawingArea):
2930         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2931         (WebKit::DrawingAreaImpl::setNeedsDisplay):
2932         (WebKit):
2933         (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
2934         (WebKit::DrawingAreaImpl::scroll):
2935         (WebKit::DrawingAreaImpl::forceRepaint):
2936         (WebKit::DrawingAreaImpl::didUninstallPageOverlay):
2937         (WebKit::DrawingAreaImpl::setPageOverlayNeedsDisplay):
2938         (WebKit::DrawingAreaImpl::resumePainting):
2939         * WebProcess/WebPage/DrawingAreaImpl.h:
2940         (DrawingAreaImpl):
2941         * WebProcess/WebPage/LayerTreeHost.h:
2942         (LayerTreeHost):
2943         * WebProcess/WebPage/WebPage.cpp:
2944         (WebKit::WebPage::setSize):
2945         (WebKit::WebPage::setDrawsBackground):
2946         (WebKit::WebPage::setDrawsTransparentBackground):
2947         (WebKit::WebPage::resumeActiveDOMObjectsAndAnimations):
2948         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2949         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplay):
2950         (WebKit):
2951         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplayInRect):
2952         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
2953         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2954         (LayerTreeHostGtk):
2955         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
2956         (LayerTreeHostMac):
2957         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
2958         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplay):
2959         (WebKit):
2960         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplayInRect):
2961         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
2962         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
2963         (RemoteLayerTreeDrawingArea):
2964         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
2965         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplay):
2966         (WebKit):
2967         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplayInRect):
2968         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2969         (TiledCoreAnimationDrawingArea):
2970         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2971         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
2972         (WebKit):
2973         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplayInRect):
2974
2975 2013-02-20  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2976
2977         [EFL][WK2] Port EwkPopupMenuItem to the C API
2978         https://bugs.webkit.org/show_bug.cgi?id=108798
2979
2980         Reviewed by Kenneth Rohde Christiansen.
2981
2982         Make use of the new WKPopupItem C API inside EwkPopupMenuItem to remove
2983         dependency on internal WebPopupItem type. Eina shared string members
2984         are now lazily initialized to make the object cheaper to construct.
2985
2986         * UIProcess/API/efl/ewk_popup_menu.cpp:
2987         (EwkPopupMenu::EwkPopupMenu):
2988         * UIProcess/API/efl/ewk_popup_menu_item.cpp:
2989         (EwkPopupMenuItem::EwkPopupMenuItem):
2990         (EwkPopupMenuItem::type):
2991         (EwkPopupMenuItem::textDirection):
2992         (EwkPopupMenuItem::text):
2993         (EwkPopupMenuItem::tooltipText):
2994         (EwkPopupMenuItem::accessibilityText):
2995         (EwkPopupMenuItem::hasTextDirectionOverride):
2996         (EwkPopupMenuItem::isEnabled):
2997         (EwkPopupMenuItem::isLabel):
2998         (EwkPopupMenuItem::isSelected):
2999         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
3000         (EwkPopupMenuItem::create):
3001         (EwkPopupMenuItem):
3002
3003 2013-02-19  Tim Horton  <timothy_horton@apple.com>
3004
3005         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
3006         https://bugs.webkit.org/show_bug.cgi?id=110261
3007         <rdar://problem/13196122>
3008
3009         Reviewed by Simon Fraser.
3010
3011         * WebProcess/WebPage/WebPage.cpp:
3012         (WebKit::WebPage::setIsInWindow):
3013         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
3014
3015 2013-02-19  Conrad Shultz  <conrad_shultz@apple.com>
3016
3017         Allow UI clients to handle vertical wheel events.
3018         https://bugs.webkit.org/show_bug.cgi?id=110006
3019
3020         Reviewed by Tim Horton.
3021
3022         Add API to allow clients to selectively control rubber-banding at vertical page extrema.
3023
3024         * UIProcess/API/C/WKPage.cpp:
3025         (WKPageRubberBandsAtBottom):
3026         Proxy for the corresponding function in WebCore::Page.
3027         (WKPageSetRubberBandsAtBottom):
3028         Ditto.
3029         (WKPageRubberBandsAtTop):
3030         Ditto.
3031         (WKPageSetRubberBandsAtTop):
3032         Ditto.
3033
3034         * UIProcess/API/C/WKPage.h:
3035         Declare new API.
3036
3037         * UIProcess/WebPageProxy.cpp:
3038         (WebKit::WebPageProxy::WebPageProxy):
3039         Initialize new member variables.
3040         (WebKit::WebPageProxy::setRubberBandsAtBottom):
3041         New function; dispatches a matching message to the WebKit::WebPage.
3042         (WebKit::WebPageProxy::setRubberBandsAtTop):
3043         Ditto.
3044
3045         * UIProcess/WebPageProxy.h:
3046         (WebPageProxy):
3047         Declare new API.
3048         (WebKit::WebPageProxy::rubberBandsAtBottom):
3049         New accessor function.
3050         (WebKit::WebPageProxy::rubberBandsAtTop):
3051         Ditto.
3052
3053         * WebProcess/WebPage/WebPage.cpp:
3054         (WebKit::WebPage::setRubberBandsAtBottom):
3055         New function; call the matching function on the associated WebCore::Page.
3056         (WebKit::WebPage::setRubberBandsAtTop):
3057         Ditto.
3058
3059         * WebProcess/WebPage/WebPage.h:
3060         (WebPage):
3061         Declare new rubber-banding API.
3062
3063         * WebProcess/WebPage/WebPage.messages.in:
3064         Declare new rubber-banding API.
3065
3066 2013-02-19  Anders Carlsson  <andersca@apple.com>
3067
3068         StorageAreaProxy should know its quota
3069         https://bugs.webkit.org/show_bug.cgi?id=110268
3070
3071         Reviewed by Sam Weinig.
3072
3073         Begin stubbing out StorageAreaProxy::setItem and add some quota member variables.
3074
3075         * WebProcess/Storage/StorageAreaProxy.cpp:
3076         (WebKit::StorageAreaProxy::StorageAreaProxy):
3077         (WebKit::StorageAreaProxy::setItem):
3078         * WebProcess/Storage/StorageAreaProxy.h:
3079         (StorageAreaProxy):
3080         * WebProcess/Storage/StorageNamespaceProxy.cpp:
3081         (WebKit::StorageNamespaceProxy::createSessionStorageNamespace):
3082         (WebKit::StorageNamespaceProxy::StorageNamespaceProxy):
3083         * WebProcess/Storage/StorageNamespaceProxy.h:
3084         (WebKit::StorageNamespaceProxy::quota):
3085         (StorageNamespaceProxy):
3086
3087 2013-02-19  Alexey Proskuryakov  <ap@apple.com>
3088
3089         <rdar://problem/13239119> NetworkProcess generates timeout spindump logs
3090
3091         Reviewed by Mark Rowe.
3092
3093         Don't keep a window server connection in processes that don't need it, and don't
3094         run an NSApplication run loop.
3095
3096         * Shared/ChildProcess.h:
3097         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::shutdownWindowServerConnection):
3098         Added a function to shut down connections, and to make sure we don't get one in the future.
3099
3100         * NetworkProcess/mac/NetworkProcessMac.mm:
3101         (WebKit::NetworkProcess::initializeProcessName):
3102         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm:
3103         (WebKit::OfflineStorageProcess::initializeProcessName):
3104         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
3105         (WebKit::SharedWorkerProcess::platformInitializeSharedWorkerProcess): Also removed
3106         some unused includes and forward declarations.
3107
3108 2013-02-18  Alexey Proskuryakov  <ap@apple.com>
3109
3110         [WK2] Cannot load documents with blob urls
3111         https://bugs.webkit.org/show_bug.cgi?id=110160
3112
3113         Reviewed by Sam Weinig.
3114
3115         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::canHandleRequest):
3116         Added knowledge about blobs.
3117
3118 2013-02-19  Carlos Garcia Campos  <cgarcia@igalia.com>
3119
3120         [GTK] Move the API to get TLS certificate from WebKitURIResponse to WebKitWebView
3121         https://bugs.webkit.org/show_bug.cgi?id=110190
3122
3123         Reviewed by Anders Carlsson.
3124
3125         Add webkit_web_view_get_tls_info() and remove
3126         webkit_uri_response_get_https_status(). This way I can be sure
3127         that when called after load has been committed the certificate
3128         will be available. It also makes the API easier to use.
3129
3130         * UIProcess/API/gtk/WebKitURIResponse.cpp:
3131         * UIProcess/API/gtk/WebKitURIResponse.h:
3132         * UIProcess/API/gtk/WebKitURIResponsePrivate.h:
3133         * UIProcess/API/gtk/WebKitWebView.cpp:
3134         (webkitWebViewLoadChanged):
3135         (mainResourceResponseChangedCallback):
3136         (webkit_web_view_get_tls_info):
3137         * UIProcess/API/gtk/WebKitWebView.h:
3138         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
3139         * UIProcess/API/gtk/tests/TestSSL.cpp:
3140
3141 2013-02-19  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
3142
3143         [WK2][EFL] Eliminate access to WK2 C++ internals from ewk_view functions
3144         https://bugs.webkit.org/show_bug.cgi?id=109794
3145
3146         Reviewed by Anders Carlsson.
3147
3148         * UIProcess/API/C/efl/WKView.cpp:
3149         (WKViewSetShowsAsSource):
3150         (WKViewGetShowsAsSource):
3151
3152             Added new WKView API to wrap WebPageProxy::setMainFrameInViewSourceMode()
3153             and WebPageProxy::mainFrameInViewSourceMode() calls.
3154
3155         (WKViewExitFullScreen):
3156
3157             Added new WKView API to wrap WebFullScreenManagerProxy::exitFullScreen()
3158             calls.
3159
3160         * UIProcess/API/C/efl/WKView.h:
3161         * UIProcess/API/efl/EwkView.cpp:
3162         (EwkView::feedTouchEvent):
3163
3164             Added feedTouchEvent() method so that: at first ewk_view_feed_touch_event()
3165             is not invoked from EwkView class, secondly ewk_view_feed_touch_event() does
3166             not access WebPage instance directly.
3167
3168         (EwkView::feedTouchEvents):
3169         * UIProcess/API/efl/EwkView.h:
3170         (EwkView):
3171         * UIProcess/API/efl/ewk_view.cpp:
3172         (ewk_view_feed_touch_event):
3173         (ewk_view_pagination_mode_set):
3174         (ewk_view_pagination_mode_get):
3175         (ewk_view_fullscreen_exit):
3176         (ewkViewPageContentsCallback):
3177         (ewk_view_page_contents_get):
3178         (ewk_view_source_mode_set):
3179         (ewk_view_source_mode_get):
3180
3181             Those are now using exported C API.
3182
3183         * UIProcess/efl/WebView.cpp:
3184         (WebKit::WebView::setShowsAsSource):
3185         (WebKit):
3186         (WebKit::WebView::showsAsSource):
3187         (WebKit::WebView::exitFullScreen):
3188         * UIProcess/efl/WebView.h:
3189         (WebView):
3190
3191             Added WebView methods to support added WKView API.
3192
3193 2013-02-19  Andras Becsi  <andras.becsi@digia.com>
3194
3195         [Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
3196         https://bugs.webkit.org/show_bug.cgi?id=110220
3197
3198         Reviewed by Allan Sandfeld Jensen.
3199
3200         If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
3201         no node was found for a given point, we hit ASSERT(node).
3202         We should only assert for a valid node if a zoomable area was found.
3203
3204         * WebProcess/WebPage/WebPage.cpp:
3205         (WebKit::WebPage::findZoomableAreaForPoint):
3206
3207 2013-02-19  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3208
3209         Regression(r143273): Caused a lot of tests to time out
3210         https://bugs.webkit.org/show_bug.cgi?id=110212
3211
3212         Reviewed by Anders Carlsson.
3213
3214         StorageManager::destroySessionStorageNamespace() and StorageManager::cloneSessionStorageNamespace()
3215         should call their respective "*Internal" equivalent instead of calling themselves. This lead to
3216         a lot of time outs on our build bots.
3217
3218         * UIProcess/Storage/StorageManager.cpp:
3219         (WebKit::StorageManager::destroySessionStorageNamespace):
3220         (WebKit::StorageManager::cloneSessionStorageNamespace):
3221
3222 2013-02-18  Carlos Garcia Campos  <cgarcia@igalia.com>
3223
3224         [GTK] Remove webkit_web_view_get_subresources from WebKit2 GTK+ API
3225         https://bugs.webkit.org/show_bug.cgi?id=110125
3226
3227         Reviewed by Anders Carlsson.
3228
3229         This API is currently implemented caching all resources in the
3230         WebView which causes some problems in documents loading resources
3231         indefinitely. This API was used in WebKit1 mainly to implement
3232         webkit_web_view_save(), but we already have such API in
3233         WebKit2.
3234
3235         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
3236         (didReceiveWebViewMessageFromInjectedBundle):
3237         * UIProcess/API/gtk/WebKitWebView.cpp:
3238         (_WebKitWebViewPrivate):
3239         (webkitWebViewLoadChanged):
3240         * UIProcess/API/gtk/WebKitWebView.h:
3241         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
3242         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
3243         * UIProcess/API/gtk/tests/TestResources.cpp:
3244         (testWebViewResources):
3245         (testWebResourceGetData):
3246
3247 2013-02-18  Christophe Dumez  <dchris@gmail.com>
3248
3249         [WK2][EFL] Stop using internal C++ API in ewk_error
3250         https://bugs.webkit.org/show_bug.cgi?id=108796
3251
3252         Reviewed by Benjamin Poulain.
3253
3254         Stop using internal C++ API in ewk_error and use C API instead of avoid
3255         violating API layering.
3256
3257         * UIProcess/API/efl/ewk_error.cpp:
3258         (EwkError::domain):
3259         (EwkError::isCancellation):
3260         (ewk_error_type_get):
3261         * UIProcess/API/efl/ewk_error_private.h:
3262         (EwkError):
3263
3264 2013-02-18  Simon Fraser  <simon.fraser@apple.com>
3265
3266         Clean up the boolean argument to visibleContentRect
3267         https://bugs.webkit.org/show_bug.cgi?id=110167
3268
3269         Reviewed by Simon Fraser.
3270         
3271         Replace the boolean argument to visibleContentRect() with
3272         an enum.
3273
3274         * WebProcess/WebPage/WebFrame.cpp:
3275         (WebKit::WebFrame::visibleContentBounds):
3276         (WebKit::WebFrame::visibleContentBoundsExcludingScrollbars):
3277
3278 2013-02-18  Anders Carlsson  <andersca@apple.com>
3279
3280         Add a DefaultHash for RefPtr<SecurityOrigin>
3281         https://bugs.webkit.org/show_bug.cgi?id=110170
3282
3283         Reviewed by Andreas Kling.
3284
3285         Remove all explicit uses of SecurityOriginHash.
3286
3287         * UIProcess/Storage/StorageManager.cpp:
3288         (StorageManager::SessionStorageNamespace):
3289         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
3290         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
3291         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3292         (WebKit::InjectedBundle::originsWithApplicationCache):
3293         * WebProcess/Notifications/NotificationPermissionRequestManager.h:
3294         Include SecurityOriginHash.h. This fixes a bug where m_originToIDMap used pointer-equality
3295         for looking up security origins.
3296
3297         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
3298         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
3299         This can just take a const reference.
3300
3301         * WebProcess/ResourceCache/WebResourceCacheManager.h:
3302
3303 2013-02-18  Anders Carlsson  <andersca@apple.com>
3304
3305         Begin stubbing out session storage classes
3306         https://bugs.webkit.org/show_bug.cgi?id=110168
3307
3308         Reviewed by Andreas Kling.
3309
3310         * UIProcess/Storage/StorageManager.cpp:
3311         (StorageManager::StorageArea):
3312         (WebKit):
3313         (WebKit::StorageManager::StorageArea::create):
3314         (WebKit::StorageManager::StorageArea::StorageArea):
3315         (WebKit::StorageManager::StorageArea::~StorageArea):
3316         (StorageManager::SessionStorageNamespace):
3317         (WebKit::StorageManager::SessionStorageNamespace::isEmpty):
3318         (WebKit::StorageManager::SessionStorageNamespace::create):
3319         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
3320         (WebKit::StorageManager::SessionStorageNamespace::~SessionStorageNamespace):
3321         (WebKit::StorageManager::SessionStorageNamespace::cloneTo):
3322         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
3323         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
3324         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
3325         * UIProcess/Storage/StorageManager.h:
3326         (StorageManager):
3327
3328 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3329
3330         [EFL][WK2] Add C API for popup menu and popup item
3331         https://bugs.webkit.org/show_bug.cgi?id=109083
3332
3333         Reviewed by Anders Carlsson.
3334
3335         WK2 EFL delegates display of the popup menu to the browser which causes
3336         us to have a strong interdependency between internal C++ classes
3337         (WebPopupMenuProxyEfl, WebPopupItem) and our EFL API implementation
3338         (EwkView, EwkPopupMenu, EwkPopupMenuItem).
3339
3340         Since we want to remove this interdependency, this patch introduces a
3341         for WebPopupMenuProxyEfl (WKPopupMenuListener) and for WebPopupItem
3342         (WKPopupItem). It also introduces a WKPage client with callbacks for
3343         showPopupMenu and hidePopupMenu.
3344
3345         Note that the popup menu functionality is covered by ewk_popup_menu API
3346         tests and no functionality is lost.
3347
3348         * PlatformEfl.cmake: Add new files to EFL CMake config.
3349         * Shared/API/c/efl/WKBaseEfl.h: Add typedefs for WKPopupItemRef and
3350         WKPopupMenuListenerRef.
3351         * Shared/APIObject.h: Add new TypePopupMenuItem APIObject type for EFL
3352         platform.
3353         * UIProcess/API/C/efl/WKAPICastEfl.h: Add mapping for WKPopupItemRef
3354         and WKPopupMenuListenerRef API types.
3355         (WebKit):
3356         (WebKit::toAPI):
3357         * UIProcess/API/C/efl/WKPageEfl.cpp: Added.
3358         (WKPageSetUIPopupMenuClient): Add new C API to set the UI Popup Menu
3359         client on the page.
3360         * UIProcess/API/C/efl/WKPageEfl.h: Added.
3361         * UIProcess/API/C/efl/WKPopupItem.cpp: Added. Add C API for WebPopupItem.
3362         (WKPopupItemGetType):
3363         (WKPopupItemGetTextDirection):
3364         (WKPopupItemHasTextDirectionOverride):
3365         (WKPopupItemCopyText):
3366         (WKPopupItemCopyToolTipText):
3367         (WKPopupItemCopyAccessibilityText):
3368         (WKPopupItemIsEnabled):
3369         (WKPopupItemIsLabel):
3370         (WKPopupItemIsSelected):
3371         * UIProcess/API/C/efl/WKPopupItem.h: Added.
3372         * UIProcess/API/C/efl/WKPopupMenuListener.cpp: Added. Add C API for
3373         WebPopupMenuListenerEfl (formerly WebPopupMenuProxyEfl) so that the
3374         client can report which popup menu item was selected.
3375         (WKPopupMenuListenerSetSelection):
3376         * UIProcess/API/C/efl/WKPopupMenuListener.h: Added.
3377         * UIProcess/API/efl/EwkView.cpp: Remove dependency on internal C++ types
3378         (WebPopupMenuProxyEfl and WebPopupItem) and use C API types instead.
3379         (EwkView::requestPopupMenu):
3380         * UIProcess/API/efl/EwkView.h:
3381         (WebKit):
3382         (EwkView):
3383         * UIProcess/API/efl/ewk_popup_menu.cpp: Use C API for Popup menu.
3384         (EwkPopupMenu::EwkPopupMenu):
3385         (EwkPopupMenu::setSelectedIndex):
3386         * UIProcess/API/efl/ewk_popup_menu_private.h:
3387         (EwkPopupMenu::create):
3388         (EwkPopupMenu):
3389         * UIProcess/WebPageProxy.cpp: Use WKPageUIPopupMenuClient to show / hide
3390         the popup menu on EFL port instead of asking the WebPopupMenuProxy.
3391         (WebKit::WebPageProxy::close):
3392         (WebKit::WebPageProxy::showPopupMenu):
3393         (WebKit::WebPageProxy::hidePopupMenu):
3394         * UIProcess/WebPageProxy.h: Add new WKPageUIPopupMenuClient member and
3395         corresponding initialization method.
3396         (WebPageProxy):
3397         * UIProcess/WebPopupMenuProxy.h: Disable showPopupMenu / hidePopupMenu
3398         virtual methods on EFL port since we go via WKPageUIPopupMenuClient
3399         for this now.
3400         (WebPopupMenuProxy):
3401         * UIProcess/efl/PageUIClientEfl.cpp:
3402         (WebKit::PageUIClientEfl::PageUIClientEfl): Handle WKPageUIPopupMenuClient
3403         callbacks and call corresponding EwkView methods. Previously, the EwkView
3404         methods were called by the internal WebPageProxyEfl class which is no
3405         longer needed.
3406         (WebKit::PageUIClientEfl::showPopupMenu):
3407         (WebKit):
3408         (WebKit::PageUIClientEfl::hidePopupMenu):
3409         * UIProcess/efl/PageUIClientEfl.h:
3410         (PageUIClientEfl):
3411         * UIProcess/efl/WebPageProxyEfl.cpp:
3412         (WebKit::WebPageProxy::initializeUIPopupMenuClient):
3413         (WebKit):
3414         * UIProcess/efl/WebPopupItemEfl.cpp: Added. Add APIObject wrapper for
3415         WebPopupItem so that we can use it in WKPageUIPopupMenuClient.
3416         (WebKit):
3417         (WebKit::WebPopupItemEfl::WebPopupItemEfl):
3418         (WebKit::WebPopupItemEfl::~WebPopupItemEfl):
3419         * UIProcess/efl/WebPopupItemEfl.h: Added.
3420         (WebKit):
3421         (WebPopupItemEfl):
3422         (WebKit::WebPopupItemEfl::create):
3423         (WebKit::WebPopupItemEfl::data):
3424         (WebKit::WebPopupItemEfl::itemType):
3425         (WebKit::WebPopupItemEfl::text):
3426         (WebKit::WebPopupItemEfl::textDirection):
3427         (WebKit::WebPopupItemEfl::hasTextDirectionOverride):
3428         (WebKit::WebPopupItemEfl::toolTipText):
3429         (WebKit::WebPopupItemEfl::accessibilityText):
3430         (WebKit::WebPopupItemEfl::isEnabled):
3431         (WebKit::WebPopupItemEfl::isLabel):
3432         (WebKit::WebPopupItemEfl::isSelected):
3433         (WebKit::WebPopupItemEfl::type):
3434         * UIProcess/efl/WebPopupMenuListenerEfl.cpp: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.cpp.
3435         Use WebPopupMenuListenerEfl name instead of WebPopupMenuProxyEfl since
3436         it more accurately represents its functionality now.
3437         (WebKit):
3438         (WebKit::WebPopupMenuListenerEfl::WebPopupMenuListenerEfl):
3439         (WebKit::WebPopupMenuListenerEfl::valueChanged):
3440         * UIProcess/efl/WebPopupMenuListenerEfl.h: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.h.
3441         (WebKit):
3442         (WebPopupMenuListenerEfl):
3443         (WebKit::WebPopupMenuListenerEfl::create):
3444         * UIProcess/efl/WebUIPopupMenuClient.cpp: Added.
3445         (WebUIPopupMenuClient::showPopupMenu):
3446         (WebUIPopupMenuClient::hidePopupMenu):
3447         * UIProcess/efl/WebUIPopupMenuClient.h: Added.
3448         (WebKit):
3449         (WebUIPopupMenuClient):
3450         * UIProcess/efl/WebView.cpp:
3451         (WebKit::WebView::createPopupMenuProxy):
3452
3453 2013-02-18  Anders Carlsson  <andersca@apple.com>
3454
3455         Add StorageManager member functions for keeping track of session storage namespaces
3456         https://bugs.webkit.org/show_bug.cgi?id=110163
3457
3458         Reviewed by Andreas Kling.
3459
3460         * UIProcess/Storage/StorageManager.cpp:
3461         (WebKit::StorageManager::createSessionStorageNamespace):
3462         (WebKit):
3463         (WebKit::StorageManager::destroySessionStorageNamespace):
3464         (WebKit::StorageManager::cloneSessionStorageNamespace):
3465         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
3466         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
3467         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
3468         * UIProcess/Storage/StorageManager.h:
3469         (StorageManager):
3470         * UIProcess/WebContext.h:
3471         (WebKit::WebContext::storageManager):
3472         (WebContext):
3473         * UIProcess/WebPageProxy.cpp:
3474         (WebKit::WebPageProxy::WebPageProxy):
3475         (WebKit::WebPageProxy::close):
3476         (WebKit::WebPageProxy::createNewPage):
3477
3478 2013-02-18  Anders Carlsson  <andersca@apple.com>
3479
3480         StorageManager message handlers should take the connection
3481         https://bugs.webkit.org/show_bug.cgi?id=110151
3482
3483         Reviewed by Andreas Kling.
3484
3485         * Platform/CoreIPC/HandleMessage.h:
3486         (CoreIPC):
3487         (CoreIPC::callMemberFunction):
3488         (CoreIPC::handleMessage):
3489         * Scripts/webkit2/messages.py:
3490         (sync_message_statement):
3491         (generate_message_handler):
3492         * UIProcess/Storage/StorageManager.cpp:
3493         (WebKit::StorageManager::createStorageArea):
3494         (WebKit::StorageManager::destroyStorageArea):
3495         (WebKit::StorageManager::getValues):
3496         * UIProcess/Storage/StorageManager.h:
3497         (StorageManager):
3498         * UIProcess/Storage/StorageManager.messages.in:
3499
3500 2013-02-18  Christophe Dumez  <christophe.dumez@intel.com>
3501
3502         [EFL][WK2] Use C API inside ewk_security_origin
3503         https://bugs.webkit.org/show_bug.cgi?id=107923
3504
3505         Reviewed by Alexey Proskuryakov.
3506
3507         Use C API inside ewk_security_origin instead of accessing
3508         directly internal C++ classes, to avoid breaking API
3509         layering.
3510
3511         * UIProcess/API/efl/EwkView.cpp:
3512         (EwkView::enterFullScreen):
3513         * UIProcess/API/efl/ewk_security_origin.cpp:
3514         (EwkSecurityOrigin::EwkSecurityOrigin):
3515         * UIProcess/API/efl/ewk_security_origin_private.h:
3516         (EwkSecurityOrigin::create):
3517         (EwkSecurityOrigin):
3518
3519 2013-01-04  Jer Noble  <jer.noble@apple.com>
3520
3521         pinch-zooming webpage messes up full-screening of embedded video
3522         https://bugs.webkit.org/show_bug.cgi?id=106115
3523
3524         Reviewed by Maciej Stachowiak.
3525
3526         Reset the page scale when entering full screen, and reset to the original scale when exiting.
3527
3528         * UIProcess/mac/WKFullScreenWindowController.h:
3529         * UIProcess/mac/WKFullScreenWindowController.mm:
3530         (-[WKFullScreenWindowController enterFullScreen:]):
3531         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
3532
3533 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3534
3535         [EFL][WK2] Disable failing API tests
3536         https://bugs.webkit.org/show_bug.cgi?id=110081
3537
3538         Reviewed by Kenneth Rohde Christiansen.
3539
3540         Disable EWK2UnitTestBase.ewk_view_scale API test as it is failing.
3541
3542         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
3543         (TEST_F):
3544
3545 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
3546
3547         [Qt][WK2] Support WK2 API tests
3548         https://bugs.webkit.org/show_bug.cgi?id=109843
3549
3550         Reviewed by Jocelyn Turcotte.
3551
3552         * UIProcess/API/qt/qquickwebview_p.h:
3553         (TestWebKitAPI):
3554
3555 2013-02-18  Andras Becsi  <andras.becsi@digia.com>
3556
3557         [Qt][WK2] Changing WebView.contentY and WebView.contentX does not redraw content
3558         https://bugs.webkit.org/show_bug.cgi?id=108337
3559
3560         Reviewed by Jocelyn Turcotte.
3561
3562         We should not ignore content position changes unless pinch zoom or bounce-back
3563         animation is ongoing.
3564         This way we notify the web process about visible rect changes if the contentX
3565         and contentY properties are used to programmatically scroll the content from QML.
3566         One important usecase for this is when implementing scrollbars.
3567
3568         * UIProcess/qt/PageViewportControllerClientQt.cpp:
3569         (WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt):
3570         (WebKit::PageViewportControllerClientQt::flickMoveStarted):
3571         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
3572         (WebKit::PageViewportControllerClientQt::pageItemPositionChanged):
3573         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
3574         (WebKit::PageViewportControllerClientQt::pinchGestureStarted):
3575
3576 2013-02-18  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
3577
3578         [WK2][EFL] Unified text checker implementation
3579         https://bugs.webkit.org/show_bug.cgi?id=107682
3580
3581         Reviewed by Anders Carlsson.
3582
3583         * UIProcess/efl/TextCheckerEfl.cpp:
3584         (WebKit):
3585         (WebKit::nextWordOffset):
3586         Helper function to determine the word offset to do not call
3587         client's checkSpellingOfString for the word separators.
3588
3589         (WebKit::TextChecker::checkTextOfParagraph):
3590         Allow to check spelling for multiple words,
3591         their misspelling location and length are saved to the vector.
3592
3593         * WebProcess/WebCoreSupport/WebEditorClient.h:
3594         Add UNIFIED_TEXT_CHECKING guard to checkTextOfParagraph.
3595
3596         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
3597         (WebKit):
3598         (WebKit::WebEditorClient::checkTextOfParagraph):
3599         As spelling implementation is exposed to UIProcess,
3600         send a meesage to UIProcess to call TextChecker::checkTextOfParagraph.
3601
3602 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3603
3604         [EFL][WK2] Refactor Ewk_Favicon code and stop relying on internal C++ API
3605         https://bugs.webkit.org/show_bug.cgi?id=108598
3606
3607         Reviewed by Kenneth Rohde Christiansen.
3608
3609         Refactor the Ewk_Favicon code so that it no longer relies on internal
3610         C++ API and so that it is based solely on the C API. The API is changed
3611         a little as well so that the Favicon URL is no longer exposed to the
3612         client. Also the client is now only notified of icon changes once the
3613         favicon data is actually available.
3614
3615         The API is covered by existing API tests and by MiniBrowser which are
3616         both updated accordingly in this patch.
3617
3618         * UIProcess/API/efl/EwkView.cpp:
3619         (EwkView::informURLChange):
3620         (EwkView::createFavicon):
3621         (EwkView::onFaviconChanged):
3622         * UIProcess/API/efl/EwkView.h:
3623         (EwkView):
3624         * UIProcess/API/efl/EwkViewCallbacks.h:
3625         * UIProcess/API/efl/ewk_favicon_database.cpp:
3626         Client are now notified of favicon changes only when the favicon data
3627         becomes available and make API to retrieve a favicon synchronous. NULL
3628         is returned if the favicon data is not available.
3629
3630         (EwkFaviconDatabase::EwkFaviconDatabase):
3631         (EwkFaviconDatabase::getIconSurfaceSynchronously):
3632         (EwkFaviconDatabase::iconDataReadyForPageURL):
3633         (ewk_favicon_database_icon_get):
3634         * UIProcess/API/efl/ewk_favicon_database.h:
3635         * UIProcess/API/efl/ewk_favicon_database_private.h:
3636         (EwkFaviconDatabase):
3637         * UIProcess/API/efl/ewk_view.cpp:
3638         (ewk_view_favicon_get):
3639         * UIProcess/API/efl/ewk_view.h:
3640         Rename 'icon,changed' signal to 'favicon,changed' for clarity and
3641         consistency with the rest of the favicon API. Remove API to retrieve
3642         the favicon URL and replace it by one to retrieve the favicon image as
3643         an Evas_Object instead.
3644
3645         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
3646         Update API tests to use the new favicon API.
3647
3648 2013-02-17  Jae Hyun Park  <jae.park@company100.net>
3649
3650         Remove unnecessary public method DrawingAreaImpl::createGraphicsContext()
3651         https://bugs.webkit.org/show_bug.cgi?id=109893
3652
3653         Reviewed by Anders Carlsson.
3654
3655         DrawingAreaImpl::createGraphicsContext() is unnecessary since
3656         createGraphicsContext can be called directly using ShareableBitmap.
3657
3658         * WebProcess/WebPage/DrawingAreaImpl.cpp:
3659         (WebKit::DrawingAreaImpl::display):
3660         * WebProcess/WebPage/DrawingAreaImpl.h:
3661         (DrawingAreaImpl):
3662
3663 2013-02-17  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3664
3665         [WK2][EFL] Remove fullscreen manager proxy as a message receiver on invalidate()
3666         https://bugs.webkit.org/show_bug.cgi?id=109451
3667
3668         Reviewed by Anders Carlsson.
3669
3670         Remove fullscreen manager proxy as a message receiver on invalidate(), like
3671         other ports do after r142160.
3672
3673         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
3674         (WebKit::WebFullScreenManagerProxy::invalidate):
3675
3676 2013-02-17  Christophe Dumez  <ch.dumez@sisa.samsung.com>
3677
3678         Regression(r143124): Caused plugins/plugin-javascript-access.html to fail
3679         https://bugs.webkit.org/show_bug.cgi?id=110053
3680
3681         Reviewed by Alexey Proskuryakov.
3682
3683         Clear m_plugins in loadPluginsIfNecessary() before populating the
3684         vector again. We get duplicates otherwise.
3685
3686         * UIProcess/Plugins/PluginInfoStore.cpp:
3687         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
3688
3689 2013-02-16  Andreas Kling  <akling@apple.com>
3690
3691         Remove multi-threading gunk from PluginInfoStore.
3692         <http://webkit.org/b/110046>
3693
3694         Reviewed by Alexey Proskuryakov.
3695
3696         PluginInfoStore is never accessed from multiple threads anymore, so remove the Mutex locking
3697         and stop making isolated copies of everything.
3698
3699         * Shared/Plugins/PluginModuleInfo.h:
3700         (PluginModuleInfo):
3701         * UIProcess/Plugins/PluginInfoStore.cpp:
3702         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
3703         (WebKit::PluginInfoStore::plugins):
3704         (WebKit::PluginInfoStore::findPluginForMIMEType):
3705         (WebKit::PluginInfoStore::findPluginForExtension):
3706         (WebKit::PluginInfoStore::findPlugin):
3707         (WebKit::PluginInfoStore::infoForPluginWithPath):
3708         * UIProcess/Plugins/PluginInfoStore.h:
3709         (PluginInfoStore):
3710
3711 2013-02-16  Sam Weinig  <sam@webkit.org>
3712
3713         Fix non-production builds.
3714
3715         * WebKit2.xcodeproj/project.pbxproj:
3716
3717 2013-02-16  Sam Weinig  <sam@webkit.org>
3718
3719         The Plugin.32 target does not build
3720         https://bugs.webkit.org/show_bug.cgi?id=110032
3721
3722         Reviewed by Anders Carlsson.
3723
3724         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm: Removed.
3725         This was meant to be removed already.
3726
3727         * WebKit2.xcodeproj/project.pbxproj:
3728         Add Plugin.32 as dependency in All as it should be.
3729
3730 2013-02-16  Darin Adler  <darin@apple.com>
3731
3732         Fix WKDOMRangePrivate.h mistakes
3733         https://bugs.webkit.org/show_bug.cgi?id=110028
3734
3735         Reviewed by Ryosuke Niwa.
3736
3737         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
3738         Added include of WKDOMRangePrivate.h.
3739
3740         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h:
3741         Fixed class name and include to be WKDOMRange.
3742         Fixed method name, _copyBundleRangeHandleRef, to match the
3743         name in the source file.
3744
3745 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
3746
3747         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
3748         https://bugs.webkit.org/show_bug.cgi?id=109996
3749
3750         Reviewed by Simon Fraser.
3751
3752         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3753         (InitWebCoreSystemInterface):
3754
3755 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
3756
3757         Unreviewed, rolling out r143088.
3758         http://trac.webkit.org/changeset/143088
3759         https://bugs.webkit.org/show_bug.cgi?id=110000
3760
3761         Breaks the build (Requested by dgorbik on #webkit).
3762
3763         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3764         (InitWebCoreSystemInterface):
3765
3766 2013-02-15  Kiran Muppala  <cmuppala@apple.com>
3767
3768         Disable sudden termination on Mac
3769         https://bugs.webkit.org/show_bug.cgi?id=109990
3770
3771         Reviewed by Mark Rowe.
3772
3773         Sudden Termination is causing WebContent XPC services to be killed in
3774         response to memory pressure.  Hence, disable it until we can identify
3775         if it is being enabled in error or not.
3776
3777         * Shared/mac/ChildProcessMac.mm:
3778         (WebKit::ChildProcess::platformInitialize): Add call to
3779         [NSProcessInfo disableSuddenTermination].
3780
3781 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
3782
3783         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
3784         https://bugs.webkit.org/show_bug.cgi?id=109996
3785
3786         Reviewed by Simon Fraser.
3787
3788         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3789         (InitWebCoreSystemInterface):
3790
3791 2013-02-15  Adenilson Cavalcanti  <cavalcantii@gmail.com>
3792
3793         [Qt][WK2] Crash on window resize if WebProcess is closed/crashed
3794         https://bugs.webkit.org/show_bug.cgi?id=109216
3795
3796         Reviewed by Benjamin Poulain.
3797
3798         Only make calls into DrawingAreaProxy pointer after checking its state.
3799
3800         When the WebProcess was closed or crashed, WebKit::WebPageProxy will set
3801         its DrawingAreaProxy pointer to null. Resize events on UIProcess/client will
3802         try to access the object to update the geometry and forward this information
3803         into the WebProcess. This would create a crash scenario that is fixed by this patch.
3804
3805         * UIProcess/API/qt/qquickwebview.cpp:
3806         (QQuickWebViewPrivate::didRelaunchProcess):
3807         (QQuickWebViewLegacyPrivate::updateViewportSize):
3808
3809 2013-02-15  Anders Carlsson  <andersca@apple.com>
3810
3811         Add HashMap::isValidKey and HashSet::isValidValue
3812         https://bugs.webkit.org/show_bug.cgi?id=109977
3813
3814         Reviewed by Sam Weinig and Darin Adler.
3815
3816         Just call HashMap::isValidKey directly.
3817
3818         * UIProcess/WebProcessProxy.cpp:
3819         (WebKit::generatePageID):
3820         Initialize the id to 0 and use prefix increment.
3821
3822         (WebKit::WebProcessProxy::webFrame):
3823         (WebKit::WebProcessProxy::canCreateFrame):
3824         (WebKit::WebProcessProxy::didDestroyFrame):
3825
3826 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3827
3828         Typo fix after r143064.
3829
3830         * Platform/CoreIPC/win/ConnectionWin.cpp:
3831         (CoreIPC::Connection::sendOutgoingMessage):
3832
3833 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3834
3835         One more buildfix after r143052.
3836
3837         * Platform/CoreIPC/win/ConnectionWin.cpp:
3838         (CoreIPC::Connection::sendOutgoingMessage):
3839
3840 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
3841
3842         Unreviewed buildfix after r143052 for Qt/GTK/EFL ports.
3843
3844         * Platform/unix/SharedMemoryUnix.cpp:
3845         (WebKit::SharedMemory::Handle::encode):
3846         * Platform/win/SharedMemoryWin.cpp:
3847         (WebKit::SharedMemory::Handle::encode):
3848         * Shared/Network/NetworkResourceLoadParameters.cpp:
3849         (WebKit::NetworkResourceLoadParameters::encode):
3850         * Shared/WebBatteryStatus.cpp:
3851         (WebKit::WebBatteryStatus::Data::encode):
3852         * Shared/WebNetworkInfo.cpp:
3853         (WebKit::WebNetworkInfo::Data::encode):
3854         * Shared/efl/LayerTreeContextEfl.cpp:
3855         (WebKit::LayerTreeContext::encode):
3856         * Shared/gtk/LayerTreeContextGtk.cpp:
3857         (WebKit::LayerTreeContext::encode):
3858         * Shared/qt/LayerTreeContextQt.cpp:
3859         (WebKit::LayerTreeContext::encode):
3860         * Shared/qt/QtNetworkReplyData.cpp:
3861         (WebKit::QtNetworkReplyData::encode):
3862         * Shared/qt/QtNetworkRequestData.cpp:
3863         (WebKit::QtNetworkRequestData::encode):
3864         * Shared/soup/PlatformCertificateInfo.cpp:
3865         (WebKit::PlatformCertificateInfo::encode):
3866
3867 2013-02-15  Anders Carlsson  <andersca@apple.com>
3868
3869         Make most ArgumentEncoder::encode member functions private
3870         https://bugs.webkit.org/show_bug.cgi?id=109973
3871
3872         Reviewed by Sam Weinig.
3873
3874         Make the encode overloads private; the stream operator should be used instead.
3875
3876         * Platform/CoreIPC/ArgumentEncoder.h:
3877         (ArgumentEncoder):
3878         * Platform/CoreIPC/Arguments.h:
3879         (CoreIPC::Arguments1::encode):
3880         (CoreIPC::Arguments2::encode):
3881         (CoreIPC::Arguments3::encode):
3882         (CoreIPC::Arguments4::encode):
3883         (CoreIPC::Arguments5::encode):
3884         (CoreIPC::Arguments6::encode):
3885         (CoreIPC::Arguments7::encode):
3886         (CoreIPC::Arguments8::encode):
3887         (CoreIPC::Arguments10::encode):
3888         * Platform/CoreIPC/Connection.cpp:
3889         (CoreIPC::Connection::createSyncMessageEncoder):
3890         * Platform/CoreIPC/MessageEncoder.cpp:
3891         (CoreIPC::MessageEncoder::MessageEncoder):
3892         * Scripts/webkit2/messages.py:
3893         (generate_message_handler):
3894         * Scripts/webkit2/messages_unittest.py:
3895         * Shared/Network/NetworkResourceLoadParameters.cpp:
3896         (WebKit::NetworkResourceLoadParameters::encode):
3897         * WebProcess/WebPage/EncoderAdapter.cpp:
3898         (WebKit::EncoderAdapter::EncoderAdapter):
3899         (WebKit::EncoderAdapter::encodeBytes):
3900         (WebKit::EncoderAdapter::encodeBool):
3901         (WebKit::EncoderAdapter::encodeUInt16):
3902         (WebKit::EncoderAdapter::encodeUInt32):
3903         (WebKit::EncoderAdapter::encodeUInt64):
3904         (WebKit::EncoderAdapter::encodeInt32):
3905         (WebKit::EncoderAdapter::encodeInt64):
3906         (WebKit::EncoderAdapter::encodeFloat):
3907         (WebKit::EncoderAdapter::encodeDouble):
3908         (WebKit::EncoderAdapter::encodeString):
3909
3910 2013-02-15  Anders Carlsson  <andersca@apple.com>
3911
3912         Add a synchronous GetValues message to StorageManager
3913         https://bugs.webkit.org/show_bug.cgi?id=109968
3914
3915         Reviewed by Sam Weinig.
3916
3917         * Platform/CoreIPC/Connection.cpp:
3918         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
3919         Handle synchronous messages.
3920
3921         (CoreIPC::Connection::processIncomingMessage):
3922         Check for work queue message receivers before doing any other processing.
3923
3924         * UIProcess/Storage/StorageManager.cpp:
3925         (WebKit::StorageManager::getValues):
3926         Add empty stub.
3927
3928         * UIProcess/Storage/StorageManager.h:
3929         * UIProcess/Storage/StorageManager.messages.in:
3930         Add GetValues message.
3931
3932         * WebProcess/Storage/StorageAreaProxy.cpp:
3933         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
3934         Send the GetValues message.
3935
3936 2013-02-15  Anders Carlsson  <andersca@apple.com>
3937
3938         A storage area should know its storage type
3939         https://bugs.webkit.org/show_bug.cgi?id=109964
3940
3941         Reviewed by Andreas Kling.
3942
3943         * WebProcess/Storage/StorageAreaProxy.cpp:
3944         (WebKit::StorageAreaProxy::StorageAreaProxy):
3945         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
3946         * WebProcess/Storage/StorageAreaProxy.h:
3947         (StorageAreaProxy):
3948         * WebProcess/Storage/StorageNamespaceProxy.cpp:
3949         (WebKit::StorageNamespaceProxy::storageType):
3950         (WebKit):
3951         * WebProcess/Storage/StorageNamespaceProxy.h:
3952         (StorageNamespaceProxy):
3953
3954 2013-02-15  Anders Carlsson  <andersca@apple.com>
3955
3956         Implement StorageAreaProxy::length
3957         https://bugs.webkit.org/show_bug.cgi?id=109962
3958
3959         Reviewed by Andreas Kling.
3960
3961         * WebProcess/Storage/StorageAreaProxy.cpp:
3962         (WebKit::StorageAreaProxy::length):
3963         Load the values if needed and then return the length.
3964
3965         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
3966         Add helper function.
3967
3968         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
3969         Just allocate the hash map for now.
3970
3971         * WebProcess/Storage/StorageAreaProxy.h:
3972         (StorageAreaProxy):
3973
3974 2013-02-15  Anders Carlsson  <andersca@apple.com>
3975
3976         Remove const from a bunch of StorageArea member functions
3977         https://bugs.webkit.org/show_bug.cgi?id=109957
3978
3979         Reviewed by Beth Dakin.
3980
3981         Update for WebCore changes.
3982
3983         * WebProcess/Storage/StorageAreaProxy.cpp:
3984         (WebKit::StorageAreaProxy::length):
3985         (WebKit::StorageAreaProxy::key):
3986         (WebKit::StorageAreaProxy::getItem):
3987         (WebKit::StorageAreaProxy::contains):
3988         (WebKit::StorageAreaProxy::canAccessStorage):
3989         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
3990         * WebProcess/Storage/StorageAreaProxy.h:
3991         (StorageAreaProxy):
3992
3993 2013-02-15  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
3994
3995         [EFL][WK2] Use C API inside BatteryProvider and NetworkInfoProvider
3996         https://bugs.webkit.org/show_bug.cgi?id=107821
3997
3998         Reviewed by Anders Carlsson.
3999
4000         BatteryProvider and NetworkInfoProvider should use C API
4001         instead of accessing the internal C++ classes directly.
4002
4003         * UIProcess/API/efl/ewk_context.cpp:
4004         (EwkContext::EwkContext):
4005         * UIProcess/efl/BatteryProvider.cpp:
4006         (BatteryProvider::~BatteryProvider):
4007         (BatteryProvider::create):
4008         (BatteryProvider::BatteryProvider):
4009         (BatteryProvider::didChangeBatteryStatus):
4010         * UIProcess/efl/BatteryProvider.h:
4011         (BatteryProvider):
4012         * UIProcess/efl/NetworkInfoProvider.cpp:
4013         (NetworkInfoProvider::create):
4014         (NetworkInfoProvider::NetworkInfoProvider):
4015         (NetworkInfoProvider::~NetworkInfoProvider):
4016         * UIProcess/efl/NetworkInfoProvider.h:
4017         (NetworkInfoProvider):
4018
4019 2013-02-15  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
4020
4021         [WK2][EFL]REGRESSION (r141978): ewk_view_type_check api test failing
4022         https://bugs.webkit.org/show_bug.cgi?id=109038
4023
4024         Reviewed by Anders Carlsson.
4025
4026         EFL API is defensive by its nature and expects graceful handling of wrong function arguments
4027         whereas webkit implementation code does not. This patch adds new 'toEwkViewChecked' function,
4028         which provides handling of wrong arguments, to be used within EFL API layer code.
4029
4030         * UIProcess/API/efl/EwkView.cpp:
4031         (toEwkView):
4032
4033             EwkView* toEwkView(const Ewk_View_Smart_Data* smartData) is not exported anymore
4034             as it's used within EwkView class only.        
4035
4036         (EwkView::handleTouchMove):
4037         * UIProcess/API/efl/EwkView.h:
4038         * UIProcess/API/efl/ewk_view.cpp:
4039         (toEwkViewChecked):
4040
4041 2013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
4042
4043         [EFL][WK2] Have WebView subclass PageClient
4044         https://bugs.webkit.org/show_bug.cgi?id=109684
4045
4046         Reviewed by Anders Carlsson.
4047
4048         Stop constructing the PageClient in EwkView. PageClient is an internal
4049         class and we should not use it directly in our Ewk implementation.
4050         Instead, have WebView subclass PageClient. The PageClient implementation
4051         just calls WebView methods otherwise.
4052
4053         * PlatformEfl.cmake:
4054         * UIProcess/API/efl/EwkView.cpp:
4055         (EwkView::EwkView):
4056         (EwkView::setSize):
4057         * UIProcess/API/efl/EwkView.h:
4058         (WebKit):
4059         (EwkView):
4060         (EwkView::webView):
4061         * UIProcess/API/efl/ewk_view.cpp:
4062         * UIProcess/efl/PageClientBase.cpp: Removed.
4063         * UIProcess/efl/PageClientBase.h: Removed.
4064         * UIProcess/efl/PageClientDefaultImpl.cpp: Removed.
4065         * UIProcess/efl/PageClientDefaultImpl.h: Removed.
4066         * UIProcess/efl/PageClientLegacyImpl.cpp: Removed.
4067         * UIProcess/efl/PageClientLegacyImpl.h: Removed.
4068         * UIProcess/efl/PageLoadClientEfl.cpp:
4069         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
4070         * UIProcess/efl/PageViewportControllerClientEfl.h:
4071         * UIProcess/efl/WebPageProxyEfl.cpp:
4072         (WebKit::WebPageProxy::viewWidget):
4073         * UIProcess/efl/WebView.cpp:
4074         (WebKit::WebView::WebView):
4075         (WebKit::WebView::~WebView):
4076         (WebKit::WebView::initialize):
4077         (WebKit):
4078         (WebKit::WebView::evasObject):
4079         (WebKit::WebView::setThemePath):
4080         (WebKit::WebView::setDrawsBackground):
4081         (WebKit::WebView::drawsBackground):
4082         (WebKit::WebView::setDrawsTransparentBackground):
4083         (WebKit::WebView::drawsTransparentBackground):
4084         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
4085         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
4086         (WebKit::WebView::didCommitLoad):
4087         (WebKit::WebView::updateViewportSize):
4088         (WebKit::WebView::didChangeContentsSize):
4089         (WebKit::WebView::createDrawingAreaProxy):
4090         (WebKit::WebView::setViewNeedsDisplay):
4091         (WebKit::WebView::displayView):
4092         (WebKit::WebView::scrollView):
4093         (WebKit::WebView::viewSize):
4094         (WebKit::WebView::isViewWindowActive):
4095         (WebKit::WebView::isViewFocused):
4096         (WebKit::WebView::isViewVisible):
4097         (WebKit::WebView::isViewInWindow):
4098         (WebKit::WebView::processDidCrash):
4099         (WebKit::WebView::didRelaunchProcess):
4100         (WebKit::WebView::pageClosed):
4101         (WebKit::WebView::toolTipChanged):
4102         (WebKit::WebView::setCursor):
4103         (WebKit::WebView::setCursorHiddenUntilMouseMoves):
4104         (WebKit::WebView::registerEditCommand):
4105         (WebKit::WebView::clearAllEditCommands):
4106         (WebKit::WebView::canUndoRedo):
4107         (WebKit::WebView::executeUndoRedo):
4108         (WebKit::WebView::screenToWindow):
4109         (WebKit::WebView::windowToScreen):
4110         (WebKit::WebView::doneWithKeyEvent):
4111         (WebKit::WebView::doneWithTouchEvent):
4112         (WebKit::WebView::createPopupMenuProxy):
4113         (WebKit::WebView::createContextMenuProxy):
4114         (WebKit::WebView::createColorChooserProxy):
4115         (WebKit::WebView::setFindIndicator):
4116         (WebKit::WebView::enterAcceleratedCompositingMode):
4117         (WebKit::WebView::exitAcceleratedCompositingMode):
4118         (WebKit::WebView::updateAcceleratedCompositingMode):
4119         (WebKit::WebView::didCommitLoadForMainFrame):
4120         (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
4121         (WebKit::WebView::customRepresentationZoomFactor):
4122         (WebKit::WebView::setCustomRepresentationZoomFactor):
4123         (WebKit::WebView::flashBackingStoreUpdates):
4124         (WebKit::WebView::findStringInCustomRepresentation):
4125         (WebKit::WebView::countStringMatchesInCustomRepresentation):
4126         (WebKit::WebView::updateTextInputState):
4127         (WebKit::WebView::handleDownloadRequest):
4128         (WebKit::WebView::convertToDeviceSpace):
4129         (WebKit::WebView::convertToUserSpace):
4130         (WebKit::WebView::didChangeViewportProperties):
4131         (WebKit::WebView::pageDidRequestScroll):
4132         (WebKit::WebView::didRenderFrame):
4133         (WebKit::WebView::pageTransitionViewportReady):
4134         * UIProcess/efl/WebView.h:
4135         (WebKit):
4136         (WebView):
4137         (WebKit::WebView::pageRef):
4138         (WebKit::WebView::page):
4139         (WebKit::WebView::canScrollView):
4140
4141 2013-02-15  Milian Wolff  <milian.wolff@kdab.com>
4142
4143         [Qt] Restore URL Scheme Delegates after QtWebProcess crash
4144         https://bugs.webkit.org/show_bug.cgi?id=108808
4145
4146         When the QtWebProcess crashes, the registered URL Scheme