Implement StorageAreaProxy::getItem and StorageAreaProxy::setItem
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2013-02-26  Anders Carlsson  <andersca@apple.com>
2
3         Implement StorageAreaProxy::getItem and StorageAreaProxy::setItem
4         https://bugs.webkit.org/show_bug.cgi?id=110927
5
6         Reviewed by Sam Weinig.
7
8         * UIProcess/Storage/StorageManager.cpp:
9         (WebKit::StorageManager::setItem):
10         * UIProcess/Storage/StorageManager.h:
11         Add empty stub.
12         
13         * UIProcess/Storage/StorageManager.messages.in:
14         Add SetItem message.
15
16         * WebProcess/Storage/StorageAreaProxy.cpp:
17         (WebKit::StorageAreaProxy::getItem):
18         Fill the storage map and get the item from it.
19
20         (WebKit::StorageAreaProxy::setItem):
21         Update the storage map and send a SetItem message to the UI process.
22
23 2013-02-26  Anders Carlsson  <andersca@apple.com>
24
25         StorageAreaProxy should hold on to a StorageMap and not a HashMap
26         https://bugs.webkit.org/show_bug.cgi?id=110919
27
28         Reviewed by Jessie Berlin.
29
30         Create a storage map instead of a hash map.
31
32         * WebProcess/Storage/StorageAreaProxy.cpp:
33         (WebKit::StorageAreaProxy::length):
34         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
35         * WebProcess/Storage/StorageAreaProxy.h:
36         (WebCore):
37         (StorageAreaProxy):
38
39 2013-02-26  Anders Carlsson  <andersca@apple.com>
40
41         Fix a copy/paste error in WebLoaderClient::didBlockInsecurePluginVersion
42         https://bugs.webkit.org/show_bug.cgi?id=110914
43         <rdar://problem/13297581>
44
45         Reviewed by Beth Dakin.
46
47         Pass kWKErrorCodeInsecurePlugInVersion to the pluginDidFail callback.
48
49         * UIProcess/WebLoaderClient.cpp:
50         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
51
52 2013-02-26  Jer Noble  <jer.noble@apple.com>
53
54         Unreviewed build fix; use correct macro for platform name in FeatureDefines.xcconfig.
55
56         * Configurations/FeatureDefines.xcconfig:
57
58 2013-02-26  Manuel Rego Casasnovas  <rego@igalia.com>
59
60         [WK2][GTK] REGRESSION (r143463): unit test failure in WebKit2APITests/TestContextMenu
61         https://bugs.webkit.org/show_bug.cgi?id=110869
62
63         Reviewed by Martin Robinson.
64
65         Test was failing because of new media controls needs more space to be
66         painted than just 10x10 pixels.
67
68         * UIProcess/API/gtk/tests/TestContextMenu.cpp:
69         (testContextMenuDefaultMenu): Modified test in order to give more space
70         to the media controls.
71
72 2013-02-26  Dean Jackson  <dino@apple.com>
73
74         Draw intermediate snapshots if possible
75         https://bugs.webkit.org/show_bug.cgi?id=110811
76
77         Reviewed by Simon Fraser.
78
79         After http://webkit.org/b/110495 we delayed snapshotting until we've
80         received a nice image, but this made the page look like it is broken.
81         We should draw any intermediate snapshots that we find, which might
82         include content such as progress bars/spinners.
83
84         * WebProcess/Plugins/PluginView.cpp:
85         (WebKit): Reinstate 60 attempts at snapshots before giving up.
86         (WebKit::PluginView::isAcceleratedCompositingEnabled): We do not
87         want accelerated compositing enabled when we are trying to capture
88         snapshots.
89
90 2013-02-26  Andras Becsi  <andras.becsi@digia.com>
91
92         Remove nonexistent StringPairVector.h from Target.pri after r142839
93
94         Unreviewed gardening.
95
96         * Target.pri:
97
98 2013-02-26  Simon Hausmann  <simon.hausmann@digia.com>
99
100         Unreviewed trivial !ENABLE(NETSCAPE_PLUGIN_API) build fix
101
102         Add an intermediate pluginName string variable instead of
103         accessing plugin.info outside the feature #ifdef.
104
105         * UIProcess/WebPageProxy.cpp:
106         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
107
108 2013-02-25  Huang Dongsung  <luxtella@company100.net>
109
110         Coordinated Graphics: remove redundant update of non compositing layer.
111         https://bugs.webkit.org/show_bug.cgi?id=110444
112
113         Reviewed by Noam Rosenthal.
114
115         Currently, we update non compositing layer when the page scrolled. However, it
116         is not needed, because TiledBackingStore can scroll without tile update.
117
118         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
119         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
120         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
121         (CoordinatedLayerTreeHost):
122
123 2013-02-25  Jer Noble  <jer.noble@apple.com>
124
125         REGRESSION(r143981): Crash in WebFrameLoaderClient::dispatchDidStartProvisionalLoad()
126         https://bugs.webkit.org/show_bug.cgi?id=110848
127
128         Reviewed by Ryosuke Niwa.
129
130         NULL-check the result of document->documentElement().
131
132         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
133         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
134
135 2013-02-25  Anders Carlsson  <andersca@apple.com>
136
137         Add a new unavailablePluginButtonClicked callback that takes a WKDictionary of plug-in information
138         https://bugs.webkit.org/show_bug.cgi?id=110821
139
140         Reviewed by Beth Dakin.
141
142         * UIProcess/API/C/WKPage.cpp:
143         (WKPageGetPluginInformationPluginspageAttributeURLKey):
144         (WKPageGetPluginInformationPluginURLKey):
145         Add two new API key getters.
146         
147         * UIProcess/API/C/WKPage.h:
148         Add a new callback and deprecate the old callback.
149         
150         * UIProcess/WebLoaderClient.cpp:
151         (WebKit::WebLoaderClient::didFailToInitializePlugin):
152         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
153         (WebKit::WebLoaderClient::pluginLoadPolicy):
154         Make the pluginInformationDictionary a static member function of WebPageProxy so it
155         can be called from WebUIClient as well.
156         
157         * UIProcess/WebPageProxy.cpp:
158         (WebKit::WebPageProxy::getPluginPath):
159         Pass the bundle version as well.
160
161         (WebKit::WebPageProxy::pluginInformationPluginspageAttributeURLKey):
162         (WebKit::WebPageProxy::pluginInformationPluginURLKey):
163         Add two new keys.
164
165         (WebKit::WebPageProxy::pluginInformationDictionary):
166         Handle more keys.
167
168         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
169         Get the plug-in bundle identifier and version.
170
171         * UIProcess/WebPageProxy.messages.in:
172         Pass along more information; the frame and page URLs.
173
174         * UIProcess/WebUIClient.cpp:
175         (WebKit::WebUIClient::unavailablePluginButtonClicked):
176         Call the new callback if it's supported.
177
178         * UIProcess/WebUIClient.h:
179         (WebUIClient):
180         * UIProcess/mac/WebInspectorProxyMac.mm:
181         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
182         Update for API changes.
183
184         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
185         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
186         Ensure that the pluginspage attribute is a valid URL.
187
188 2013-02-21  Jeffrey Pfau  <jpfau@apple.com>
189
190         Optionally partition cache to prevent using cache for tracking
191         https://bugs.webkit.org/show_bug.cgi?id=110269
192
193         Reviewed by Maciej Stachowiak.
194
195         Update WKSI bindings and add feature defines.
196
197         * Configurations/FeatureDefines.xcconfig: Add defines for cache partitioning and public suffix list usage
198         * WebCoreSupport/WebSystemInterface.mm:
199         (InitWebCoreSystemInterface):
200
201 2013-02-25  Jer Noble  <jer.noble@apple.com>
202
203         Normalize ENABLE_ENCRYPTED_MEDIA definitions across all FeatureDefines files.
204         https://bugs.webkit.org/show_bug.cgi?id=110806
205
206         Ensure both ENCRYPTED_MEDIA and ENCRYPTED_MEDIA_V2 are enabled on macosx_1090.
207
208         Reviewed by Alexey Proskuryakov.
209
210         * Configurations/FeatureDefines.xcconfig:
211
212 2013-02-25  Jer Noble  <jer.noble@apple.com>
213
214         Full screen mode should not exit when application resigns active state.
215         https://bugs.webkit.org/show_bug.cgi?id=106129
216
217         Reviewed by Darin Adler.
218
219         Now that full screen windows get their own full screen space, there is no reason to exit full
220         screen mode when the application resigns active state. Instead, the windowserver will bring the
221         space containing the newly active application to the foreground. The user can then swipe back
222         to the full screen space (or use Mission Control) to get back to the full screen window.
223
224         * UIProcess/mac/WKFullScreenWindowController.mm:
225         (-[WKFullScreenWindowController windowDidLoad]): Remove the applicationDidResignActive: notification from WKFullScreenWindowController.
226
227 2013-02-25  Jer Noble  <jer.noble@apple.com>
228
229         Safari shows empty window and paints webpage in full-screen background
230         https://bugs.webkit.org/show_bug.cgi?id=103712
231
232         Reviewed by Darin Adler.
233
234         When canceling full screen mode due to a provisional load, exit normally instead of closing the
235         full screen window controller. Additionally, to ensure full screen is cancelled when the enclosing
236         frame around a full screen iframe is navigated, check to see if the navigating document contains
237         a full screen element, rather than checking whether the document itself is full screen.
238
239         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
240         (WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
241
242 2013-02-25  Anders Carlsson  <andersca@apple.com>
243
244         Fix build.
245
246         * UIProcess/WebPageProxy.cpp:
247         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
248
249 2013-02-25  Anders Carlsson  <andersca@apple.com>
250
251         Add a new pluginDidFail callback that takes a WKDictionary of plug-in information
252         https://bugs.webkit.org/show_bug.cgi?id=110793
253         <rdar://problem/13265303>
254
255         Reviewed by Sam Weinig.
256
257         Add a new pluginDidFail callback that takes a WKDictionaryRef and also pass in the
258         frame and page URLs.
259
260         * UIProcess/API/C/WKPage.h:
261         * UIProcess/WebLoaderClient.cpp:
262         (WebKit::pluginInformationDictionary):
263         (WebKit::WebLoaderClient::didFailToInitializePlugin):
264         (WebKit::WebLoaderClient::didBlockInsecurePluginVersion):
265         (WebKit::WebLoaderClient::pluginLoadPolicy):
266         * UIProcess/WebLoaderClient.h:
267         * UIProcess/WebPageProxy.cpp:
268         (WebKit::WebPageProxy::didFailToInitializePlugin):
269         (WebKit::WebPageProxy::didBlockInsecurePluginVersion):
270         * UIProcess/WebPageProxy.h:
271         * UIProcess/WebPageProxy.messages.in:
272         * WebProcess/Plugins/PluginView.cpp:
273         (WebKit::PluginView::didFailToInitializePlugin):
274         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
275         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
276         * WebProcess/WebPage/WebPage.cpp:
277         (WebKit::WebPage::createPlugin):
278
279 2013-02-25  Tim Horton  <timothy_horton@apple.com>
280
281         PDFPlugin: Tab between text annotations
282         https://bugs.webkit.org/show_bug.cgi?id=106539
283         <rdar://problem/12751789>
284
285         Reviewed by Darin Adler.
286
287         Use [PDFLayerController activateNextAnnotation:] to advance focus when the tab key is hit while inside a PDF form.
288
289         Also, a drive-by fix to make the lifetime of PDFPluginAnnotationEventListener's m_annotation pointer more explicit.
290
291         * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add activateNextAnnotation: SPI.
292         * WebProcess/Plugins/PDF/PDFPlugin.h:
293         (PDFPlugin): Add focus(Next|Previous)Annotation.
294         * WebProcess/Plugins/PDF/PDFPlugin.mm:
295         (WebKit::PDFPlugin::focusNextAnnotation): Ask PDFLayerController to focus the next annotation.
296         (WebKit::PDFPlugin::focusPreviousAnnotation): Ask PDFLayerController to focus the next annotation.
297         * WebProcess/Plugins/PDF/PDFPluginAnnotation.h: Drive-by, initialize m_parent to 0.
298         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::setAnnotation): Added.
299         * WebProcess/Plugins/PDF/PDFPluginAnnotation.mm:
300         (WebKit::PDFPluginAnnotation::attach): Use eventNames() instead of string literals.
301         (WebKit::PDFPluginAnnotation::~PDFPluginAnnotation): Clear the event listener's reference to its annotation.
302         (WebKit::PDFPluginAnnotation::PDFPluginAnnotationEventListener::handleEvent): Null-check the event listener's annotation.
303         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.h:
304         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotation): Create our PDFPluginTextAnnotationEventListener.
305         (PDFPluginTextAnnotationEventListener): Added an event listener (for keydown events in form fields).
306         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::create):
307         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::setTextAnnotation):
308         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::PDFPluginTextAnnotationEventListener):
309         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
310         (WebKit::PDFPluginTextAnnotation::~PDFPluginTextAnnotation): Unregister our keydown event listener.
311         (WebKit::PDFPluginTextAnnotation::createAnnotationElement): Register our keydown event listener.
312         (WebKit::PDFPluginTextAnnotation::PDFPluginTextAnnotationEventListener::handleEvent): Ask PDFPlugin to focus
313         the next/previous annotation when the tab key is pressed (Shift-Tab goes backwards).
314
315 2013-02-25  Alexey Proskuryakov  <ap@apple.com>
316
317         <rdar://problem/12976385> Remove rule to silence attempts to create the ~/Library/Caches/com.apple.WebKit2.WebProcessService directory
318
319         Reviewed by Anders Carlsson.
320
321         * WebProcess/com.apple.WebProcess.sb.in: Remove the obsolete rule. We no longer
322         have a "WebProcessService".
323
324 2013-02-25  Andras Becsi  <andras.becsi@digia.com>
325
326         [Qt][WK2] Remove unneeded method didResumeContent from PageViewportController clients
327         https://bugs.webkit.org/show_bug.cgi?id=110751
328
329         Reviewed by Jocelyn Turcotte.
330
331         This is a clean-up in the PageViewportController clients that removes leftover
332         code from previous design that is partially unused and unnecessary, to simplify
333         the interaction between PageViewportController and clients.
334
335         * UIProcess/PageViewportController.cpp:
336         (WebKit::PageViewportController::resumeContent):
337         * UIProcess/PageViewportControllerClient.h:
338         (PageViewportControllerClient):
339         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
340         * UIProcess/efl/PageViewportControllerClientEfl.h:
341         (PageViewportControllerClientEfl):
342         * UIProcess/qt/PageViewportControllerClientQt.cpp:
343         (WebKit::PageViewportControllerClientQt::animateContentRectVisible):
344         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
345         (WebKit::PageViewportControllerClientQt::resumeAndUpdateContent):
346         (WebKit::PageViewportControllerClientQt::pinchGestureCancelled):
347         * UIProcess/qt/PageViewportControllerClientQt.h:
348         (PageViewportControllerClientQt):
349
350 2013-02-25  Andreas Kling  <akling@apple.com>
351
352         Reduce amount of code that includes StylePropertySet.h
353         <http://webkit.org/b/101149>
354
355         Reviewed by Antti Koivisto.
356
357         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
358
359 2013-02-24  Andreas Kling  <akling@apple.com>
360
361         Reduce include graph of JSDOMBinding.h
362         <http://webkit.org/b/110709>
363
364         Reviewed by Antti Koivisto.
365
366         * Shared/WebRenderObject.cpp:
367         (WebKit::WebRenderObject::WebRenderObject):
368         * WebProcess/Storage/StorageAreaProxy.cpp:
369
370 2013-02-22  Sam Weinig  <sam@webkit.org>
371
372         Add temporary work around for 32-bit plugins not working in production builds as XPCServices
373         https://bugs.webkit.org/show_bug.cgi?id=110680
374         <rdar://problem/13236883>
375
376         Reviewed by Anders Carlsson.
377
378         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
379         (WebKit::shouldUseXPC):
380         Temporarily don't use XPC for plug-ins for Safari while we figure out why the
381         32-bit XPCService is being built universal.
382
383 2013-02-22  Tim Horton  <timothy_horton@apple.com>
384
385         [WK2] The root and page overlay layers should be the size of the view, not the content
386         https://bugs.webkit.org/show_bug.cgi?id=110660
387         <rdar://problem/13096456>
388
389         Reviewed by Simon Fraser.
390
391         Use the view size for the size of the root and page overlay layers.
392         For one, we never update these layers' sizes when the content size changes, causing size mismatches.
393         In addition, there's no reason an overlay shouldn't be able to draw outside of the bounds of the content.
394
395         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
396         (WebKit::TiledCoreAnimationDrawingArea::updateGeometry):
397         (WebKit::TiledCoreAnimationDrawingArea::createPageOverlayLayer):
398
399 2013-02-22  Anders Carlsson  <andersca@apple.com>
400
401         pluginLoadStrategy should take a WKDictionaryRef for extensibility
402         https://bugs.webkit.org/show_bug.cgi?id=110656
403         <rdar://problem/13265303>
404
405         Reviewed by Jessie Berlin.
406
407         Change pluginLoadStrategy to take a WKDictionaryRef instead of a number of parameters;
408         this lets us add more plug-in information if needed. Also add the page URL and rename documentURL to frameURL.
409
410         * UIProcess/API/C/WKPage.cpp:
411         (WKPageGetPluginInformationBundleIdentifierKey):
412         (WKPageGetPluginInformationBundleVersionKey):
413         (WKPageGetPluginInformationDisplayNameKey):
414         (WKPageGetPluginInformationFrameURLKey):
415         (WKPageGetPluginInformationMIMETypeKey):
416         (WKPageGetPluginInformationPageURLKey):
417         * UIProcess/API/C/WKPage.h:
418         * UIProcess/WebLoaderClient.cpp:
419         (WebKit):
420         (WebKit::WebLoaderClient::pluginLoadPolicy):
421         * UIProcess/WebLoaderClient.h:
422         (WebLoaderClient):
423         * UIProcess/WebPageProxy.cpp:
424         (WebKit::WebPageProxy::getPluginPath):
425         (WebKit::WebPageProxy::pluginInformationBundleIdentifierKey):
426         (WebKit):
427         (WebKit::WebPageProxy::pluginInformationBundleVersionKey):
428         (WebKit::WebPageProxy::pluginInformationDisplayNameKey):
429         (WebKit::WebPageProxy::pluginInformationFrameURLKey):
430         (WebKit::WebPageProxy::pluginInformationMIMETypeKey):
431         (WebKit::WebPageProxy::pluginInformationPageURLKey):
432         * UIProcess/WebPageProxy.h:
433         (WebPageProxy):
434         * UIProcess/WebPageProxy.messages.in:
435         * WebProcess/WebPage/WebPage.cpp:
436         (WebKit::WebPage::createPlugin):
437         (WebKit::WebPage::canPluginHandleResponse):
438
439 2013-02-22  Anders Carlsson  <andersca@apple.com>
440
441         Move pluginLoadPolicy to the page loader client
442         https://bugs.webkit.org/show_bug.cgi?id=110635
443         <rdar://problem/13265303>
444         
445         Reviewed by Sam Weinig.
446
447         Move the pluginLoadPolicy callback to the page loader client where it belongs.
448
449         * UIProcess/API/C/WKPage.h:
450         * UIProcess/WebLoaderClient.cpp:
451         (WebKit::toWKPluginLoadPolicy):
452         (WebKit):
453         (WebKit::toPluginModuleLoadPolicy):
454         (WebKit::WebLoaderClient::pluginLoadPolicy):
455         * UIProcess/WebLoaderClient.h:
456         (WebLoaderClient):
457         * UIProcess/WebPageProxy.cpp:
458         (WebKit::WebPageProxy::getPluginPath):
459         * UIProcess/WebUIClient.cpp:
460         (WebKit):
461         * UIProcess/WebUIClient.h:
462         (WebUIClient):
463         * UIProcess/mac/WebInspectorProxyMac.mm:
464         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
465
466 2013-02-21  Jer Noble  <jer.noble@apple.com>
467
468         Two video contollers appear after exiting the fullscreen video when using menubar to exit.
469         https://bugs.webkit.org/show_bug.cgi?id=110506
470
471         Reviewed by Eric Carlson.
472
473         When we are notified that the fullscreen window is about to exit fullscreen mode unrequested,
474         call requestExitFullScreen(), as that will result in Document::webkitExitFullScreen() correctly
475         tearing down the fullscreen state.
476
477         * UIProcess/mac/WKFullScreenWindowController.mm:
478         (-[WKFullScreenWindowController _startExitFullScreenAnimationWithDuration:]):
479
480 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
481
482         Yet another unreviewed buildfix after r143714.
483
484         * UIProcess/efl/WebView.cpp:
485         (WebKit::WebView::paintToCairoSurface):
486
487 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
488
489         Unreviewed preventive buildfix after my last commit.
490
491         * UIProcess/API/efl/EwkView.cpp:
492         * UIProcess/efl/WebView.cpp:
493
494 2013-02-22  Balazs Kelemen  <kbalazs@webkit.org>
495
496         [CoordGfx] Minor cleanup in CoordinatedGraphicsScene::paintToGraphicsContext
497         https://bugs.webkit.org/show_bug.cgi?id=109824
498
499         Reviewed by Andreas Kling.
500
501         Avoid ugly ifdefs by using PlatformGraphicsContext.
502
503         * UIProcess/API/efl/EwkView.cpp:
504         (EwkView::displayTimerFired):
505
506 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
507
508         [WK2][EFL] Remove declaration of non-existent functions from EwkView
509         https://bugs.webkit.org/show_bug.cgi?id=110572
510
511         Reviewed by Kenneth Rohde Christiansen.
512
513         Removed declarations of non-existent EwkView::paintToCurrentGLContext() and
514         EwkView::paintToCairoSurface(cairo_surface_t*) that were accidentally
515         left at r143699.
516
517         * UIProcess/API/efl/EwkView.h:
518         (EwkView):
519
520 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
521
522         [WK2][EFL] Clean up PageViewportControllerClientEfl class
523         https://bugs.webkit.org/show_bug.cgi?id=110438
524
525         Reviewed by Andreas Kling.
526
527         Cleaned up PageViewportControllerClientEfl class from unused methods
528         and class members, eliminated access to WK2 internals from this class.
529
530         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
531         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
532         * UIProcess/efl/PageViewportControllerClientEfl.h:
533         (WebKit::PageViewportControllerClientEfl::~PageViewportControllerClientEfl):
534         (PageViewportControllerClientEfl):
535         * UIProcess/efl/WebView.cpp:
536         (WebKit::WebView::WebView):
537         (WebKit::WebView::updateViewportSize):
538
539 2013-02-22  Michał Pakuła vel Rutka  <m.pakula@samsung.com>
540
541         [WK2][EFL][GTK][Qt] Add context menu item tags for C API
542         https://bugs.webkit.org/show_bug.cgi?id=109815
543
544         Reviewed by Anders Carlsson.
545
546         This patch adds context menu item tags used by EFL, GTK and Qt ports, defined in
547         WebCore to WK2 C API.
548
549         * Shared/API/c/WKContextMenuItemTypes.h:
550         * Shared/API/c/WKSharedAPICast.h:
551         (WebKit::toAPI):
552         (WebKit::toImpl):
553
554 2013-02-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
555
556         [WK2][EFL] Move AC code from EwkView to WebView
557         https://bugs.webkit.org/show_bug.cgi?id=110216
558
559         Reviewed by Anders Carlsson.
560
561         Accelerated compositing code is moved from EwkView to WebView.
562         Added new WKView API to be used from EwkView instead of direct accessing
563         to coordinated graphics scene.
564
565         * UIProcess/API/C/efl/WKView.cpp:
566         (WKViewSetUserViewportTranslation):
567         (WKViewUserViewportToContents):
568         (WKViewPaintToCurrentGLContext):
569         (WKViewPaintToCairoSurface):
570         * UIProcess/API/C/efl/WKView.h:
571
572             Added WKView API functions.
573
574         * UIProcess/API/efl/EwkView.cpp:
575         (EwkView::EwkView):
576         (EwkView::displayTimerFired):
577         (EwkView::feedTouchEvent):
578         (EwkView::createGLSurface):
579         (EwkView::handleEvasObjectCalculate):
580         (EwkView::handleEwkViewMouseWheel):
581         (EwkView::handleEwkViewMouseDown):
582         (EwkView::handleEwkViewMouseUp):
583         (EwkView::handleEwkViewMouseMove):
584         * UIProcess/API/efl/EwkView.h:
585         (EwkView):
586
587             Using new WKView API.
588
589         * UIProcess/efl/WebView.cpp:
590         (WebKit::WebView::initialize):
591         (WebKit):
592         (WebKit::WebView::paintToCurrentGLContext):
593         (WebKit::WebView::paintToCairoSurface):
594         (WebKit::WebView::userViewportToContents):
595         (WebKit::WebView::transformFromScene):
596         (WebKit::WebView::transformToScene):
597         (WebKit::WebView::coordinatedGraphicsScene):
598         (WebKit::WebView::enterAcceleratedCompositingMode):
599         (WebKit::WebView::exitAcceleratedCompositingMode):
600         * UIProcess/efl/WebView.h:
601         (WebCore):
602         (WebKit::WebView::setUserViewportTranslation):
603         (WebView):
604
605             Added WebView methods to support new WKView API.
606
607 2013-02-21  Dima Gorbik  <dgorbik@apple.com>
608
609         QuickTime plugin doesn't load when accelerated compositing is disabled
610         https://bugs.webkit.org/show_bug.cgi?id=110534
611
612         Reviewed by Anders Carlsson.
613
614         We shouldn't disable accelerated compositing for plugins, because
615         plugins such as QuickTime rely on this and will try to set other drawing
616         models that we don't support.
617
618         * WebProcess/Plugins/PluginView.cpp:
619         (WebKit::PluginView::isAcceleratedCompositingEnabled):
620
621 2013-02-21  Dean Jackson  <dino@apple.com>
622
623         Plug-in snapshotting code always accepts first snapshot
624         https://bugs.webkit.org/show_bug.cgi?id=110495
625
626         Reviewed by Tim Horton.
627
628         When we detect a plugin that can be snapshotted we start capturing
629         images until we find one that we believe isn't blank, or we timeout.
630         I introduced a regression recently where we swap renderers as
631         soon as the snapshot arrives, whether or not is is blank.
632
633         The fix was to have the embedder (currently only WK2) be the one
634         who tells the HTMLPlugInElement to start displaying snapshots.
635
636         * WebProcess/Plugins/PluginView.cpp:
637         (WebKit::PluginView::pluginSnapshotTimerFired): When we find a
638         snapshot that we like, tell the HTMLPlugInElement to move to
639         the snapshot view.
640
641 2013-02-21  Carlos Garcia Campos  <cgarcia@igalia.com>
642
643         Unreviewed. Fix make distcheck.
644
645         * GNUmakefile.am: Add -DBUILDING_WEBKIT flags to introspection
646         scanner.
647         * GNUmakefile.list.am: Add missing header to compilation and
648         remove one that no longer exists.
649
650 2013-02-21  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
651
652         [WK2][EFL] Move PageViewportController and PageViewportControllerClientEfl out from WebView
653         https://bugs.webkit.org/show_bug.cgi?id=110345
654
655         Reviewed by Andreas Kling.
656
657         WebView does not need to know about both PageViewportController and 
658         PageViewportControllerClientEfl. Considering the fact that PageViewportController
659         will stop being WK2 internal and will be based on WK2 C API, it 
660         should be owned by EwkView rather than WebView.
661
662         This patch is also a preparation for WKViewClient API extension to cover all
663         the places where PageViewportController and PageViewportControllerClientEfl
664         are accessed directly from WebView at the moment.
665
666         * UIProcess/API/efl/EwkView.cpp:
667         (EwkView::EwkView):
668         * UIProcess/API/efl/EwkView.h:
669         (WebKit):
670         (EwkView::pageViewportControllerClient):
671         (EwkView::pageViewportController):
672         (EwkView):
673         * UIProcess/efl/WebView.cpp:
674         (WebKit::WebView::didCommitLoad):
675         (WebKit::WebView::updateViewportSize):
676         (WebKit::WebView::didChangeContentsSize):
677         (WebKit::WebView::didChangeViewportProperties):
678         (WebKit::WebView::pageDidRequestScroll):
679         (WebKit::WebView::didRenderFrame):
680         (WebKit::WebView::pageTransitionViewportReady):
681         * UIProcess/efl/WebView.h:
682         (WebView):
683
684 2013-02-20  Tim Horton  <timothy_horton@apple.com>
685
686         Provide WKView SPI to defer telling the WebPageProxy and WebProcess about changes in the hosting window
687         https://bugs.webkit.org/show_bug.cgi?id=110415
688         <rdar://problem/13095405>
689
690         Reviewed by Simon Fraser.
691
692         * UIProcess/API/mac/WKView.mm: Add _viewInWindowChangesDeferredCount and _viewInWindowChangeWasDeferred to WKViewData.
693         (-[WKView viewDidMoveToWindow]): If we're deferring window changes, don't include the ViewIsInWindow flag
694         when sending viewStateDidChange. Instead, save the fact that we want to do that later aside.
695         (-[WKView beginDeferringViewInWindowChanges]):
696         (-[WKView endDeferringViewInWindowChanges]): Straightforward begin/end pair. When we exit the last pair and
697         have a pending window change, let the WebPageProxy know. WebPageProxy will do the check to ensure that
698         the in-window state has actually changed.
699         (-[WKView isDeferringViewInWindowChanges]):
700         * UIProcess/API/mac/WKViewPrivate.h: 
701
702 2013-02-20  Kiran Muppala  <cmuppala@apple.com>
703
704         Disable window occlusion notifications for App Store on Mac.
705         https://bugs.webkit.org/show_bug.cgi?id=110417
706
707         Reviewed by Simon Fraser.
708
709         Temporary fix to workaround issues with window occlusion notifications
710         in App Store.
711
712         * UIProcess/API/mac/WKView.mm:
713         (+[WKView _registerWindowOcclusionNotificationHandlers]): Return early
714         if the main bundle identifier matches that of App Store.
715
716 2013-02-20  Mark Rowe  <mrowe@apple.com>
717
718         <https://webkit.org/b/110410> Specify the plug-in process / service entitlements via the Xcode configuration.
719
720         This is the modern mechanism for applying entitlements to production builds,
721         and it simplifies the maintenance of entitlements going forward. It also allows
722         us to fix the new XPC PluginServices to have the same entitlements as PluginProcess.
723
724         Reviewed by Alexey Proskuryakov.
725
726         * Configurations/Base.xcconfig: Ad-hoc sign all WebKit2 components.
727         * Configurations/PluginProcess.xcconfig: Specify the entitlements to use.
728         * Configurations/PluginService.32.xcconfig: Ditto.
729         * Configurations/PluginService.64.xcconfig: Ditto.
730         * Configurations/PluginService.Development.xcconfig: Ditto.
731         * Configurations/PluginService.entitlements: Renamed from Source/WebKit2/PluginProcess/mac/PluginProcess.entitlements.
732         Move the entitlements in to the Configurations directory to make them easier to find.
733         * PluginProcess/mac/add-entitlements.sh: Removed. In my testing the dependency issue mentioned
734         in the script is not an issue with current versions of Xcode. If we see it again we can come
735         up with a workaround that doesn't involve performing the signing via a script phase.
736         * WebKit2.xcodeproj/project.pbxproj:
737
738 2013-02-20  Mark Rowe  <mrowe@apple.com>
739
740         <https://webkit.org/b/110409> Remove duplication between 32- and 64-bit PluginService plists.
741
742         Reviewed by Dan Bernstein.
743
744         The only difference between the plists was the CFBundleIdentifier. Since the values are the
745         same as the product name, we can just use the value of the PRODUCT_NAME configuration setting.
746
747         * Configurations/PluginService.32.xcconfig:
748         * Configurations/PluginService.64.xcconfig:
749         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32-64.Info.plist: Renamed from Source/WebKit2/PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist.
750         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist: Removed.
751
752 2013-02-20  Simon Fraser  <simon.fraser@apple.com>
753
754         Zoomed, slow-scrolling pages keep recreating tiles when scrolled
755         https://bugs.webkit.org/show_bug.cgi?id=110379
756
757         Reviewed by Tim Horton.
758
759         Make the visible rect and exposed rects passed through
760         the drawing area to the tile cache FloatRects instead of IntRects.
761
762         * UIProcess/API/mac/WKView.mm:
763         (-[WKView setFrameSize:]):
764         (-[WKView _updateWindowAndViewFrames]):
765         (-[WKView enableFrameSizeUpdates]):
766         (-[WKView setMinimumWidthForAutoLayout:]):
767         * UIProcess/WebPageProxy.h:
768         * UIProcess/mac/WebPageProxyMac.mm:
769         (WebKit::WebPageProxy::viewExposedRectChanged):
770         * WebProcess/WebPage/DrawingArea.h:
771         (WebKit::DrawingArea::setExposedRect):
772         * WebProcess/WebPage/WebPage.cpp:
773         (WebKit::WebPage::viewExposedRectChanged):
774         * WebProcess/WebPage/WebPage.h:
775         * WebProcess/WebPage/WebPage.messages.in:
776         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
777         (TiledCoreAnimationDrawingArea):
778         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
779         (WebKit::TiledCoreAnimationDrawingArea::setExposedRect):
780
781 2013-02-20  Dirk Schulze  <krit@webkit.org>
782
783         Enable CANVAS_PATH flag
784         https://bugs.webkit.org/show_bug.cgi?id=108508
785
786         Reviewed by Simon Fraser.
787
788         Enable CANVAS_PATH flag on trunk.
789
790         * Configurations/FeatureDefines.xcconfig:
791
792 2013-02-20  Laszlo Gombos  <l.gombos@samsung.com>
793
794         Remove unnecessary includes for Platform.h from headers
795         https://bugs.webkit.org/show_bug.cgi?id=110300
796
797         Reviewed by Alexey Proskuryakov.
798
799         wtf/Platform.h only need to be included in a few places directly    
800         as it is included in config.h. Remove the unnecessay duplicate as    
801         it can be confusing.
802
803         * Shared/PrintInfo.h:
804
805 2013-02-20  Huang Dongsung  <luxtella@company100.net>
806
807         [WK2] Remove m_viewportSize in WebPage.
808         https://bugs.webkit.org/show_bug.cgi?id=110311
809
810         Reviewed by Anders Carlsson.
811
812         EFL and Qt use m_viewSize as a contents size while Apple use it as a viewport
813         size, so EFL and Qt introduced m_viewportSize to make WebPage know a viewport
814         size.
815
816         EFL and Qt use m_viewSize as a contents size because the size of non compositing
817         layer is contents size, and EFL and Qt mark whole non compositing layer as dirty
818         using m_viewSize. Bug 110299 (http://webkit.org/b/110299) changes that it is not
819         necessary to know m_viewSize when marking whole non compositing layer as dirty.
820         So we can make EFL and Qt use m_viewSize as a viewport size also.
821
822         This patch removes m_viewportSize and related methods to increase readability.
823
824         * UIProcess/API/qt/raw/qrawwebview.cpp:
825         (QRawWebView::setSize):
826         * UIProcess/PageViewportController.cpp:
827         (WebKit::PageViewportController::didChangeViewportSize):
828         * UIProcess/WebPageProxy.cpp:
829         (WebKit):
830         * UIProcess/WebPageProxy.h:
831         (WebPageProxy):
832         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
833         (WebKit::WebChromeClient::pageRect):
834         (WebKit::WebChromeClient::contentsSizeChanged):
835         * WebProcess/WebPage/DrawingAreaImpl.cpp:
836         (WebKit::DrawingAreaImpl::updateBackingStoreState):
837         * WebProcess/WebPage/WebPage.cpp:
838         (WebKit::WebPage::setSize):
839         (WebKit::WebPage::sendViewportAttributesChanged):
840         * WebProcess/WebPage/WebPage.h:
841         (WebPage):
842         * WebProcess/WebPage/WebPage.messages.in:
843
844 2013-02-20  Huang Dongsung  <luxtella@company100.net>
845
846         [WK2] add setNeedsDisplay in DrawingArea to mark whole layer as dirty.
847         https://bugs.webkit.org/show_bug.cgi?id=110299
848
849         Reviewed by Anders Carlsson.
850
851         Currently, we call setNeedsDisplay with the size of WebPage to mark whole
852         backing store as dirty. However, the size of non compositing layer can be
853         inconsistent with the size of WebPage. For example, in Coordinated Graphics, the
854         size of non compositing layer is contents size.
855
856         So, WebPage should not assume the size of non compositing layer, and should just
857         call setNeedsDisplay when marking whole layer as dirty.
858
859         In addition, this patch renames from setNeedsDisplay() with a rect argument to
860         setNeedsDisplayInRect(), which matches to the terms of GraphicsLayer.
861
862         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
863         (WebKit::WebChromeClient::invalidateContentsAndRootView):
864         (WebKit::WebChromeClient::invalidateContentsForSlowScroll):
865         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
866         (WebKit::WebFrameLoaderClient::restoreViewState):
867         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
868         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplay):
869         (WebKit):
870         (WebKit::CoordinatedLayerTreeHost::setNonCompositedContentsNeedDisplayInRect):
871         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
872         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
873         (CoordinatedLayerTreeHost):
874         * WebProcess/WebPage/DrawingArea.h:
875         (DrawingArea):
876         * WebProcess/WebPage/DrawingAreaImpl.cpp:
877         (WebKit::DrawingAreaImpl::setNeedsDisplay):
878         (WebKit):
879         (WebKit::DrawingAreaImpl::setNeedsDisplayInRect):
880         (WebKit::DrawingAreaImpl::scroll):
881         (WebKit::DrawingAreaImpl::forceRepaint):
882         (WebKit::DrawingAreaImpl::didUninstallPageOverlay):
883         (WebKit::DrawingAreaImpl::setPageOverlayNeedsDisplay):
884         (WebKit::DrawingAreaImpl::resumePainting):
885         * WebProcess/WebPage/DrawingAreaImpl.h:
886         (DrawingAreaImpl):
887         * WebProcess/WebPage/LayerTreeHost.h:
888         (LayerTreeHost):
889         * WebProcess/WebPage/WebPage.cpp:
890         (WebKit::WebPage::setSize):
891         (WebKit::WebPage::setDrawsBackground):
892         (WebKit::WebPage::setDrawsTransparentBackground):
893         (WebKit::WebPage::resumeActiveDOMObjectsAndAnimations):
894         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
895         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplay):
896         (WebKit):
897         (WebKit::LayerTreeHostGtk::setNonCompositedContentsNeedDisplayInRect):
898         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
899         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
900         (LayerTreeHostGtk):
901         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
902         (LayerTreeHostMac):
903         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
904         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplay):
905         (WebKit):
906         (WebKit::LayerTreeHostMac::setNonCompositedContentsNeedDisplayInRect):
907         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
908         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
909         (RemoteLayerTreeDrawingArea):
910         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
911         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplay):
912         (WebKit):
913         (WebKit::RemoteLayerTreeDrawingArea::setNeedsDisplayInRect):
914         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
915         (TiledCoreAnimationDrawingArea):
916         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
917         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplay):
918         (WebKit):
919         (WebKit::TiledCoreAnimationDrawingArea::setNeedsDisplayInRect):
920
921 2013-02-20  Christophe Dumez  <ch.dumez@sisa.samsung.com>
922
923         [EFL][WK2] Port EwkPopupMenuItem to the C API
924         https://bugs.webkit.org/show_bug.cgi?id=108798
925
926         Reviewed by Kenneth Rohde Christiansen.
927
928         Make use of the new WKPopupItem C API inside EwkPopupMenuItem to remove
929         dependency on internal WebPopupItem type. Eina shared string members
930         are now lazily initialized to make the object cheaper to construct.
931
932         * UIProcess/API/efl/ewk_popup_menu.cpp:
933         (EwkPopupMenu::EwkPopupMenu):
934         * UIProcess/API/efl/ewk_popup_menu_item.cpp:
935         (EwkPopupMenuItem::EwkPopupMenuItem):
936         (EwkPopupMenuItem::type):
937         (EwkPopupMenuItem::textDirection):
938         (EwkPopupMenuItem::text):
939         (EwkPopupMenuItem::tooltipText):
940         (EwkPopupMenuItem::accessibilityText):
941         (EwkPopupMenuItem::hasTextDirectionOverride):
942         (EwkPopupMenuItem::isEnabled):
943         (EwkPopupMenuItem::isLabel):
944         (EwkPopupMenuItem::isSelected):
945         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
946         (EwkPopupMenuItem::create):
947         (EwkPopupMenuItem):
948
949 2013-02-19  Tim Horton  <timothy_horton@apple.com>
950
951         Clarify isInWindow vs. isVisible path through to RenderLayerCompositor
952         https://bugs.webkit.org/show_bug.cgi?id=110261
953         <rdar://problem/13196122>
954
955         Reviewed by Simon Fraser.
956
957         * WebProcess/WebPage/WebPage.cpp:
958         (WebKit::WebPage::setIsInWindow):
959         Use Page::setIsInWindow in addition to willMoveOffscreen/didMoveOnscreen.
960
961 2013-02-19  Conrad Shultz  <conrad_shultz@apple.com>
962
963         Allow UI clients to handle vertical wheel events.
964         https://bugs.webkit.org/show_bug.cgi?id=110006
965
966         Reviewed by Tim Horton.
967
968         Add API to allow clients to selectively control rubber-banding at vertical page extrema.
969
970         * UIProcess/API/C/WKPage.cpp:
971         (WKPageRubberBandsAtBottom):
972         Proxy for the corresponding function in WebCore::Page.
973         (WKPageSetRubberBandsAtBottom):
974         Ditto.
975         (WKPageRubberBandsAtTop):
976         Ditto.
977         (WKPageSetRubberBandsAtTop):
978         Ditto.
979
980         * UIProcess/API/C/WKPage.h:
981         Declare new API.
982
983         * UIProcess/WebPageProxy.cpp:
984         (WebKit::WebPageProxy::WebPageProxy):
985         Initialize new member variables.
986         (WebKit::WebPageProxy::setRubberBandsAtBottom):
987         New function; dispatches a matching message to the WebKit::WebPage.
988         (WebKit::WebPageProxy::setRubberBandsAtTop):
989         Ditto.
990
991         * UIProcess/WebPageProxy.h:
992         (WebPageProxy):
993         Declare new API.
994         (WebKit::WebPageProxy::rubberBandsAtBottom):
995         New accessor function.
996         (WebKit::WebPageProxy::rubberBandsAtTop):
997         Ditto.
998
999         * WebProcess/WebPage/WebPage.cpp:
1000         (WebKit::WebPage::setRubberBandsAtBottom):
1001         New function; call the matching function on the associated WebCore::Page.
1002         (WebKit::WebPage::setRubberBandsAtTop):
1003         Ditto.
1004
1005         * WebProcess/WebPage/WebPage.h:
1006         (WebPage):
1007         Declare new rubber-banding API.
1008
1009         * WebProcess/WebPage/WebPage.messages.in:
1010         Declare new rubber-banding API.
1011
1012 2013-02-19  Anders Carlsson  <andersca@apple.com>
1013
1014         StorageAreaProxy should know its quota
1015         https://bugs.webkit.org/show_bug.cgi?id=110268
1016
1017         Reviewed by Sam Weinig.
1018
1019         Begin stubbing out StorageAreaProxy::setItem and add some quota member variables.
1020
1021         * WebProcess/Storage/StorageAreaProxy.cpp:
1022         (WebKit::StorageAreaProxy::StorageAreaProxy):
1023         (WebKit::StorageAreaProxy::setItem):
1024         * WebProcess/Storage/StorageAreaProxy.h:
1025         (StorageAreaProxy):
1026         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1027         (WebKit::StorageNamespaceProxy::createSessionStorageNamespace):
1028         (WebKit::StorageNamespaceProxy::StorageNamespaceProxy):
1029         * WebProcess/Storage/StorageNamespaceProxy.h:
1030         (WebKit::StorageNamespaceProxy::quota):
1031         (StorageNamespaceProxy):
1032
1033 2013-02-19  Alexey Proskuryakov  <ap@apple.com>
1034
1035         <rdar://problem/13239119> NetworkProcess generates timeout spindump logs
1036
1037         Reviewed by Mark Rowe.
1038
1039         Don't keep a window server connection in processes that don't need it, and don't
1040         run an NSApplication run loop.
1041
1042         * Shared/ChildProcess.h:
1043         * Shared/mac/ChildProcessMac.mm: (WebKit::ChildProcess::shutdownWindowServerConnection):
1044         Added a function to shut down connections, and to make sure we don't get one in the future.
1045
1046         * NetworkProcess/mac/NetworkProcessMac.mm:
1047         (WebKit::NetworkProcess::initializeProcessName):
1048         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm:
1049         (WebKit::OfflineStorageProcess::initializeProcessName):
1050         * SharedWorkerProcess/mac/SharedWorkerProcessMac.mm:
1051         (WebKit::SharedWorkerProcess::platformInitializeSharedWorkerProcess): Also removed
1052         some unused includes and forward declarations.
1053
1054 2013-02-18  Alexey Proskuryakov  <ap@apple.com>
1055
1056         [WK2] Cannot load documents with blob urls
1057         https://bugs.webkit.org/show_bug.cgi?id=110160
1058
1059         Reviewed by Sam Weinig.
1060
1061         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::canHandleRequest):
1062         Added knowledge about blobs.
1063
1064 2013-02-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1065
1066         [GTK] Move the API to get TLS certificate from WebKitURIResponse to WebKitWebView
1067         https://bugs.webkit.org/show_bug.cgi?id=110190
1068
1069         Reviewed by Anders Carlsson.
1070
1071         Add webkit_web_view_get_tls_info() and remove
1072         webkit_uri_response_get_https_status(). This way I can be sure
1073         that when called after load has been committed the certificate
1074         will be available. It also makes the API easier to use.
1075
1076         * UIProcess/API/gtk/WebKitURIResponse.cpp:
1077         * UIProcess/API/gtk/WebKitURIResponse.h:
1078         * UIProcess/API/gtk/WebKitURIResponsePrivate.h:
1079         * UIProcess/API/gtk/WebKitWebView.cpp:
1080         (webkitWebViewLoadChanged):
1081         (mainResourceResponseChangedCallback):
1082         (webkit_web_view_get_tls_info):
1083         * UIProcess/API/gtk/WebKitWebView.h:
1084         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
1085         * UIProcess/API/gtk/tests/TestSSL.cpp:
1086
1087 2013-02-19  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1088
1089         [WK2][EFL] Eliminate access to WK2 C++ internals from ewk_view functions
1090         https://bugs.webkit.org/show_bug.cgi?id=109794
1091
1092         Reviewed by Anders Carlsson.
1093
1094         * UIProcess/API/C/efl/WKView.cpp:
1095         (WKViewSetShowsAsSource):
1096         (WKViewGetShowsAsSource):
1097
1098             Added new WKView API to wrap WebPageProxy::setMainFrameInViewSourceMode()
1099             and WebPageProxy::mainFrameInViewSourceMode() calls.
1100
1101         (WKViewExitFullScreen):
1102
1103             Added new WKView API to wrap WebFullScreenManagerProxy::exitFullScreen()
1104             calls.
1105
1106         * UIProcess/API/C/efl/WKView.h:
1107         * UIProcess/API/efl/EwkView.cpp:
1108         (EwkView::feedTouchEvent):
1109
1110             Added feedTouchEvent() method so that: at first ewk_view_feed_touch_event()
1111             is not invoked from EwkView class, secondly ewk_view_feed_touch_event() does
1112             not access WebPage instance directly.
1113
1114         (EwkView::feedTouchEvents):
1115         * UIProcess/API/efl/EwkView.h:
1116         (EwkView):
1117         * UIProcess/API/efl/ewk_view.cpp:
1118         (ewk_view_feed_touch_event):
1119         (ewk_view_pagination_mode_set):
1120         (ewk_view_pagination_mode_get):
1121         (ewk_view_fullscreen_exit):
1122         (ewkViewPageContentsCallback):
1123         (ewk_view_page_contents_get):
1124         (ewk_view_source_mode_set):
1125         (ewk_view_source_mode_get):
1126
1127             Those are now using exported C API.
1128
1129         * UIProcess/efl/WebView.cpp:
1130         (WebKit::WebView::setShowsAsSource):
1131         (WebKit):
1132         (WebKit::WebView::showsAsSource):
1133         (WebKit::WebView::exitFullScreen):
1134         * UIProcess/efl/WebView.h:
1135         (WebView):
1136
1137             Added WebView methods to support added WKView API.
1138
1139 2013-02-19  Andras Becsi  <andras.becsi@digia.com>
1140
1141         [Qt][WK2] ASSERT(node) hit in WebPage::findZoomableAreaForPoint if no zoomable area found
1142         https://bugs.webkit.org/show_bug.cgi?id=110220
1143
1144         Reviewed by Allan Sandfeld Jensen.
1145
1146         If EventHandler::bestZoomableAreaForTouchPoint was unsuccessfull, eg.
1147         no node was found for a given point, we hit ASSERT(node).
1148         We should only assert for a valid node if a zoomable area was found.
1149
1150         * WebProcess/WebPage/WebPage.cpp:
1151         (WebKit::WebPage::findZoomableAreaForPoint):
1152
1153 2013-02-19  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1154
1155         Regression(r143273): Caused a lot of tests to time out
1156         https://bugs.webkit.org/show_bug.cgi?id=110212
1157
1158         Reviewed by Anders Carlsson.
1159
1160         StorageManager::destroySessionStorageNamespace() and StorageManager::cloneSessionStorageNamespace()
1161         should call their respective "*Internal" equivalent instead of calling themselves. This lead to
1162         a lot of time outs on our build bots.
1163
1164         * UIProcess/Storage/StorageManager.cpp:
1165         (WebKit::StorageManager::destroySessionStorageNamespace):
1166         (WebKit::StorageManager::cloneSessionStorageNamespace):
1167
1168 2013-02-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1169
1170         [GTK] Remove webkit_web_view_get_subresources from WebKit2 GTK+ API
1171         https://bugs.webkit.org/show_bug.cgi?id=110125
1172
1173         Reviewed by Anders Carlsson.
1174
1175         This API is currently implemented caching all resources in the
1176         WebView which causes some problems in documents loading resources
1177         indefinitely. This API was used in WebKit1 mainly to implement
1178         webkit_web_view_save(), but we already have such API in
1179         WebKit2.
1180
1181         * UIProcess/API/gtk/WebKitInjectedBundleClient.cpp:
1182         (didReceiveWebViewMessageFromInjectedBundle):
1183         * UIProcess/API/gtk/WebKitWebView.cpp:
1184         (_WebKitWebViewPrivate):
1185         (webkitWebViewLoadChanged):
1186         * UIProcess/API/gtk/WebKitWebView.h:
1187         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
1188         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
1189         * UIProcess/API/gtk/tests/TestResources.cpp:
1190         (testWebViewResources):
1191         (testWebResourceGetData):
1192
1193 2013-02-18  Christophe Dumez  <dchris@gmail.com>
1194
1195         [WK2][EFL] Stop using internal C++ API in ewk_error
1196         https://bugs.webkit.org/show_bug.cgi?id=108796
1197
1198         Reviewed by Benjamin Poulain.
1199
1200         Stop using internal C++ API in ewk_error and use C API instead of avoid
1201         violating API layering.
1202
1203         * UIProcess/API/efl/ewk_error.cpp:
1204         (EwkError::domain):
1205         (EwkError::isCancellation):
1206         (ewk_error_type_get):
1207         * UIProcess/API/efl/ewk_error_private.h:
1208         (EwkError):
1209
1210 2013-02-18  Simon Fraser  <simon.fraser@apple.com>
1211
1212         Clean up the boolean argument to visibleContentRect
1213         https://bugs.webkit.org/show_bug.cgi?id=110167
1214
1215         Reviewed by Simon Fraser.
1216         
1217         Replace the boolean argument to visibleContentRect() with
1218         an enum.
1219
1220         * WebProcess/WebPage/WebFrame.cpp:
1221         (WebKit::WebFrame::visibleContentBounds):
1222         (WebKit::WebFrame::visibleContentBoundsExcludingScrollbars):
1223
1224 2013-02-18  Anders Carlsson  <andersca@apple.com>
1225
1226         Add a DefaultHash for RefPtr<SecurityOrigin>
1227         https://bugs.webkit.org/show_bug.cgi?id=110170
1228
1229         Reviewed by Andreas Kling.
1230
1231         Remove all explicit uses of SecurityOriginHash.
1232
1233         * UIProcess/Storage/StorageManager.cpp:
1234         (StorageManager::SessionStorageNamespace):
1235         * WebProcess/ApplicationCache/WebApplicationCacheManager.cpp:
1236         (WebKit::WebApplicationCacheManager::getApplicationCacheOrigins):
1237         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1238         (WebKit::InjectedBundle::originsWithApplicationCache):
1239         * WebProcess/Notifications/NotificationPermissionRequestManager.h:
1240         Include SecurityOriginHash.h. This fixes a bug where m_originToIDMap used pointer-equality
1241         for looking up security origins.
1242
1243         * WebProcess/ResourceCache/WebResourceCacheManager.cpp:
1244         (WebKit::WebResourceCacheManager::clearCacheForOrigin):
1245         This can just take a const reference.
1246
1247         * WebProcess/ResourceCache/WebResourceCacheManager.h:
1248
1249 2013-02-18  Anders Carlsson  <andersca@apple.com>
1250
1251         Begin stubbing out session storage classes
1252         https://bugs.webkit.org/show_bug.cgi?id=110168
1253
1254         Reviewed by Andreas Kling.
1255
1256         * UIProcess/Storage/StorageManager.cpp:
1257         (StorageManager::StorageArea):
1258         (WebKit):
1259         (WebKit::StorageManager::StorageArea::create):
1260         (WebKit::StorageManager::StorageArea::StorageArea):
1261         (WebKit::StorageManager::StorageArea::~StorageArea):
1262         (StorageManager::SessionStorageNamespace):
1263         (WebKit::StorageManager::SessionStorageNamespace::isEmpty):
1264         (WebKit::StorageManager::SessionStorageNamespace::create):
1265         (WebKit::StorageManager::SessionStorageNamespace::SessionStorageNamespace):
1266         (WebKit::StorageManager::SessionStorageNamespace::~SessionStorageNamespace):
1267         (WebKit::StorageManager::SessionStorageNamespace::cloneTo):
1268         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1269         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
1270         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
1271         * UIProcess/Storage/StorageManager.h:
1272         (StorageManager):
1273
1274 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1275
1276         [EFL][WK2] Add C API for popup menu and popup item
1277         https://bugs.webkit.org/show_bug.cgi?id=109083
1278
1279         Reviewed by Anders Carlsson.
1280
1281         WK2 EFL delegates display of the popup menu to the browser which causes
1282         us to have a strong interdependency between internal C++ classes
1283         (WebPopupMenuProxyEfl, WebPopupItem) and our EFL API implementation
1284         (EwkView, EwkPopupMenu, EwkPopupMenuItem).
1285
1286         Since we want to remove this interdependency, this patch introduces a
1287         for WebPopupMenuProxyEfl (WKPopupMenuListener) and for WebPopupItem
1288         (WKPopupItem). It also introduces a WKPage client with callbacks for
1289         showPopupMenu and hidePopupMenu.
1290
1291         Note that the popup menu functionality is covered by ewk_popup_menu API
1292         tests and no functionality is lost.
1293
1294         * PlatformEfl.cmake: Add new files to EFL CMake config.
1295         * Shared/API/c/efl/WKBaseEfl.h: Add typedefs for WKPopupItemRef and
1296         WKPopupMenuListenerRef.
1297         * Shared/APIObject.h: Add new TypePopupMenuItem APIObject type for EFL
1298         platform.
1299         * UIProcess/API/C/efl/WKAPICastEfl.h: Add mapping for WKPopupItemRef
1300         and WKPopupMenuListenerRef API types.
1301         (WebKit):
1302         (WebKit::toAPI):
1303         * UIProcess/API/C/efl/WKPageEfl.cpp: Added.
1304         (WKPageSetUIPopupMenuClient): Add new C API to set the UI Popup Menu
1305         client on the page.
1306         * UIProcess/API/C/efl/WKPageEfl.h: Added.
1307         * UIProcess/API/C/efl/WKPopupItem.cpp: Added. Add C API for WebPopupItem.
1308         (WKPopupItemGetType):
1309         (WKPopupItemGetTextDirection):
1310         (WKPopupItemHasTextDirectionOverride):
1311         (WKPopupItemCopyText):
1312         (WKPopupItemCopyToolTipText):
1313         (WKPopupItemCopyAccessibilityText):
1314         (WKPopupItemIsEnabled):
1315         (WKPopupItemIsLabel):
1316         (WKPopupItemIsSelected):
1317         * UIProcess/API/C/efl/WKPopupItem.h: Added.
1318         * UIProcess/API/C/efl/WKPopupMenuListener.cpp: Added. Add C API for
1319         WebPopupMenuListenerEfl (formerly WebPopupMenuProxyEfl) so that the
1320         client can report which popup menu item was selected.
1321         (WKPopupMenuListenerSetSelection):
1322         * UIProcess/API/C/efl/WKPopupMenuListener.h: Added.
1323         * UIProcess/API/efl/EwkView.cpp: Remove dependency on internal C++ types
1324         (WebPopupMenuProxyEfl and WebPopupItem) and use C API types instead.
1325         (EwkView::requestPopupMenu):
1326         * UIProcess/API/efl/EwkView.h:
1327         (WebKit):
1328         (EwkView):
1329         * UIProcess/API/efl/ewk_popup_menu.cpp: Use C API for Popup menu.
1330         (EwkPopupMenu::EwkPopupMenu):
1331         (EwkPopupMenu::setSelectedIndex):
1332         * UIProcess/API/efl/ewk_popup_menu_private.h:
1333         (EwkPopupMenu::create):
1334         (EwkPopupMenu):
1335         * UIProcess/WebPageProxy.cpp: Use WKPageUIPopupMenuClient to show / hide
1336         the popup menu on EFL port instead of asking the WebPopupMenuProxy.
1337         (WebKit::WebPageProxy::close):
1338         (WebKit::WebPageProxy::showPopupMenu):
1339         (WebKit::WebPageProxy::hidePopupMenu):
1340         * UIProcess/WebPageProxy.h: Add new WKPageUIPopupMenuClient member and
1341         corresponding initialization method.
1342         (WebPageProxy):
1343         * UIProcess/WebPopupMenuProxy.h: Disable showPopupMenu / hidePopupMenu
1344         virtual methods on EFL port since we go via WKPageUIPopupMenuClient
1345         for this now.
1346         (WebPopupMenuProxy):
1347         * UIProcess/efl/PageUIClientEfl.cpp:
1348         (WebKit::PageUIClientEfl::PageUIClientEfl): Handle WKPageUIPopupMenuClient
1349         callbacks and call corresponding EwkView methods. Previously, the EwkView
1350         methods were called by the internal WebPageProxyEfl class which is no
1351         longer needed.
1352         (WebKit::PageUIClientEfl::showPopupMenu):
1353         (WebKit):
1354         (WebKit::PageUIClientEfl::hidePopupMenu):
1355         * UIProcess/efl/PageUIClientEfl.h:
1356         (PageUIClientEfl):
1357         * UIProcess/efl/WebPageProxyEfl.cpp:
1358         (WebKit::WebPageProxy::initializeUIPopupMenuClient):
1359         (WebKit):
1360         * UIProcess/efl/WebPopupItemEfl.cpp: Added. Add APIObject wrapper for
1361         WebPopupItem so that we can use it in WKPageUIPopupMenuClient.
1362         (WebKit):
1363         (WebKit::WebPopupItemEfl::WebPopupItemEfl):
1364         (WebKit::WebPopupItemEfl::~WebPopupItemEfl):
1365         * UIProcess/efl/WebPopupItemEfl.h: Added.
1366         (WebKit):
1367         (WebPopupItemEfl):
1368         (WebKit::WebPopupItemEfl::create):
1369         (WebKit::WebPopupItemEfl::data):
1370         (WebKit::WebPopupItemEfl::itemType):
1371         (WebKit::WebPopupItemEfl::text):
1372         (WebKit::WebPopupItemEfl::textDirection):
1373         (WebKit::WebPopupItemEfl::hasTextDirectionOverride):
1374         (WebKit::WebPopupItemEfl::toolTipText):
1375         (WebKit::WebPopupItemEfl::accessibilityText):
1376         (WebKit::WebPopupItemEfl::isEnabled):
1377         (WebKit::WebPopupItemEfl::isLabel):
1378         (WebKit::WebPopupItemEfl::isSelected):
1379         (WebKit::WebPopupItemEfl::type):
1380         * UIProcess/efl/WebPopupMenuListenerEfl.cpp: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.cpp.
1381         Use WebPopupMenuListenerEfl name instead of WebPopupMenuProxyEfl since
1382         it more accurately represents its functionality now.
1383         (WebKit):
1384         (WebKit::WebPopupMenuListenerEfl::WebPopupMenuListenerEfl):
1385         (WebKit::WebPopupMenuListenerEfl::valueChanged):
1386         * UIProcess/efl/WebPopupMenuListenerEfl.h: Renamed from Source/WebKit2/UIProcess/efl/WebPopupMenuProxyEfl.h.
1387         (WebKit):
1388         (WebPopupMenuListenerEfl):
1389         (WebKit::WebPopupMenuListenerEfl::create):
1390         * UIProcess/efl/WebUIPopupMenuClient.cpp: Added.
1391         (WebUIPopupMenuClient::showPopupMenu):
1392         (WebUIPopupMenuClient::hidePopupMenu):
1393         * UIProcess/efl/WebUIPopupMenuClient.h: Added.
1394         (WebKit):
1395         (WebUIPopupMenuClient):
1396         * UIProcess/efl/WebView.cpp:
1397         (WebKit::WebView::createPopupMenuProxy):
1398
1399 2013-02-18  Anders Carlsson  <andersca@apple.com>
1400
1401         Add StorageManager member functions for keeping track of session storage namespaces
1402         https://bugs.webkit.org/show_bug.cgi?id=110163
1403
1404         Reviewed by Andreas Kling.
1405
1406         * UIProcess/Storage/StorageManager.cpp:
1407         (WebKit::StorageManager::createSessionStorageNamespace):
1408         (WebKit):
1409         (WebKit::StorageManager::destroySessionStorageNamespace):
1410         (WebKit::StorageManager::cloneSessionStorageNamespace):
1411         (WebKit::StorageManager::createSessionStorageNamespaceInternal):
1412         (WebKit::StorageManager::destroySessionStorageNamespaceInternal):
1413         (WebKit::StorageManager::cloneSessionStorageNamespaceInternal):
1414         * UIProcess/Storage/StorageManager.h:
1415         (StorageManager):
1416         * UIProcess/WebContext.h:
1417         (WebKit::WebContext::storageManager):
1418         (WebContext):
1419         * UIProcess/WebPageProxy.cpp:
1420         (WebKit::WebPageProxy::WebPageProxy):
1421         (WebKit::WebPageProxy::close):
1422         (WebKit::WebPageProxy::createNewPage):
1423
1424 2013-02-18  Anders Carlsson  <andersca@apple.com>
1425
1426         StorageManager message handlers should take the connection
1427         https://bugs.webkit.org/show_bug.cgi?id=110151
1428
1429         Reviewed by Andreas Kling.
1430
1431         * Platform/CoreIPC/HandleMessage.h:
1432         (CoreIPC):
1433         (CoreIPC::callMemberFunction):
1434         (CoreIPC::handleMessage):
1435         * Scripts/webkit2/messages.py:
1436         (sync_message_statement):
1437         (generate_message_handler):
1438         * UIProcess/Storage/StorageManager.cpp:
1439         (WebKit::StorageManager::createStorageArea):
1440         (WebKit::StorageManager::destroyStorageArea):
1441         (WebKit::StorageManager::getValues):
1442         * UIProcess/Storage/StorageManager.h:
1443         (StorageManager):
1444         * UIProcess/Storage/StorageManager.messages.in:
1445
1446 2013-02-18  Christophe Dumez  <christophe.dumez@intel.com>
1447
1448         [EFL][WK2] Use C API inside ewk_security_origin
1449         https://bugs.webkit.org/show_bug.cgi?id=107923
1450
1451         Reviewed by Alexey Proskuryakov.
1452
1453         Use C API inside ewk_security_origin instead of accessing
1454         directly internal C++ classes, to avoid breaking API
1455         layering.
1456
1457         * UIProcess/API/efl/EwkView.cpp:
1458         (EwkView::enterFullScreen):
1459         * UIProcess/API/efl/ewk_security_origin.cpp:
1460         (EwkSecurityOrigin::EwkSecurityOrigin):
1461         * UIProcess/API/efl/ewk_security_origin_private.h:
1462         (EwkSecurityOrigin::create):
1463         (EwkSecurityOrigin):
1464
1465 2013-01-04  Jer Noble  <jer.noble@apple.com>
1466
1467         pinch-zooming webpage messes up full-screening of embedded video
1468         https://bugs.webkit.org/show_bug.cgi?id=106115
1469
1470         Reviewed by Maciej Stachowiak.
1471
1472         Reset the page scale when entering full screen, and reset to the original scale when exiting.
1473
1474         * UIProcess/mac/WKFullScreenWindowController.h:
1475         * UIProcess/mac/WKFullScreenWindowController.mm:
1476         (-[WKFullScreenWindowController enterFullScreen:]):
1477         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
1478
1479 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1480
1481         [EFL][WK2] Disable failing API tests
1482         https://bugs.webkit.org/show_bug.cgi?id=110081
1483
1484         Reviewed by Kenneth Rohde Christiansen.
1485
1486         Disable EWK2UnitTestBase.ewk_view_scale API test as it is failing.
1487
1488         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1489         (TEST_F):
1490
1491 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1492
1493         [Qt][WK2] Support WK2 API tests
1494         https://bugs.webkit.org/show_bug.cgi?id=109843
1495
1496         Reviewed by Jocelyn Turcotte.
1497
1498         * UIProcess/API/qt/qquickwebview_p.h:
1499         (TestWebKitAPI):
1500
1501 2013-02-18  Andras Becsi  <andras.becsi@digia.com>
1502
1503         [Qt][WK2] Changing WebView.contentY and WebView.contentX does not redraw content
1504         https://bugs.webkit.org/show_bug.cgi?id=108337
1505
1506         Reviewed by Jocelyn Turcotte.
1507
1508         We should not ignore content position changes unless pinch zoom or bounce-back
1509         animation is ongoing.
1510         This way we notify the web process about visible rect changes if the contentX
1511         and contentY properties are used to programmatically scroll the content from QML.
1512         One important usecase for this is when implementing scrollbars.
1513
1514         * UIProcess/qt/PageViewportControllerClientQt.cpp:
1515         (WebKit::PageViewportControllerClientQt::PageViewportControllerClientQt):
1516         (WebKit::PageViewportControllerClientQt::flickMoveStarted):
1517         (WebKit::PageViewportControllerClientQt::flickMoveEnded):
1518         (WebKit::PageViewportControllerClientQt::pageItemPositionChanged):
1519         (WebKit::PageViewportControllerClientQt::scaleAnimationStateChanged):
1520         (WebKit::PageViewportControllerClientQt::pinchGestureStarted):
1521
1522 2013-02-18  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
1523
1524         [WK2][EFL] Unified text checker implementation
1525         https://bugs.webkit.org/show_bug.cgi?id=107682
1526
1527         Reviewed by Anders Carlsson.
1528
1529         * UIProcess/efl/TextCheckerEfl.cpp:
1530         (WebKit):
1531         (WebKit::nextWordOffset):
1532         Helper function to determine the word offset to do not call
1533         client's checkSpellingOfString for the word separators.
1534
1535         (WebKit::TextChecker::checkTextOfParagraph):
1536         Allow to check spelling for multiple words,
1537         their misspelling location and length are saved to the vector.
1538
1539         * WebProcess/WebCoreSupport/WebEditorClient.h:
1540         Add UNIFIED_TEXT_CHECKING guard to checkTextOfParagraph.
1541
1542         * WebProcess/WebCoreSupport/efl/WebEditorClientEfl.cpp:
1543         (WebKit):
1544         (WebKit::WebEditorClient::checkTextOfParagraph):
1545         As spelling implementation is exposed to UIProcess,
1546         send a meesage to UIProcess to call TextChecker::checkTextOfParagraph.
1547
1548 2013-02-18  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1549
1550         [EFL][WK2] Refactor Ewk_Favicon code and stop relying on internal C++ API
1551         https://bugs.webkit.org/show_bug.cgi?id=108598
1552
1553         Reviewed by Kenneth Rohde Christiansen.
1554
1555         Refactor the Ewk_Favicon code so that it no longer relies on internal
1556         C++ API and so that it is based solely on the C API. The API is changed
1557         a little as well so that the Favicon URL is no longer exposed to the
1558         client. Also the client is now only notified of icon changes once the
1559         favicon data is actually available.
1560
1561         The API is covered by existing API tests and by MiniBrowser which are
1562         both updated accordingly in this patch.
1563
1564         * UIProcess/API/efl/EwkView.cpp:
1565         (EwkView::informURLChange):
1566         (EwkView::createFavicon):
1567         (EwkView::onFaviconChanged):
1568         * UIProcess/API/efl/EwkView.h:
1569         (EwkView):
1570         * UIProcess/API/efl/EwkViewCallbacks.h:
1571         * UIProcess/API/efl/ewk_favicon_database.cpp:
1572         Client are now notified of favicon changes only when the favicon data
1573         becomes available and make API to retrieve a favicon synchronous. NULL
1574         is returned if the favicon data is not available.
1575
1576         (EwkFaviconDatabase::EwkFaviconDatabase):
1577         (EwkFaviconDatabase::getIconSurfaceSynchronously):
1578         (EwkFaviconDatabase::iconDataReadyForPageURL):
1579         (ewk_favicon_database_icon_get):
1580         * UIProcess/API/efl/ewk_favicon_database.h:
1581         * UIProcess/API/efl/ewk_favicon_database_private.h:
1582         (EwkFaviconDatabase):
1583         * UIProcess/API/efl/ewk_view.cpp:
1584         (ewk_view_favicon_get):
1585         * UIProcess/API/efl/ewk_view.h:
1586         Rename 'icon,changed' signal to 'favicon,changed' for clarity and
1587         consistency with the rest of the favicon API. Remove API to retrieve
1588         the favicon URL and replace it by one to retrieve the favicon image as
1589         an Evas_Object instead.
1590
1591         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
1592         Update API tests to use the new favicon API.
1593
1594 2013-02-17  Jae Hyun Park  <jae.park@company100.net>
1595
1596         Remove unnecessary public method DrawingAreaImpl::createGraphicsContext()
1597         https://bugs.webkit.org/show_bug.cgi?id=109893
1598
1599         Reviewed by Anders Carlsson.
1600
1601         DrawingAreaImpl::createGraphicsContext() is unnecessary since
1602         createGraphicsContext can be called directly using ShareableBitmap.
1603
1604         * WebProcess/WebPage/DrawingAreaImpl.cpp:
1605         (WebKit::DrawingAreaImpl::display):
1606         * WebProcess/WebPage/DrawingAreaImpl.h:
1607         (DrawingAreaImpl):
1608
1609 2013-02-17  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
1610
1611         [WK2][EFL] Remove fullscreen manager proxy as a message receiver on invalidate()
1612         https://bugs.webkit.org/show_bug.cgi?id=109451
1613
1614         Reviewed by Anders Carlsson.
1615
1616         Remove fullscreen manager proxy as a message receiver on invalidate(), like
1617         other ports do after r142160.
1618
1619         * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp:
1620         (WebKit::WebFullScreenManagerProxy::invalidate):
1621
1622 2013-02-17  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1623
1624         Regression(r143124): Caused plugins/plugin-javascript-access.html to fail
1625         https://bugs.webkit.org/show_bug.cgi?id=110053
1626
1627         Reviewed by Alexey Proskuryakov.
1628
1629         Clear m_plugins in loadPluginsIfNecessary() before populating the
1630         vector again. We get duplicates otherwise.
1631
1632         * UIProcess/Plugins/PluginInfoStore.cpp:
1633         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1634
1635 2013-02-16  Andreas Kling  <akling@apple.com>
1636
1637         Remove multi-threading gunk from PluginInfoStore.
1638         <http://webkit.org/b/110046>
1639
1640         Reviewed by Alexey Proskuryakov.
1641
1642         PluginInfoStore is never accessed from multiple threads anymore, so remove the Mutex locking
1643         and stop making isolated copies of everything.
1644
1645         * Shared/Plugins/PluginModuleInfo.h:
1646         (PluginModuleInfo):
1647         * UIProcess/Plugins/PluginInfoStore.cpp:
1648         (WebKit::PluginInfoStore::loadPluginsIfNecessary):
1649         (WebKit::PluginInfoStore::plugins):
1650         (WebKit::PluginInfoStore::findPluginForMIMEType):
1651         (WebKit::PluginInfoStore::findPluginForExtension):
1652         (WebKit::PluginInfoStore::findPlugin):
1653         (WebKit::PluginInfoStore::infoForPluginWithPath):
1654         * UIProcess/Plugins/PluginInfoStore.h:
1655         (PluginInfoStore):
1656
1657 2013-02-16  Sam Weinig  <sam@webkit.org>
1658
1659         Fix non-production builds.
1660
1661         * WebKit2.xcodeproj/project.pbxproj:
1662
1663 2013-02-16  Sam Weinig  <sam@webkit.org>
1664
1665         The Plugin.32 target does not build
1666         https://bugs.webkit.org/show_bug.cgi?id=110032
1667
1668         Reviewed by Anders Carlsson.
1669
1670         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm: Removed.
1671         This was meant to be removed already.
1672
1673         * WebKit2.xcodeproj/project.pbxproj:
1674         Add Plugin.32 as dependency in All as it should be.
1675
1676 2013-02-16  Darin Adler  <darin@apple.com>
1677
1678         Fix WKDOMRangePrivate.h mistakes
1679         https://bugs.webkit.org/show_bug.cgi?id=110028
1680
1681         Reviewed by Ryosuke Niwa.
1682
1683         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
1684         Added include of WKDOMRangePrivate.h.
1685
1686         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h:
1687         Fixed class name and include to be WKDOMRange.
1688         Fixed method name, _copyBundleRangeHandleRef, to match the
1689         name in the source file.
1690
1691 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
1692
1693         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
1694         https://bugs.webkit.org/show_bug.cgi?id=109996
1695
1696         Reviewed by Simon Fraser.
1697
1698         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1699         (InitWebCoreSystemInterface):
1700
1701 2013-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>
1702
1703         Unreviewed, rolling out r143088.
1704         http://trac.webkit.org/changeset/143088
1705         https://bugs.webkit.org/show_bug.cgi?id=110000
1706
1707         Breaks the build (Requested by dgorbik on #webkit).
1708
1709         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1710         (InitWebCoreSystemInterface):
1711
1712 2013-02-15  Kiran Muppala  <cmuppala@apple.com>
1713
1714         Disable sudden termination on Mac
1715         https://bugs.webkit.org/show_bug.cgi?id=109990
1716
1717         Reviewed by Mark Rowe.
1718
1719         Sudden Termination is causing WebContent XPC services to be killed in
1720         response to memory pressure.  Hence, disable it until we can identify
1721         if it is being enabled in error or not.
1722
1723         * Shared/mac/ChildProcessMac.mm:
1724         (WebKit::ChildProcess::platformInitialize): Add call to
1725         [NSProcessInfo disableSuddenTermination].
1726
1727 2013-02-15  Eric Carlson  <eric.carlson@apple.com>
1728
1729         [Mac] remove wkCaptionAppearance from WebKitSystemInterface
1730         https://bugs.webkit.org/show_bug.cgi?id=109996
1731
1732         Reviewed by Simon Fraser.
1733
1734         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1735         (InitWebCoreSystemInterface):
1736
1737 2013-02-15  Adenilson Cavalcanti  <cavalcantii@gmail.com>
1738
1739         [Qt][WK2] Crash on window resize if WebProcess is closed/crashed
1740         https://bugs.webkit.org/show_bug.cgi?id=109216
1741
1742         Reviewed by Benjamin Poulain.
1743
1744         Only make calls into DrawingAreaProxy pointer after checking its state.
1745
1746         When the WebProcess was closed or crashed, WebKit::WebPageProxy will set
1747         its DrawingAreaProxy pointer to null. Resize events on UIProcess/client will
1748         try to access the object to update the geometry and forward this information
1749         into the WebProcess. This would create a crash scenario that is fixed by this patch.
1750
1751         * UIProcess/API/qt/qquickwebview.cpp:
1752         (QQuickWebViewPrivate::didRelaunchProcess):
1753         (QQuickWebViewLegacyPrivate::updateViewportSize):
1754
1755 2013-02-15  Anders Carlsson  <andersca@apple.com>
1756
1757         Add HashMap::isValidKey and HashSet::isValidValue
1758         https://bugs.webkit.org/show_bug.cgi?id=109977
1759
1760         Reviewed by Sam Weinig and Darin Adler.
1761
1762         Just call HashMap::isValidKey directly.
1763
1764         * UIProcess/WebProcessProxy.cpp:
1765         (WebKit::generatePageID):
1766         Initialize the id to 0 and use prefix increment.
1767
1768         (WebKit::WebProcessProxy::webFrame):
1769         (WebKit::WebProcessProxy::canCreateFrame):
1770         (WebKit::WebProcessProxy::didDestroyFrame):
1771
1772 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
1773
1774         Typo fix after r143064.
1775
1776         * Platform/CoreIPC/win/ConnectionWin.cpp:
1777         (CoreIPC::Connection::sendOutgoingMessage):
1778
1779 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
1780
1781         One more buildfix after r143052.
1782
1783         * Platform/CoreIPC/win/ConnectionWin.cpp:
1784         (CoreIPC::Connection::sendOutgoingMessage):
1785
1786 2013-02-15  Csaba Osztrogonác  <ossy@webkit.org>
1787
1788         Unreviewed buildfix after r143052 for Qt/GTK/EFL ports.
1789
1790         * Platform/unix/SharedMemoryUnix.cpp:
1791         (WebKit::SharedMemory::Handle::encode):
1792         * Platform/win/SharedMemoryWin.cpp:
1793         (WebKit::SharedMemory::Handle::encode):
1794         * Shared/Network/NetworkResourceLoadParameters.cpp:
1795         (WebKit::NetworkResourceLoadParameters::encode):
1796         * Shared/WebBatteryStatus.cpp:
1797         (WebKit::WebBatteryStatus::Data::encode):
1798         * Shared/WebNetworkInfo.cpp:
1799         (WebKit::WebNetworkInfo::Data::encode):
1800         * Shared/efl/LayerTreeContextEfl.cpp:
1801         (WebKit::LayerTreeContext::encode):
1802         * Shared/gtk/LayerTreeContextGtk.cpp:
1803         (WebKit::LayerTreeContext::encode):
1804         * Shared/qt/LayerTreeContextQt.cpp:
1805         (WebKit::LayerTreeContext::encode):
1806         * Shared/qt/QtNetworkReplyData.cpp:
1807         (WebKit::QtNetworkReplyData::encode):
1808         * Shared/qt/QtNetworkRequestData.cpp:
1809         (WebKit::QtNetworkRequestData::encode):
1810         * Shared/soup/PlatformCertificateInfo.cpp:
1811         (WebKit::PlatformCertificateInfo::encode):
1812
1813 2013-02-15  Anders Carlsson  <andersca@apple.com>
1814
1815         Make most ArgumentEncoder::encode member functions private
1816         https://bugs.webkit.org/show_bug.cgi?id=109973
1817
1818         Reviewed by Sam Weinig.
1819
1820         Make the encode overloads private; the stream operator should be used instead.
1821
1822         * Platform/CoreIPC/ArgumentEncoder.h:
1823         (ArgumentEncoder):
1824         * Platform/CoreIPC/Arguments.h:
1825         (CoreIPC::Arguments1::encode):
1826         (CoreIPC::Arguments2::encode):
1827         (CoreIPC::Arguments3::encode):
1828         (CoreIPC::Arguments4::encode):
1829         (CoreIPC::Arguments5::encode):
1830         (CoreIPC::Arguments6::encode):
1831         (CoreIPC::Arguments7::encode):
1832         (CoreIPC::Arguments8::encode):
1833         (CoreIPC::Arguments10::encode):
1834         * Platform/CoreIPC/Connection.cpp:
1835         (CoreIPC::Connection::createSyncMessageEncoder):
1836         * Platform/CoreIPC/MessageEncoder.cpp:
1837         (CoreIPC::MessageEncoder::MessageEncoder):
1838         * Scripts/webkit2/messages.py:
1839         (generate_message_handler):
1840         * Scripts/webkit2/messages_unittest.py:
1841         * Shared/Network/NetworkResourceLoadParameters.cpp:
1842         (WebKit::NetworkResourceLoadParameters::encode):
1843         * WebProcess/WebPage/EncoderAdapter.cpp:
1844         (WebKit::EncoderAdapter::EncoderAdapter):
1845         (WebKit::EncoderAdapter::encodeBytes):
1846         (WebKit::EncoderAdapter::encodeBool):
1847         (WebKit::EncoderAdapter::encodeUInt16):
1848         (WebKit::EncoderAdapter::encodeUInt32):
1849         (WebKit::EncoderAdapter::encodeUInt64):
1850         (WebKit::EncoderAdapter::encodeInt32):
1851         (WebKit::EncoderAdapter::encodeInt64):
1852         (WebKit::EncoderAdapter::encodeFloat):
1853         (WebKit::EncoderAdapter::encodeDouble):
1854         (WebKit::EncoderAdapter::encodeString):
1855
1856 2013-02-15  Anders Carlsson  <andersca@apple.com>
1857
1858         Add a synchronous GetValues message to StorageManager
1859         https://bugs.webkit.org/show_bug.cgi?id=109968
1860
1861         Reviewed by Sam Weinig.
1862
1863         * Platform/CoreIPC/Connection.cpp:
1864         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
1865         Handle synchronous messages.
1866
1867         (CoreIPC::Connection::processIncomingMessage):
1868         Check for work queue message receivers before doing any other processing.
1869
1870         * UIProcess/Storage/StorageManager.cpp:
1871         (WebKit::StorageManager::getValues):
1872         Add empty stub.
1873
1874         * UIProcess/Storage/StorageManager.h:
1875         * UIProcess/Storage/StorageManager.messages.in:
1876         Add GetValues message.
1877
1878         * WebProcess/Storage/StorageAreaProxy.cpp:
1879         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
1880         Send the GetValues message.
1881
1882 2013-02-15  Anders Carlsson  <andersca@apple.com>
1883
1884         A storage area should know its storage type
1885         https://bugs.webkit.org/show_bug.cgi?id=109964
1886
1887         Reviewed by Andreas Kling.
1888
1889         * WebProcess/Storage/StorageAreaProxy.cpp:
1890         (WebKit::StorageAreaProxy::StorageAreaProxy):
1891         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
1892         * WebProcess/Storage/StorageAreaProxy.h:
1893         (StorageAreaProxy):
1894         * WebProcess/Storage/StorageNamespaceProxy.cpp:
1895         (WebKit::StorageNamespaceProxy::storageType):
1896         (WebKit):
1897         * WebProcess/Storage/StorageNamespaceProxy.h:
1898         (StorageNamespaceProxy):
1899
1900 2013-02-15  Anders Carlsson  <andersca@apple.com>
1901
1902         Implement StorageAreaProxy::length
1903         https://bugs.webkit.org/show_bug.cgi?id=109962
1904
1905         Reviewed by Andreas Kling.
1906
1907         * WebProcess/Storage/StorageAreaProxy.cpp:
1908         (WebKit::StorageAreaProxy::length):
1909         Load the values if needed and then return the length.
1910
1911         (WebKit::StorageAreaProxy::disabledByPrivateBrowsingInFrame):
1912         Add helper function.
1913
1914         (WebKit::StorageAreaProxy::loadValuesIfNeeded):
1915         Just allocate the hash map for now.
1916
1917         * WebProcess/Storage/StorageAreaProxy.h:
1918         (StorageAreaProxy):
1919
1920 2013-02-15  Anders Carlsson  <andersca@apple.com>
1921
1922         Remove const from a bunch of StorageArea member functions
1923         https://bugs.webkit.org/show_bug.cgi?id=109957
1924
1925         Reviewed by Beth Dakin.
1926
1927         Update for WebCore changes.
1928
1929         * WebProcess/Storage/StorageAreaProxy.cpp:
1930         (WebKit::StorageAreaProxy::length):
1931         (WebKit::StorageAreaProxy::key):
1932         (WebKit::StorageAreaProxy::getItem):
1933         (WebKit::StorageAreaProxy::contains):
1934         (WebKit::StorageAreaProxy::canAccessStorage):
1935         (WebKit::StorageAreaProxy::memoryBytesUsedByCache):
1936         * WebProcess/Storage/StorageAreaProxy.h:
1937         (StorageAreaProxy):
1938
1939 2013-02-15  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
1940
1941         [EFL][WK2] Use C API inside BatteryProvider and NetworkInfoProvider
1942         https://bugs.webkit.org/show_bug.cgi?id=107821
1943
1944         Reviewed by Anders Carlsson.
1945
1946         BatteryProvider and NetworkInfoProvider should use C API
1947         instead of accessing the internal C++ classes directly.
1948
1949         * UIProcess/API/efl/ewk_context.cpp:
1950         (EwkContext::EwkContext):
1951         * UIProcess/efl/BatteryProvider.cpp:
1952         (BatteryProvider::~BatteryProvider):
1953         (BatteryProvider::create):
1954         (BatteryProvider::BatteryProvider):
1955         (BatteryProvider::didChangeBatteryStatus):
1956         * UIProcess/efl/BatteryProvider.h:
1957         (BatteryProvider):
1958         * UIProcess/efl/NetworkInfoProvider.cpp:
1959         (NetworkInfoProvider::create):
1960         (NetworkInfoProvider::NetworkInfoProvider):
1961         (NetworkInfoProvider::~NetworkInfoProvider):
1962         * UIProcess/efl/NetworkInfoProvider.h:
1963         (NetworkInfoProvider):
1964
1965 2013-02-15  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1966
1967         [WK2][EFL]REGRESSION (r141978): ewk_view_type_check api test failing
1968         https://bugs.webkit.org/show_bug.cgi?id=109038
1969
1970         Reviewed by Anders Carlsson.
1971
1972         EFL API is defensive by its nature and expects graceful handling of wrong function arguments
1973         whereas webkit implementation code does not. This patch adds new 'toEwkViewChecked' function,
1974         which provides handling of wrong arguments, to be used within EFL API layer code.
1975
1976         * UIProcess/API/efl/EwkView.cpp:
1977         (toEwkView):
1978
1979             EwkView* toEwkView(const Ewk_View_Smart_Data* smartData) is not exported anymore
1980             as it's used within EwkView class only.        
1981
1982         (EwkView::handleTouchMove):
1983         * UIProcess/API/efl/EwkView.h:
1984         * UIProcess/API/efl/ewk_view.cpp:
1985         (toEwkViewChecked):
1986
1987 2013-02-15  Christophe Dumez  <ch.dumez@sisa.samsung.com>
1988
1989         [EFL][WK2] Have WebView subclass PageClient
1990         https://bugs.webkit.org/show_bug.cgi?id=109684
1991
1992         Reviewed by Anders Carlsson.
1993
1994         Stop constructing the PageClient in EwkView. PageClient is an internal
1995         class and we should not use it directly in our Ewk implementation.
1996         Instead, have WebView subclass PageClient. The PageClient implementation
1997         just calls WebView methods otherwise.
1998
1999         * PlatformEfl.cmake:
2000         * UIProcess/API/efl/EwkView.cpp:
2001         (EwkView::EwkView):
2002         (EwkView::setSize):
2003         * UIProcess/API/efl/EwkView.h:
2004         (WebKit):
2005         (EwkView):
2006         (EwkView::webView):
2007         * UIProcess/API/efl/ewk_view.cpp:
2008         * UIProcess/efl/PageClientBase.cpp: Removed.
2009         * UIProcess/efl/PageClientBase.h: Removed.
2010         * UIProcess/efl/PageClientDefaultImpl.cpp: Removed.
2011         * UIProcess/efl/PageClientDefaultImpl.h: Removed.
2012         * UIProcess/efl/PageClientLegacyImpl.cpp: Removed.
2013         * UIProcess/efl/PageClientLegacyImpl.h: Removed.
2014         * UIProcess/efl/PageLoadClientEfl.cpp:
2015         (WebKit::PageLoadClientEfl::didCommitLoadForFrame):
2016         * UIProcess/efl/PageViewportControllerClientEfl.h:
2017         * UIProcess/efl/WebPageProxyEfl.cpp:
2018         (WebKit::WebPageProxy::viewWidget):
2019         * UIProcess/efl/WebView.cpp:
2020         (WebKit::WebView::WebView):
2021         (WebKit::WebView::~WebView):
2022         (WebKit::WebView::initialize):
2023         (WebKit):
2024         (WebKit::WebView::evasObject):
2025         (WebKit::WebView::setThemePath):
2026         (WebKit::WebView::setDrawsBackground):
2027         (WebKit::WebView::drawsBackground):
2028         (WebKit::WebView::setDrawsTransparentBackground):
2029         (WebKit::WebView::drawsTransparentBackground):
2030         (WebKit::WebView::suspendActiveDOMObjectsAndAnimations):
2031         (WebKit::WebView::resumeActiveDOMObjectsAndAnimations):
2032         (WebKit::WebView::didCommitLoad):
2033         (WebKit::WebView::updateViewportSize):
2034         (WebKit::WebView::didChangeContentsSize):
2035         (WebKit::WebView::createDrawingAreaProxy):
2036         (WebKit::WebView::setViewNeedsDisplay):
2037         (WebKit::WebView::displayView):
2038         (WebKit::WebView::scrollView):
2039         (WebKit::WebView::viewSize):
2040         (WebKit::WebView::isViewWindowActive):
2041         (WebKit::WebView::isViewFocused):
2042         (WebKit::WebView::isViewVisible):
2043         (WebKit::WebView::isViewInWindow):
2044         (WebKit::WebView::processDidCrash):
2045         (WebKit::WebView::didRelaunchProcess):
2046         (WebKit::WebView::pageClosed):
2047         (WebKit::WebView::toolTipChanged):
2048         (WebKit::WebView::setCursor):
2049         (WebKit::WebView::setCursorHiddenUntilMouseMoves):
2050         (WebKit::WebView::registerEditCommand):
2051         (WebKit::WebView::clearAllEditCommands):
2052         (WebKit::WebView::canUndoRedo):
2053         (WebKit::WebView::executeUndoRedo):
2054         (WebKit::WebView::screenToWindow):
2055         (WebKit::WebView::windowToScreen):
2056         (WebKit::WebView::doneWithKeyEvent):
2057         (WebKit::WebView::doneWithTouchEvent):
2058         (WebKit::WebView::createPopupMenuProxy):
2059         (WebKit::WebView::createContextMenuProxy):
2060         (WebKit::WebView::createColorChooserProxy):
2061         (WebKit::WebView::setFindIndicator):
2062         (WebKit::WebView::enterAcceleratedCompositingMode):
2063         (WebKit::WebView::exitAcceleratedCompositingMode):
2064         (WebKit::WebView::updateAcceleratedCompositingMode):
2065         (WebKit::WebView::didCommitLoadForMainFrame):
2066         (WebKit::WebView::didFinishLoadingDataForCustomRepresentation):
2067         (WebKit::WebView::customRepresentationZoomFactor):
2068         (WebKit::WebView::setCustomRepresentationZoomFactor):
2069         (WebKit::WebView::flashBackingStoreUpdates):
2070         (WebKit::WebView::findStringInCustomRepresentation):
2071         (WebKit::WebView::countStringMatchesInCustomRepresentation):
2072         (WebKit::WebView::updateTextInputState):
2073         (WebKit::WebView::handleDownloadRequest):
2074         (WebKit::WebView::convertToDeviceSpace):
2075         (WebKit::WebView::convertToUserSpace):
2076         (WebKit::WebView::didChangeViewportProperties):
2077         (WebKit::WebView::pageDidRequestScroll):
2078         (WebKit::WebView::didRenderFrame):
2079         (WebKit::WebView::pageTransitionViewportReady):
2080         * UIProcess/efl/WebView.h:
2081         (WebKit):
2082         (WebView):
2083         (WebKit::WebView::pageRef):
2084         (WebKit::WebView::page):
2085         (WebKit::WebView::canScrollView):
2086
2087 2013-02-15  Milian Wolff  <milian.wolff@kdab.com>
2088
2089         [Qt] Restore URL Scheme Delegates after QtWebProcess crash
2090         https://bugs.webkit.org/show_bug.cgi?id=108808
2091
2092         When the QtWebProcess crashes, the registered URL Scheme
2093         Delegates are not properly restored over IPC in the newly
2094         launched process instance.
2095
2096         Reviewed by Simon Hausmann.
2097
2098         * UIProcess/API/qt/qquickwebview.cpp:
2099         (QQuickWebViewPrivate::didRelaunchProcess):
2100         (QQuickWebViewPrivate::updateSchemeDelegates):
2101         * UIProcess/API/qt/qquickwebview_p_p.h:
2102         (QQuickWebViewPrivate):
2103
2104 2013-02-15  Allan Sandfeld Jensen  <allan.jensen@digia.com>
2105
2106         Simplify hitTestResultAtPoint and nodesFromRect APIs
2107         https://bugs.webkit.org/show_bug.cgi?id=95720
2108
2109         Reviewed by Julien Chaffraix and Maciej Stachowiak.
2110
2111         Update calls to new API and update exported symbols.
2112
2113         * WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp:
2114         (WebKit::InjectedBundleNavigationAction::InjectedBundleNavigationAction):
2115         * WebProcess/WebPage/WebFrame.cpp:
2116         (WebKit::WebFrame::hitTest):
2117         * WebProcess/WebPage/WebPage.cpp:
2118         (WebKit::handleContextMenuEvent):
2119         (WebKit::WebPage::highlightPotentialActivation):
2120         (WebKit::WebPage::findZoomableAreaForPoint):
2121         * WebProcess/WebPage/mac/WebPageMac.mm:
2122         (WebKit::WebPage::characterIndexForPoint):
2123         (WebKit::WebPage::performDictionaryLookupAtLocation):
2124         (WebKit::WebPage::shouldDelayWindowOrderingEvent):
2125         (WebKit::WebPage::acceptsFirstMouse):
2126
2127 2013-02-14  Huang Dongsung  <luxtella@company100.net>
2128
2129         [WK2] Rename from scrollOffset to scrollDelta in WebChromeClient.
2130         https://bugs.webkit.org/show_bug.cgi?id=109885
2131
2132         Reviewed by Simon Fraser.
2133
2134         Chrome sends a scroll delta to WebChromeClient but WebChromeClient names it
2135         scrollOffset. So this patch corrects this misnaming.
2136
2137         In addition, all subclasses of LayerTreeHost don't use the misnamed
2138         scrollOffset in scrollNonCompositedContents(), so this patch removes the
2139         scrollOffset argument.
2140
2141         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2142         (WebKit::WebChromeClient::scroll):
2143         * WebProcess/WebCoreSupport/WebChromeClient.h:
2144         (WebChromeClient):
2145         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
2146         (WebKit::CoordinatedLayerTreeHost::scrollNonCompositedContents):
2147         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
2148         (CoordinatedLayerTreeHost):
2149         * WebProcess/WebPage/DrawingArea.h:
2150         (DrawingArea):
2151         * WebProcess/WebPage/DrawingAreaImpl.cpp:
2152         (WebKit::DrawingAreaImpl::scroll):
2153         * WebProcess/WebPage/DrawingAreaImpl.h:
2154         (DrawingAreaImpl):
2155         * WebProcess/WebPage/LayerTreeHost.h:
2156         (LayerTreeHost):
2157         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
2158         (WebKit::LayerTreeHostGtk::scrollNonCompositedContents):
2159         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
2160         (LayerTreeHostGtk):
2161         * WebProcess/WebPage/mac/LayerTreeHostMac.h:
2162         (LayerTreeHostMac):
2163         * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
2164         (WebKit::LayerTreeHostMac::scrollNonCompositedContents):
2165         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
2166         (RemoteLayerTreeDrawingArea):
2167         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
2168         (WebKit::RemoteLayerTreeDrawingArea::scroll):
2169         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
2170         (TiledCoreAnimationDrawingArea):
2171         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2172         (WebKit::TiledCoreAnimationDrawingArea::scroll):
2173
2174 2013-02-14  Alexey Proskuryakov  <ap@apple.com>
2175
2176         <rdar://problem/13161700> REGRESSION: Safari is unable to make SSL connections
2177         when running from recovery partition
2178
2179         Reviewed by Sam Weinig.
2180
2181         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
2182         * WebProcess/com.apple.WebProcess.sb.in:
2183         Re-added /private/var/db/mds/system rules lost in r141445.
2184
2185 2013-02-14  Anders Carlsson  <andersca@apple.com>
2186
2187         Add WKContextIsPlugInUpdateAvailable
2188         https://bugs.webkit.org/show_bug.cgi?id=109862
2189         <rdar://problem/13173140>
2190
2191         Reviewed by Sam Weinig.
2192
2193         * UIProcess/API/C/mac/WKContextPrivateMac.h:
2194         * UIProcess/API/C/mac/WKContextPrivateMac.mm: Renamed from Source/WebKit2/UIProcess/API/C/mac/WKContextPrivateMac.cpp.
2195         (WKContextGetProcessSuppressionEnabled):
2196         (WKContextSetProcessSuppressionEnabled):
2197         (WKContextIsPlugInUpdateAvailable):
2198         * WebKit2.xcodeproj/project.pbxproj:
2199
2200 2013-02-14  Zan Dobersek  <zdobersek@igalia.com>
2201
2202         [GTK] Errors when building WebKit2 with Clang
2203         https://bugs.webkit.org/show_bug.cgi?id=109603
2204
2205         Reviewed by Alexey Proskuryakov.
2206
2207         * UIProcess/API/gtk/WebKitUIClient.cpp:
2208         (setWindowFrame): Cast the position parameters to the integer type when constructing the GdkRectangle.
2209         * UIProcess/Authentication/WebCredential.cpp: Add an empty implementation of the newly specified destructor.
2210         * UIProcess/Authentication/WebCredential.h: Work around the incomplete WebCertificateInfo type errors thrown in the inline
2211         RefPtr destructor of the m_certificateInfo class member by defining a destructor in the class.
2212         * WebProcess/WebCoreSupport/WebEditorClient.h: The GTK-specific methods are not virtual and as such cannot be overriden.
2213         The OVERRIDE keywords are thus unnecessary.
2214
2215 2013-02-14  David Kilzer  <ddkilzer@apple.com>
2216
2217         [Mac] Clean up WARNING_CFLAGS
2218         <http://webkit.org/b/109747>
2219         <rdar://problem/13208373>
2220
2221         Reviewed by Mark Rowe.
2222
2223         * Configurations/Base.xcconfig: Use
2224         GCC_WARN_64_TO_32_BIT_CONVERSION to enable and disable
2225         -Wshorten-64-to-32 rather than WARNING_CFLAGS.
2226
2227 2013-02-14  Sam Weinig  <sam@webkit.org>
2228
2229         Add conversions between ObjC and C DOM wrappers
2230         <rdar://problem/13205468>
2231         https://bugs.webkit.org/show_bug.cgi?id=109851
2232
2233         Reviewed by Anders Carlsson.
2234
2235         * WebKit2.xcodeproj/project.pbxproj:
2236         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandle.cpp:
2237         (WKBundleRangeHandleCreate):
2238         * WebProcess/InjectedBundle/API/c/WKBundleRangeHandlePrivate.h: Added.
2239         * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm:
2240         (-[WKDOMNode _copyBundleNodeHandleRef]):
2241         * WebProcess/InjectedBundle/API/mac/WKDOMNodePrivate.h: Added.
2242         * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
2243         (-[WKDOMRange _copyBundleRangeHandleRef]):
2244         * WebProcess/InjectedBundle/API/mac/WKDOMRangePrivate.h: Added.
2245         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
2246         (WebKit::InjectedBundleRangeHandle::getOrCreate):
2247         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.h:
2248         (InjectedBundleRangeHandle):
2249
2250 2013-02-13  Anders Carlsson  <andersca@apple.com>
2251
2252         Remove StringPairVector
2253         https://bugs.webkit.org/show_bug.cgi?id=109778
2254
2255         Reviewed by Ryosuke Niwa.
2256
2257         Our message generation scripts can handle nested template parameter types now,
2258         so we no longer need to use StringPairVector.
2259
2260         * Shared/StringPairVector.h: Removed.
2261         * UIProcess/WebPageProxy.cpp:
2262         (WebKit::WebPageProxy::willSubmitForm):
2263         * UIProcess/WebPageProxy.h:
2264         (WebPageProxy):
2265         * UIProcess/WebPageProxy.messages.in:
2266         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2267         (WebKit::WebFrameLoaderClient::dispatchWillSubmitForm):
2268
2269 2013-02-13  Dean Jackson  <dino@apple.com>
2270
2271         PlugIn Autostart should expire in 30 days, not half a day
2272         https://bugs.webkit.org/show_bug.cgi?id=109767
2273
2274         Reviewed by Brian Weinstein.
2275
2276         We forgot to multiply by 60 seconds in a minute.
2277
2278         * UIProcess/Plugins/PlugInAutoStartProvider.cpp:
2279
2280 2013-02-13  Anders Carlsson  <andersca@apple.com>
2281
2282         Message generation should handle nested templates
2283         https://bugs.webkit.org/show_bug.cgi?id=109771
2284
2285         Reviewed by Ryosuke Niwa.
2286
2287         Make it possible to have nested class template types as message parameters and
2288         correctly gather all the needed headers and argument coder headers.
2289
2290         * Scripts/webkit2/messages.py:
2291         (class_template_headers):
2292         Recursively figure out the types and template headers needed for a given type.
2293
2294         (argument_coder_headers_for_type):
2295         (headers_for_type):
2296         Call class_template_headers.
2297
2298         * Scripts/webkit2/messages_unittest.py:
2299         (CoreIPC):
2300         * Scripts/webkit2/parser.py:
2301         (split_parameters_string):
2302         (parse_parameters_string):
2303
2304 2013-02-13  David Farler  <dfarler@apple.com>
2305
2306         Make WebKit2 Derived Sources work with SDK identifiers too
2307         https://bugs.webkit.org/show_bug.cgi?id=109763
2308
2309         Reviewed by David Kilzer.
2310
2311         * WebKit2.xcodeproj/project.pbxproj: Pass SDKROOT=${SDKROOT} to DerivedSources.make
2312
2313 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
2314
2315         One more buildfix for !ENABLE(PLUGIN_PROCESS) platforms.
2316
2317         * WebProcess/WebProcess.cpp:
2318         (WebKit::WebProcess::WebProcess):
2319
2320 2013-02-13  Csaba Osztrogonác  <ossy@webkit.org>
2321
2322         Unreviewed Qt-Mac and Qt-Win buildfix after r142768.
2323
2324         * WebProcess/WebProcess.h:
2325         (WebKit):
2326
2327 2013-02-13  Adam Barth  <abarth@webkit.org>
2328
2329         Remove bogus ASSERT in WebFrameProxy::didStartProvisionalLoad
2330         https://bugs.webkit.org/show_bug.cgi?id=109733
2331
2332         Reviewed by Sam Weinig.
2333
2334         After http://trac.webkit.org/changeset/142555, this ASSERT is
2335         triggering on these tests:
2336
2337         fast/dom/window-load-crash.html
2338         fast/frames/seamless/seamless-hyperlink-named.html
2339         fast/frames/seamless/seamless-hyperlink.html
2340
2341         The ASSERT appears to be bogus. This patch removes it.
2342
2343         * UIProcess/WebFrameProxy.cpp:
2344         (WebKit::WebFrameProxy::didStartProvisionalLoad):
2345
2346 2013-02-13  Sam Weinig  <sam@webkit.org>
2347
2348         Consolidate main functions in WebKit2 now that they are all identical
2349         https://bugs.webkit.org/show_bug.cgi?id=109748
2350
2351         Reviewed by Anders Carlsson.
2352
2353         - Consolidates all the LegacyProcess main functions into ChildProcessMain.mm
2354         - Consolidates all the XPCService main functions into XPCServiceMain.mm and XPCServiceMain.Development.mm
2355         - Rename existing ChildProcessMain.h/mm to ChildProcessEntryPoint.h/mm to match the XPCService ones.
2356         - Switch LegacyProcess to use the "entry point in the plist" idiom, instead of hard coding each one, again
2357           matching the XPCService.
2358
2359         * Configurations/BaseLegacyProcess.xcconfig: Add base configuration to hold common legacy process options.
2360         * Configurations/BaseXPCService.xcconfig:
2361         * Configurations/NetworkProcess.xcconfig:
2362         * Configurations/OfflineStorageProcess.xcconfig:
2363         * Configurations/PluginProcess.xcconfig:
2364         * Configurations/SharedWorkerProcess.xcconfig:
2365         * Configurations/WebContentProcess.xcconfig: Renamed form  WebProcess.xcconfig.
2366         * NetworkProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2367         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMain.mm:
2368         * NetworkProcess/EntryPoint/mac/LegacyProcess/NetworkProcessMainBootstrapper.cpp: Removed.
2369         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm: Removed.
2370         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm: Removed.
2371         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2372         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm:
2373         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Removed.
2374         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Removed.
2375         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Removed.
2376         * PluginProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2377         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMain.mm:
2378         * PluginProcess/EntryPoint/mac/LegacyProcess/PluginProcessMainBootstrapper.cpp: Removed.
2379         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm: Removed.
2380         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm: Removed.
2381         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.h: 
2382         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm: 
2383         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.h: Removed.
2384         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMain.mm: Replaced.
2385         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessMainBootstrapper.h: Removed.
2386         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h: Removed.
2387         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h: Removed.
2388         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
2389         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
2390         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2391         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMain.mm:
2392         * SharedWorkerProcess/EntryPoint/mac/LegacyProcess/SharedWorkerProcessMainBootstrapper.cpp: Removed.
2393         * WebProcess/EntryPoint/mac/LegacyProcess/Info.plist:
2394         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMain.mm:
2395         * WebProcess/EntryPoint/mac/LegacyProcess/WebContentProcessMainBootstrapper.cpp: Removed.
2396         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm: Removed.
2397         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm: Removed.
2398         * WebKit2.xcodeproj/project.pbxproj:
2399
2400 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2401
2402         [EFL][WK2] Stop using WebString in ewk_cookie_manager, ewk_form_submission_request and ewk_text_checker
2403         https://bugs.webkit.org/show_bug.cgi?id=108794
2404
2405         Reviewed by Alexey Proskuryakov.
2406
2407         Stop using WebString in ewk_cookie_manager, ewk_form_submission_request
2408         and ewk_text_checker as it is internal C++ API. WKString and
2409         WKEinaSharedString are used instead.
2410
2411         * UIProcess/API/cpp/efl/WKEinaSharedString.cpp:
2412         (WKEinaSharedString::leakString): Add leakString() method to
2413         WKEinaSharedString so that we can conveniently convert a WKString to a
2414         Eina shared string and take ownership of it.
2415         * UIProcess/API/cpp/efl/WKEinaSharedString.h:
2416         * UIProcess/API/efl/ewk_cookie_manager.cpp:
2417         (getHostnamesWithCookiesCallback):
2418         * UIProcess/API/efl/ewk_form_submission_request.cpp:
2419         (EwkFormSubmissionRequest::copyFieldValue):
2420         (ewk_form_submission_request_field_names_get):
2421         (ewk_form_submission_request_field_value_get):
2422         * UIProcess/API/efl/ewk_form_submission_request_private.h:
2423         (EwkFormSubmissionRequest):
2424         * UIProcess/API/efl/ewk_text_checker.cpp:
2425         (checkSpellingOfString):
2426         (guessesForWord):
2427         (learnWord):
2428         (ignoreWord):
2429         * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
2430         (TEST_F): Add API test for new WKEinaSharedString::leakString() method.
2431
2432 2013-02-13  Anders Carlsson  <andersca@apple.com>
2433
2434         Remove Connection::QueueClient
2435         https://bugs.webkit.org/show_bug.cgi?id=109744
2436
2437         Reviewed by Sam Weinig.
2438
2439         * Platform/CoreIPC/Connection.cpp:
2440         (CoreIPC::Connection::processIncomingMessage):
2441         (CoreIPC::Connection::connectionDidClose):
2442         * Platform/CoreIPC/Connection.h:
2443         (Connection):
2444
2445 2013-02-13  Anders Carlsson  <andersca@apple.com>
2446
2447         Try to fix the Lion build.
2448
2449         * WebProcess/WebPage/EventDispatcher.h:
2450         (EventDispatcher):
2451
2452 2013-02-13  Anders Carlsson  <andersca@apple.com>
2453
2454         Remove support for the DispatchOnConnectionQueue message attribute
2455         https://bugs.webkit.org/show_bug.cgi?id=109743
2456
2457         Reviewed by Sam Weinig.
2458
2459         * Platform/CoreIPC/HandleMessage.h:
2460         (CoreIPC):
2461         * Scripts/webkit2/messages.py:
2462         (handler_function):
2463         (generate_message_handler):
2464         * Scripts/webkit2/messages_unittest.py:
2465
2466 2013-02-13  Anders Carlsson  <andersca@apple.com>
2467
2468         StorageManager should be a WorkQueueMessageReceiver
2469         https://bugs.webkit.org/show_bug.cgi?id=109741
2470
2471         Reviewed by Sam Weinig.
2472
2473         * UIProcess/Storage/StorageManager.cpp:
2474         (WebKit::StorageManager::processWillOpenConnection):
2475         (WebKit::StorageManager::processWillCloseConnection):
2476         (WebKit::StorageManager::createStorageArea):
2477         (WebKit::StorageManager::destroyStorageArea):
2478         * UIProcess/Storage/StorageManager.h:
2479         (StorageManager):
2480         * UIProcess/Storage/StorageManager.messages.in:
2481
2482 2013-02-13  Anders Carlsson  <andersca@apple.com>
2483
2484         EventDispatcher should be a WorkQueueMessageReceiver
2485         https://bugs.webkit.org/show_bug.cgi?id=109736
2486
2487         Reviewed by Andreas Kling.
2488
2489         * WebProcess/WebPage/EventDispatcher.cpp:
2490         (WebKit::EventDispatcher::create):
2491         (WebKit):
2492         (WebKit::EventDispatcher::EventDispatcher):
2493         (WebKit::EventDispatcher::initializeConnection):
2494         (WebKit::EventDispatcher::wheelEvent):
2495         (WebKit::EventDispatcher::gestureEvent):
2496         * WebProcess/WebPage/EventDispatcher.h:
2497         (EventDispatcher):
2498         * WebProcess/WebPage/EventDispatcher.messages.in:
2499         * WebProcess/WebProcess.cpp:
2500         (WebKit::WebProcess::WebProcess):
2501         (WebKit::WebProcess::initializeConnection):
2502         * WebProcess/WebProcess.h:
2503         (WebKit):
2504         (WebKit::WebProcess::eventDispatcher):
2505         (WebProcess):
2506
2507 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2508
2509         Unreviewed build fix after r142768.
2510
2511         r142768 broke the EFL WK2 build due to wrong member initialization
2512         order in the WebProcess constructor initialization list.
2513
2514         * WebProcess/WebProcess.cpp:
2515         (WebKit::WebProcess::WebProcess):
2516
2517 2013-02-13  Anders Carlsson  <andersca@apple.com>
2518
2519         Make PluginProcessConnectionManager a WorkQueueMessageReceiver
2520         https://bugs.webkit.org/show_bug.cgi?id=109727
2521
2522         Reviewed by Andreas Kling.
2523
2524         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
2525         (WebKit::PluginProcessConnectionManager::create):
2526         (WebKit):
2527         (WebKit::PluginProcessConnectionManager::PluginProcessConnectionManager):
2528         (WebKit::PluginProcessConnectionManager::initializeConnection):
2529         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
2530         * WebProcess/Plugins/PluginProcessConnectionManager.h:
2531         (PluginProcessConnectionManager):
2532         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in:
2533         * WebProcess/WebProcess.cpp:
2534         (WebKit::WebProcess::WebProcess):
2535         (WebKit::WebProcess::initializeConnection):
2536         (WebKit::WebProcess::pluginProcessConnectionManager):
2537         * WebProcess/WebProcess.h:
2538         (WebKit):
2539         (WebProcess):
2540
2541 2013-02-13  Anders Carlsson  <andersca@apple.com>
2542
2543         Make SecItemShimProxy be a WorkQueueMessageReceiver
2544         https://bugs.webkit.org/show_bug.cgi?id=109719
2545
2546         Reviewed by Sam Weinig.
2547
2548         This adds a WantsConnection message attribute to be used for messages whose handlers
2549         should take the connection the message was delivered to.
2550         
2551         * Platform/CoreIPC/HandleMessage.h:
2552         (CoreIPC::handleMessage):
2553         Add new handleMessage overload.
2554         
2555         * Scripts/webkit2/messages.py:
2556         (async_message_statement):
2557         (generate_message_handler):
2558         Handle the WantsMessage attribute.
2559
2560         * UIProcess/mac/SecItemShimProxy.cpp:
2561         (WebKit::SecItemShimProxy::shared):
2562         Use dispatch_once and adoptRef.
2563
2564         (WebKit::SecItemShimProxy::SecItemShimProxy):
2565         Initialize the queue.
2566
2567         (WebKit::SecItemShimProxy::initializeConnection):
2568         Add the proxy as a work queue message receiver.
2569
2570         (WebKit::SecItemShimProxy::secItemRequest):
2571         This no longer needs to call out to a dispatch queue, it's already on a queue.
2572
2573         * UIProcess/mac/SecItemShimProxy.messages.in:
2574         This doesn't need to be a legacy receiver. Also, add the WantsConnection message.
2575
2576 2013-02-13  Sheriff Bot  <webkit.review.bot@gmail.com>
2577
2578         Unreviewed, rolling out r142736.
2579         http://trac.webkit.org/changeset/142736
2580         https://bugs.webkit.org/show_bug.cgi?id=109716
2581
2582         Broke ABI, nightly builds crash on launch (Requested by ap on
2583         #webkit).
2584
2585         * Shared/APIClientTraits.cpp:
2586         (WebKit):
2587         * Shared/APIClientTraits.h:
2588         * UIProcess/API/C/WKPage.h:
2589         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
2590         (attachLoaderClientToView):
2591         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2592         * WebProcess/qt/QtBuiltinBundlePage.cpp:
2593         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
2594
2595 2013-02-13  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2596
2597         [WK2][EFL] Cleanup of graphics related code in EwkView
2598         https://bugs.webkit.org/show_bug.cgi?id=109377
2599
2600         Reviewed by Anders Carlsson.
2601
2602         * UIProcess/API/efl/EwkView.cpp:
2603         (EwkView::EwkView):
2604
2605             Initialize the evasGL dependencies here and
2606             set m_isAccelerated to false if this fails.
2607
2608             Set the coordinated graphics scene as active
2609             when using fixed layout.
2610
2611         (EwkView::setSize):
2612
2613             Add a method to set the size and user-viewport
2614             transform from the outside. The idea is moving
2615             this to our pure WK C API in the future.
2616
2617         (EwkView::transformFromScene):
2618         (EwkView::transformToScene):
2619
2620             Update the transform methods to use the user-
2621             viewport transform.
2622
2623         (EwkView::paintToCurrentGLContext):
2624         (EwkView::paintToCairoSurface):
2625
2626             Add methods to paint to either the current GL context
2627             or to a given cairo_surface_t (for software fallback
2628             cases).
2629
2630         (EwkView::displayTimerFired):
2631
2632             Clean up and use the two above methods.
2633
2634         (EwkView::scheduleUpdateDisplay):
2635
2636             Use the new size() methods instead of using the 
2637             smart-object data directly.
2638
2639         (EwkView::createGLSurface):
2640
2641             Make this method use size() to query the surface size
2642             and avoid creating the context (done in ctor now).
2643             Also avoid using the smart-object data directly.
2644
2645         (EwkView::enterAcceleratedCompositingMode):
2646         (EwkView::exitAcceleratedCompositingMode):
2647
2648             Turn on/off the use of the coord. graphics scene.
2649
2650         (EwkView::handleEvasObjectCalculate):
2651
2652             Use the new setSize and setUserViewportTransform.
2653
2654         (EwkView::takeSnapshot):
2655         * UIProcess/API/efl/EwkView.h:
2656         (WebCore):
2657         (EwkView):
2658         (EwkView::size):
2659         (EwkView::setUserViewportTransform):
2660         (EwkView::userViewportTransform):
2661
2662             Add the new method definitions and rename isHardwareAccelerated
2663             to isAccelerated which fits better with the naming in WebCore.
2664
2665 2013-02-13  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2666
2667         [EFL][WK2] Introduce WKViewClient C API
2668         https://bugs.webkit.org/show_bug.cgi?id=109559
2669
2670         Reviewed by Anders Carlsson.
2671
2672         This patch introduces the WKViewClient C API for EFL's WKView. The purpose of
2673         this new C API is to eventually remove the interdependency between EFL's
2674         PageClient and EwkView. When completed, PageClient should only interact with
2675         WebView and not be aware of EwkView so that we have a clean separation between
2676         internal WebKit2 classes and our EFL Ewk API implementation.
2677
2678         This patch is only a first step towards this goal as there is a lot of work
2679         to do to achieve complete separation between EwkView and PageClient. The purpose
2680         of this patch is to introduce the needed architecture which will later be
2681         extended by introducing new WKViewClient callbacks.
2682
2683         * PlatformEfl.cmake: Add new ViewClientEfl.cpp and WebViewClient.cpp to EFL's CMake
2684         configuration.
2685         * UIProcess/API/C/efl/WKView.cpp:
2686         (WKViewSetViewClient):
2687         * UIProcess/API/C/efl/WKView.h: Introduce new WKViewClient C API.
2688         * UIProcess/API/efl/EwkView.cpp:
2689         (EwkView::EwkView): Initialize ViewClientEfl.
2690         * UIProcess/API/efl/EwkView.h: Add new ViewClientEfl member.
2691         (WebKit):
2692         (EwkView):
2693         * UIProcess/API/efl/EwkViewCallbacks.h: Update ContentsSizeChanged smart callback to
2694         accept a WKSize in parameter instead of an IntRect.
2695         * UIProcess/efl/PageClientBase.cpp: Start calling WKViewClient callbacks instead of
2696         interacting directly with EwkView to avoid violating API layering.
2697         (WebKit::PageClientBase::view):
2698         (WebKit::PageClientBase::setViewNeedsDisplay):
2699         * UIProcess/efl/PageClientBase.h:
2700         (WebKit):
2701         (PageClientBase):
2702         * UIProcess/efl/PageClientDefaultImpl.cpp: Start calling WKViewClient callbacks instead of
2703         interacting directly with EwkView to avoid violating API layering.
2704         (WebKit::PageClientDefaultImpl::didChangeContentsSize):
2705         * UIProcess/efl/PageClientLegacyImpl.cpp: Start calling WKViewClient callbacks instead of
2706         interacting directly with EwkView to avoid violating API layering.
2707         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
2708         * UIProcess/efl/ViewClientEfl.cpp:
2709         (WebKit):
2710         (WebKit::ViewClientEfl::toEwkView):
2711         (WebKit::ViewClientEfl::viewNeedsDisplay):
2712         (WebKit::ViewClientEfl::didChangeContentsSize):
2713         (WebKit::ViewClientEfl::ViewClientEfl):
2714         (WebKit::ViewClientEfl::~ViewClientEfl):
2715         * UIProcess/efl/ViewClientEfl.h: Introduce new ViewClientEfl which handles WKViewClient callbacks
2716         and interacts with EwkView.
2717         (WebKit):
2718         (ViewClientEfl):
2719         (WebKit::ViewClientEfl::create):
2720         * UIProcess/efl/WebView.cpp:
2721         (WebKit::WebView::initializeClient):
2722         (WebKit):
2723         (WebKit::WebView::setViewNeedsDisplay):
2724         (WebKit::WebView::didChangeContentsSize):
2725         * UIProcess/efl/WebView.h: Add new WebViewClient member and corresponding methods to interact
2726         with it.
2727         (WebView):
2728         * UIProcess/efl/WebViewClient.cpp:
2729         (WebKit):
2730         (WebKit::WebViewClient::viewNeedsDisplay):
2731         (WebKit::WebViewClient::didChangeContentsSize):
2732         * UIProcess/efl/WebViewClient.h: Add new WebViewClient APIClient for WKViewClient.
2733         (WebCore):
2734         (WebKit):
2735
2736 2013-02-13  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2737
2738         [WK2][EFL][WTR] Regression(r141836): WTR crashes on exit
2739         https://bugs.webkit.org/show_bug.cgi?id=109456
2740
2741         Reviewed by Anders Carlsson.
2742
2743         WebView destructor now considers the situation if its WebPageProxy
2744         instance had been closed from outside the class (explicitly
2745         by client code).
2746
2747         * UIProcess/efl/WebView.cpp:
2748         (WebKit::WebView::~WebView):
2749
2750 2013-02-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2751
2752         [WK2] Remove web intents callbacks
2753         https://bugs.webkit.org/show_bug.cgi?id=109654
2754
2755         Reviewed by Benjamin Poulain.
2756
2757         Web intents was removed by r142549.
2758
2759         * Shared/APIClientTraits.cpp:
2760         (WebKit):
2761         * Shared/APIClientTraits.h:
2762         * UIProcess/API/C/WKPage.h:
2763         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
2764         (attachLoaderClientToView):
2765         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2766         * WebProcess/qt/QtBuiltinBundlePage.cpp:
2767         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
2768
2769 2013-02-12  Adenilson Cavalcanti  <cavalcantii@gmail.com>
2770
2771         [WK2] Page reloading will crash UIProcess after WebProcess was killed
2772         https://bugs.webkit.org/show_bug.cgi?id=109305
2773
2774         Reviewed by Benjamin Poulain.
2775
2776         Re-initialize the pointer to a WebInspectorProxy object before calling
2777         initializeWebPage().
2778
2779         When the WebProcess crashes, WebPageProxy::processDidCrash() will
2780         set WebInspectorProxy pointer to null, which later is accessed by
2781         initializeWebPage(). This patch avoids a crash scenario where
2782         calls into a null pointer would be made.
2783
2784         * UIProcess/WebPageProxy.cpp:
2785         (WebKit::WebPageProxy::reattachToWebProcess):
2786
2787 2013-02-12  Joseph Pecoraro  <pecoraro@apple.com>
2788
2789         [iOS] Enable PAGE_VISIBILITY_API
2790         https://bugs.webkit.org/show_bug.cgi?id=109399
2791
2792         Reviewed by David Kilzer.
2793
2794         * Configurations/FeatureDefines.xcconfig:
2795
2796 2013-02-12  Brady Eidson  <beidson@apple.com>
2797
2798         Update a comment in NetworkProcess to be more accurate.
2799
2800         Rubberstamped by Sam Weinig.
2801
2802         * NetworkProcess/NetworkProcess.cpp:
2803         (WebKit::NetworkProcess::didClose):
2804
2805 2013-02-12  Anders Carlsson  <andersca@apple.com>
2806
2807         SecItemShim should be a WorkQueueMessageReceiver
2808         https://bugs.webkit.org/show_bug.cgi?id=109636
2809
2810         Reviewed by Sam Weinig.
2811
2812         * Platform/CoreIPC/Connection.cpp:
2813         (CoreIPC::Connection::dispatchWorkQueueMessageReceiverMessage):
2814         Add a helper function for dispatching a work queue message receiver message.
2815
2816         (CoreIPC::Connection::processIncomingMessage):
2817         Check if there are any work queue message receivers registered for this message.
2818
2819         * Shared/mac/SecItemShim.cpp:
2820         (WebKit::SecItemShim::shared):
2821         Use dispatch_once instead of the AtomicallyInitializedStatic macro.
2822
2823         (WebKit::SecItemShim::SecItemShim):
2824         Initialize the queue.
2825
2826         (WebKit::SecItemShim::secItemResponse):
2827         Remove the connection parameter.
2828
2829         (WebKit::SecItemShim::initializeConnection):
2830         Register the shim object as a work queue message receiver.
2831
2832         * Shared/mac/SecItemShim.h:
2833         Inherit from WorkQueueMessageReceiver.
2834
2835         * Shared/mac/SecItemShim.messages.in:
2836         Remove LegacyReceiver and DispatchOnConnectionQueue.
2837
2838 2013-02-12  Sam Weinig  <sam@webkit.org>
2839
2840         Make Plug-in XPC services "join existing sessions"
2841         <rdar://problem/13196448>
2842
2843         Reviewed by Mark Rowe.
2844
2845         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
2846         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
2847         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
2848
2849 2013-02-12  Sam Weinig  <sam@webkit.org>
2850
2851         Add skeleton of the OfflineStorageProcess
2852         https://bugs.webkit.org/show_bug.cgi?id=109615
2853
2854         Reviewed by Anders Carlsson.
2855
2856         This adds the skeleton of a new process to contain Database and Local Storage
2857         backends in (hence, offline storage). We're adding a new process, rather than
2858         using the Network or UIProcesses, to allow us to tightly sandbox these activities
2859         away from networking and full filesystem access.
2860
2861         * Configurations/OfflineStorageProcess.xcconfig: Added.
2862         * Configurations/OfflineStorageService.Development.xcconfig: Added.
2863         * Configurations/OfflineStorageService.xcconfig: Added.
2864         * DerivedSources.make:
2865         * OfflineStorageProcess: Added.
2866         * OfflineStorageProcess/EntryPoint: Added.
2867         * OfflineStorageProcess/EntryPoint/mac: Added.
2868         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess: Added.
2869         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/Info.plist: Added.
2870         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMain.mm: Added.
2871         * OfflineStorageProcess/EntryPoint/mac/LegacyProcess/OfflineStorageProcessMainBootstrapper.cpp: Added.
2872         * OfflineStorageProcess/EntryPoint/mac/XPCService: Added.
2873         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService: Added.
2874         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development: Added.
2875         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/Info.plist: Added.
2876         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService.Development/OfflineStorageServiceMain.Development.mm: Added.
2877         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/Info.plist: Added.
2878         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageService/OfflineStorageServiceMain.mm: Added.
2879         * OfflineStorageProcess/EntryPoint/mac/XPCService/OfflineStorageServiceEntryPoint.mm: Added.
2880         * OfflineStorageProcess/OfflineStorageProcess.cpp: Added.
2881         * OfflineStorageProcess/OfflineStorageProcess.h: Added.
2882         * OfflineStorageProcess/OfflineStorageProcess.messages.in: Added.
2883         * OfflineStorageProcess/mac: Added.
2884         * OfflineStorageProcess/mac/OfflineStorageProcessMac.mm: Added.
2885         (WebKit::OfflineStorageProcess::initializeProcessName):
2886         (WebKit::OfflineStorageProcess::initializeSandbox):
2887         * OfflineStorageProcess/mac/com.apple.WebKit.OfflineStorage.sb: Added.
2888         * Shared/OfflineStorage: Added.
2889         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.cpp: Added.
2890         * Shared/OfflineStorage/OfflineStorageProcessCreationParameters.h: Added.
2891
2892         * Scripts/webkit2/messages.py:
2893         (struct_or_class):
2894         Added OfflineStorageProcessCreationParameters.
2895
2896         * WebKit2.xcodeproj/project.pbxproj:
2897
2898 2013-02-12  Jinwoo Song  <jinwoo7.song@samsung.com>
2899
2900         [EFL][WK2] Fix build warning after r142579
2901         https://bugs.webkit.org/show_bug.cgi?id=109547
2902
2903         Reviewed by Alexey Proskuryakov.
2904
2905         Use UNUSED_PARAM macro to fix -Wunused-parameter build warning.
2906
2907         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2908         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
2909
2910 2013-02-12  Christophe Dumez  <ch.dumez@sisa.samsung.com>
2911
2912         [EFL][WK2] Reenable ewk_auth_request API tests
2913         https://bugs.webkit.org/show_bug.cgi?id=108451
2914
2915         Reviewed by Benjamin Poulain.
2916
2917         ewk_auth_request API tests were temporarily disabled after
2918         the C API for resource loading was removed from WebKit2.
2919         This patches updates the tests so that they no longer rely
2920         on the resource loading events and renables them.
2921
2922         This patch also corrects the naming of the static variables
2923         in the test to follow more closely the WebKit coding style.
2924
2925         * PlatformEfl.cmake:
2926         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
2927         (serverCallback):
2928         (TEST_F):
2929         (onLoadFinished):
2930
2931 2013-02-12  Anders Carlsson  <andersca@apple.com>
2932
2933         Introduce a WorkQueueMessageReceiver class as a replacement for QueueClient
2934         https://bugs.webkit.org/show_bug.cgi?id=109612
2935
2936         Reviewed by Andreas Kling.
2937
2938         * Platform/CoreIPC/Connection.cpp:
2939         (CoreIPC::Connection::addWorkQueueMessageReceiver):
2940         (CoreIPC):
2941         (CoreIPC::Connection::removeWorkQueueMessageReceiver):
2942         (CoreIPC::Connection::addWorkQueueMessageReceiverOnConnectionWorkQueue):
2943         (CoreIPC::Connection::removeWorkQueueMessageReceiverOnConnectionWorkQueue):
2944         * Platform/CoreIPC/Connection.h:
2945         (Connection):
2946
2947 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
2948
2949         Typo fix after r142663.
2950
2951         * GNUmakefile.list.am:
2952
2953 2013-02-12  Csaba Osztrogonác  <ossy@webkit.org>
2954
2955         [WK2] Unreviewed trivial buildfix after r142630 and r142651.
2956
2957         * CMakeLists.txt:
2958         * GNUmakefile.list.am:
2959         * Target.pri:
2960         * UIProcess/Plugins/PluginProcessProxy.cpp:
2961         (WebKit::PluginProcessProxy::didFinishLaunching):
2962         * UIProcess/Plugins/qt/PluginProcessProxyQt.cpp:
2963         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
2964         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
2965         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
2966
2967 2013-02-12  Anders Carlsson  <andersca@apple.com>
2968
2969         Change the queue client base class to be private everywhere
2970         https://bugs.webkit.org/show_bug.cgi?id=109604
2971
2972         Reviewed by Andreas Kling.
2973
2974         Move connection queue client registration inside of the respective queue client classes.
2975
2976         Also, it's too late to add queue clients in ChildProcessProxy::didFinishLaunching, so do this in
2977         ChildProcessProxy::connectionWillOpen instead.
2978         
2979         Finally, assert that queue clients are only being added and removed from the client thread.
2980
2981         * NetworkProcess/NetworkProcess.cpp:
2982         (WebKit::NetworkProcess::initializeConnection):
2983         * Platform/CoreIPC/Connection.cpp:
2984         (CoreIPC::Connection::addQueueClient):
2985         (CoreIPC::Connection::removeQueueClient):
2986         * Shared/mac/SecItemShim.cpp:
2987         (WebKit::SecItemShim::initializeConnection):
2988         (WebKit):
2989         * Shared/mac/SecItemShim.h:
2990         (SecItemShim):
2991         * UIProcess/Network/NetworkProcessProxy.cpp:
2992         (WebKit::NetworkProcessProxy::connectionWillOpen):
2993         (WebKit):
2994         (WebKit::NetworkProcessProxy::connectionWillClose):
2995         (WebKit::NetworkProcessProxy::didFinishLaunching):
2996         * UIProcess/Network/NetworkProcessProxy.h:
2997         (NetworkProcessProxy):
2998         * UIProcess/WebProcessProxy.cpp:
2999         (WebKit::WebProcessProxy::connectionWillOpen):
3000         (WebKit::WebProcessProxy::didFinishLaunching):
3001         * UIProcess/mac/SecItemShimProxy.cpp:
3002         (WebKit::SecItemShimProxy::initializeConnection):
3003         (WebKit):
3004         * UIProcess/mac/SecItemShimProxy.h:
3005         (SecItemShimProxy):
3006         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3007         (WebKit::PluginProcessConnectionManager::initializeConnection):
3008         (WebKit):
3009         * WebProcess/Plugins/PluginProcessConnectionManager.h:
3010         (PluginProcessConnectionManager):
3011         * WebProcess/WebPage/EventDispatcher.cpp:
3012         (WebKit::EventDispatcher::initializeConnection):
3013         (WebKit):
3014         * WebProcess/WebPage/EventDispatcher.h:
3015         (EventDispatcher):
3016         * WebProcess/WebProcess.cpp:
3017         (WebKit::WebProcess::initializeConnection):
3018
3019 2013-02-12  Brady Eidson  <beidson@apple.com>
3020
3021         Add WKContext API to retrieve basic network process statistics
3022         https://bugs.webkit.org/show_bug.cgi?id=109329
3023
3024         Reviewed by Sam Weinig.
3025
3026         This patch adds a WKContextGetStatisticsWithOptions which allows the client to ask for
3027         certain types of statistics.
3028
3029         It also expands the "get statistics" callback mechanism to allow for a statistics request 
3030         to be answered by multiple child processes.
3031
3032         That mechanism still has some rough edges but will eventually allow for getting statistics
3033         from multiple web processes, as well.
3034
3035         * NetworkProcess/HostRecord.cpp:
3036         (WebKit::HostRecord::pendingRequestCount):
3037         (WebKit::HostRecord::activeLoadCount):
3038         * NetworkProcess/HostRecord.h:
3039
3040         * NetworkProcess/NetworkProcess.cpp:
3041         (WebKit::NetworkProcess::getNetworkProcessStatistics):
3042         * NetworkProcess/NetworkProcess.h:
3043         * NetworkProcess/NetworkProcess.messages.in:
3044
3045         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
3046         (WebKit::NetworkResourceLoadScheduler::hostsPendingCount):
3047         (WebKit::NetworkResourceLoadScheduler::loadsPendingCount):
3048         (WebKit::NetworkResourceLoadScheduler::hostsActiveCount):
3049         (WebKit::NetworkResourceLoadScheduler::loadsActiveCount):
3050         * NetworkProcess/NetworkResourceLoadScheduler.h:
3051
3052         * Shared/Authentication/AuthenticationManager.h:
3053         (WebKit::AuthenticationManager::outstandingAuthenticationChallengeCount):
3054         * Shared/Downloads/DownloadManager.h:
3055
3056         * UIProcess/API/C/WKContext.cpp:
3057         (WKContextGetStatistics):
3058         (WKContextGetStatisticsWithOptions):
3059         * UIProcess/API/C/WKContext.h:
3060
3061         * UIProcess/StatisticsRequest.cpp: Added.
3062         (WebKit::StatisticsRequest::StatisticsRequest):
3063         (WebKit::StatisticsRequest::~StatisticsRequest):
3064         (WebKit::StatisticsRequest::addOutstandingRequest):
3065         (WebKit::addToDictionaryFromHashMap):
3066         (WebKit::createDictionaryFromHashMap):
3067         (WebKit::StatisticsRequest::completedRequest):
3068         * UIProcess/StatisticsRequest.h: Added.
3069         (WebKit::StatisticsRequest::create):
3070
3071         * UIProcess/WebContext.cpp:
3072         (WebKit::WebContext::networkingProcessConnection):
3073         (WebKit::WebContext::getStatistics):
3074         (WebKit::WebContext::requestWebContentStatistics):
3075         (WebKit::WebContext::requestNetworkingStatistics):
3076         (WebKit::WebContext::didGetStatistics):
3077         * UIProcess/WebContext.h:
3078         * UIProcess/WebContext.messages.in:
3079
3080         * WebProcess/WebProcess.cpp:
3081         (WebKit::WebProcess::getWebCoreStatistics):
3082
3083         * WebKit2.xcodeproj/project.pbxproj:
3084
3085 2013-02-12  Anders Carlsson  <andersca@apple.com>
3086
3087         Build fix.
3088
3089         Add back the files to the Xcode project that were removed in r142580.
3090
3091         * WebKit2.xcodeproj/project.pbxproj:
3092         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3093
3094 2013-02-12  Jessie Berlin  <jberlin@apple.com>
3095
3096         Build fix after r142540 and r142518
3097
3098         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3099         (WebKit::PluginProcessConnectionManager::didReceivePluginProcessConnectionManagerMessageOnConnectionWorkQueue):
3100         This function was added to the header in r142518 but not implemented in that revision.
3101         It wasn't a problem until r142540 started using it.
3102         Add a stub implementation for it.
3103
3104 2013-02-11  Brady Eidson  <beidson@apple.com>
3105
3106         Make PluginProcessProxy a ChildProcessProxy.
3107         https://bugs.webkit.org/show_bug.cgi?id=109513
3108
3109         Reviewed by Anders Carlsson.
3110
3111         * Shared/ChildProcessProxy.h: Inherit from ThreadSafeRefCounted.
3112         * UIProcess/Network/NetworkProcessProxy.h: Don't inherit from RefCounted.
3113         * UIProcess/WebProcessProxy.h: Don't inherit from ThreadSafeRefCounted
3114         * UIProcess/Plugins/PluginProcessProxy.h: Don't inherit from RefCounted, do inherit from ChildProcessProxy
3115
3116         Rely on ChildProcessProxy for process launcher management and launch options:
3117         * UIProcess/Plugins/PluginProcessProxy.cpp:
3118         (WebKit::PluginProcessProxy::PluginProcessProxy):
3119         (WebKit::PluginProcessProxy::getLaunchOptions):
3120         (WebKit::PluginProcessProxy::getPluginProcessConnection):
3121         (WebKit::PluginProcessProxy::getSitesWithData):
3122         (WebKit::PluginProcessProxy::clearSiteData):
3123         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
3124         (WebKit::PluginProcessProxy::platformGetLaunchOptions):
3125         (WebKit::PluginProcessProxy::getPluginProcessSerialNumber):
3126
3127 2013-02-11  Alexey Proskuryakov  <ap@apple.com>
3128
3129         <rdar://problem/13196331> NetworkProcess deny mach-lookup com.apple.PowerManagement.control
3130
3131         Reviewed by Sam Weinig.
3132
3133         * NetworkProcess/mac/com.apple.WebKit.NetworkProcess.sb.in:
3134
3135 2013-02-11  Huang Dongsung  <luxtella@company100.net>
3136
3137         Coordinated Graphics: Make CoordinatedGraphicsScene not know contents size.
3138         https://bugs.webkit.org/show_bug.cgi?id=108922
3139
3140         Reviewed by Noam Rosenthal.
3141         Signed off for WebKit2 by Benjamin Poulain.
3142
3143         Currently, CoordinatedGraphicsScene has two methods to know contents
3144         size: setContentsSize() and setVisibleContentsRect(). Contents size is
3145         used when adjusting a scroll position, but adjustment is not needed
3146         because EFL and Qt platform code (currently PageViewportController)
3147         already adjusts a scroll position, and it is natural for each platform
3148         to be in charge of adjusting. So this patch makes CoordinatedGraphicsScene
3149         not know contents size.
3150
3151         In addition, now DrawingAreaProxy::coordinatedLayerTreeHostProxy() is only used
3152         to get CoordinatedGraphicsScene.
3153
3154         * UIProcess/API/qt/qquickwebpage.cpp:
3155         (QQuickWebPagePrivate::updateSize):
3156         * UIProcess/API/qt/raw/qrawwebview.cpp:
3157         (QRawWebView::setSize):
3158         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3159         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
3160         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3161         (CoordinatedLayerTreeHostProxy):
3162         * UIProcess/efl/PageClientLegacyImpl.cpp:
3163         (WebKit::PageClientLegacyImpl::didChangeContentsSize):
3164         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
3165         (WebKit::PageViewportControllerClientEfl::didChangeContentsSize):
3166
3167 2013-02-11  Huang Dongsung  <luxtella@company100.net>
3168
3169         Coordinated Graphics: remove the DidChangeScrollPosition message.
3170         https://bugs.webkit.org/show_bug.cgi?id=108051
3171
3172         Reviewed by Noam Rosenthal.
3173         Signed off for WebKit2 by Benjamin Poulain.
3174
3175         Currently, we use the DidChangeScrollPosition message to send the scroll
3176         position that WebCore used in this frame to UI Process. We had to have
3177         some member variables for the DidChangeScrollPosition message.
3178         However, we can send a scroll position via the DidRenderFrame message,
3179         because CoordinatedGraphicsScene::m_renderedContentsScrollPosition is
3180         updated at the moment of flushing. So we can remove the
3181         DidChangeScrollPosition message and some redundant member variables.
3182
3183         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3184         (WebKit::CoordinatedLayerTreeHostProxy::didRenderFrame):
3185         (WebKit):
3186         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
3187         (CoordinatedLayerTreeHostProxy):
3188         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
3189           Remove the DidChangeScrollPosition message.
3190         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
3191         (WebKit::CoordinatedLayerTreeHost::CoordinatedLayerTreeHost):
3192         (WebKit::CoordinatedLayerTreeHost::flushPendingLayerChanges):
3193           Send a scroll position via the DidChangeScrollPosition message.
3194         (WebKit::CoordinatedLayerTreeHost::syncLayerState):
3195           Don't send a scroll position because flushPendingLayerChanges() does
3196           that. In addition, it is weird to check if we must send a scroll
3197           position at the moment of sending the SyncLayerState message of every
3198           layers.
3199         (WebKit::CoordinatedLayerTreeHost::setVisibleContentsRect):
3200         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
3201
3202 2013-02-11  Ryosuke Niwa  <rniwa@webkit.org>
3203
3204         Disable delete button controller on non-Mac ports and delete EditorClient::shouldShowDeleteInterface
3205         https://bugs.webkit.org/show_bug.cgi?id=109534
3206
3207         Reviewed by Anders Carlsson.
3208
3209         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
3210         (WebKit):
3211         * WebProcess/WebCoreSupport/WebEditorClient.h:
3212
3213 2013-02-11  Jae Hyun Park  <jae.park@company100.net>
3214
3215         [EFL] Build fix
3216         https://bugs.webkit.org/show_bug.cgi?id=109518
3217
3218         Reviewed by Laszlo Gombos.
3219
3220         Fix EFL build by including PluginProcessConnectionManager.messages.in in
3221         CMakeLists.txt
3222
3223         * CMakeLists.txt:
3224
3225 2013-02-11  Anders Carlsson  <andersca@apple.com>
3226
3227         Fix build.
3228
3229         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3230         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
3231         * WebProcess/WebProcess.cpp:
3232
3233 2013-02-11  Seulgi Kim  <seulgikim@company100.net>
3234
3235         [GTK] Build fix.
3236         https://bugs.webkit.org/show_bug.cgi?id=109516
3237
3238         Reviewed by Csaba Osztrogonác.
3239
3240         PluginProcessConnectionManagerMessages are omitted from messages list.
3241
3242         * GNUmakefile.list.am:
3243
3244 2013-02-11  Tim Horton  <timothy_horton@apple.com>
3245
3246         [WK2] setMinimumLayoutWidth should bail if there's no WebProcess
3247         https://bugs.webkit.org/show_bug.cgi?id=109512
3248         <rdar://problem/13093627>
3249
3250         Reviewed by Anders Carlsson.
3251
3252         * UIProcess/WebPageProxy.cpp:
3253         (WebKit::WebPageProxy::setMinimumLayoutWidth):
3254
3255 2013-02-11  Anders Carlsson  <andersca@apple.com>
3256
3257         PluginProcessConnectionManager should be a QueueClient
3258         https://bugs.webkit.org/show_bug.cgi?id=109496
3259
3260         Reviewed by Andreas Kling.
3261
3262         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3263         (WebKit::PluginProcessConnectionManager::didReceiveMessageOnConnectionWorkQueue):
3264         (WebKit):
3265         (WebKit::PluginProcessConnectionManager::didCloseOnConnectionWorkQueue):
3266         * WebProcess/Plugins/PluginProcessConnectionManager.h:
3267         (PluginProcessConnectionManager):
3268         * WebProcess/WebProcess.cpp:
3269         (WebKit::WebProcess::initializeConnection):
3270         * WebProcess/WebProcess.h:
3271         (WebProcess):
3272
3273 2013-02-11  Csaba Osztrogonác  <ossy@webkit.org>
3274
3275         Unreviewed WK2 buildfix after r142518.
3276
3277         * DerivedSources.pri:
3278
3279 2013-02-11  Gavin Barraclough  <barraclough@apple.com>
3280
3281         PluginProcess should quit immediately if idle in response to low-memory notifications
3282         https://bugs.webkit.org/show_bug.cgi?id=109103
3283         <rdar://problem/12679827>
3284
3285         Reviewed by Brady Eidson.
3286
3287         PluginProcess now installs a MemoryPressureHandler for the process, providing
3288         a custom callback which will call terminate if appropriate (if the plugin is not
3289         currently in use).
3290
3291         * PluginProcess/PluginProcess.cpp:
3292         (WebKit::PluginProcess::lowMemoryHandler):
3293             - Custom callback to terminate if appropriate.
3294         (WebKit::PluginProcess::initializeProcess):
3295             - Install the MemoryPressureHandler.
3296         (WebKit::PluginProcess::shouldTerminate):
3297             - This method now also needs to be callable in situations where it might return false.
3298         * PluginProcess/PluginProcess.h:
3299         (PluginProcess):
3300             - Added declaration for lowMemoryHandler.
3301
3302 2013-02-11  Anders Carlsson  <andersca@apple.com>
3303
3304         Move the PluginProcessCrashed message to PluginProcessConnectionManager
3305         https://bugs.webkit.org/show_bug.cgi?id=109493
3306
3307         Reviewed by Andreas Kling.
3308
3309         This is in preparation for making PluginProcessConnectionManager a connection queue client.
3310
3311         * DerivedSources.make:
3312         * UIProcess/Plugins/PluginProcessProxy.cpp:
3313         (WebKit::PluginProcessProxy::didClose):
3314         * WebKit2.xcodeproj/project.pbxproj:
3315         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
3316         (WebKit::PluginProcessConnectionManager::pluginProcessCrashed):
3317         * WebProcess/Plugins/PluginProcessConnectionManager.h:
3318         (PluginProcessConnectionManager):
3319         * WebProcess/Plugins/PluginProcessConnectionManager.messages.in: Added.
3320         * WebProcess/WebProcess.cpp:
3321         (WebKit::WebProcess::didReceiveMessageOnConnectionWorkQueue):
3322         (WebKit::WebProcess::webResourceLoadScheduler):
3323         * WebProcess/WebProcess.h:
3324         (WebProcess):
3325         * WebProcess/WebProcess.messages.in:
3326
3327 2013-02-11  Benjamin Poulain  <benjamin@webkit.org>
3328
3329         Kill TestRunner::setMinimumTimerInterval; implement the feature with InternalSettings
3330         https://bugs.webkit.org/show_bug.cgi?id=109349
3331
3332         Reviewed by Sam Weinig.
3333
3334         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3335         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
3336         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3337         * WebProcess/InjectedBundle/InjectedBundle.h:
3338         (InjectedBundle):
3339
3340 2013-02-11  Dean Jackson  <dino@apple.com>
3341
3342         Snapshotted plug-in should use shadow root
3343         https://bugs.webkit.org/show_bug.cgi?id=108284
3344
3345         Reviewed by Simon Fraser.
3346
3347         Take three of this commit - after rollout in r142400 and r142405.
3348         We no longer have any need for plugInStartLabelImage.
3349
3350         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Remove plugInStartLabelImage.
3351         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h: Ditto.
3352         * WebProcess/WebCoreSupport/WebChromeClient.cpp: Ditto.
3353         * WebProcess/WebCoreSupport/WebChromeClient.h: Ditto.
3354
3355 2013-02-11  Anders Carlsson  <andersca@apple.com>
3356
3357         The plug-in process connection manager doesn't need to be heap allocated
3358         https://bugs.webkit.org/show_bug.cgi?id=109479
3359
3360         Reviewed by Andreas Kling.
3361
3362         * WebProcess/WebProcess.cpp:
3363         (WebKit::WebProcess::WebProcess):
3364         (WebKit::WebProcess::pluginProcessConnectionManager):
3365         (WebKit::WebProcess::pluginProcessCrashed):
3366         * WebProcess/WebProcess.h:
3367         (WebKit):
3368         (WebProcess):
3369
3370 2013-02-11  Tony Chang  <tony@chromium.org>
3371
3372         Move setFrameFlatteningEnabled from layoutTestController to window.internals.settings
3373         https://bugs.webkit.org/show_bug.cgi?id=87149
3374
3375         Reviewed by Simon Fraser.
3376
3377         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3378         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): Add setFrameFlatteningEnabled to the list of overridable values.
3379
3380 2013-02-11  Claudio Saavedra  <csaavedra@igalia.com>
3381
3382         [WK2][Notifications] Missing early return in populateCopyOfNotificationPermissions
3383         https://bugs.webkit.org/show_bug.cgi?id=108459
3384
3385         Reviewed by Alexey Proskuryakov.
3386
3387         * UIProcess/Notifications/WebNotificationManagerProxy.cpp:
3388         (WebKit::WebNotificationManagerProxy::populateCopyOfNotificationPermissions):
3389         Providers might return 0 and we will end up with a null-pointer dereference.
3390         Early check against this.
3391
3392 2013-02-10  Sam Weinig  <sam@webkit.org>
3393
3394         Make the Plug-in XPCService build work even when building in Xcode
3395         <rdar://problem/13011186>
3396         https://bugs.webkit.org/show_bug.cgi?id=109392
3397
3398         Reviewed by Anders Carlsson.
3399
3400         * Configurations/DebugRelease.xcconfig:
3401         Add a DEBUG_OR_RELEASE variable to test against.
3402         * Configurations/PluginService.32.xcconfig:
3403         * Configurations/PluginService.64.xcconfig:
3404         In non-production builds, don't link against WebKit2, so that we don't get warnings about WebKit2.framework
3405         not containing the right architectures. This is ok, as these services are not used in non-production builds.
3406
3407         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/Info.plist:
3408         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService.Development/NetworkServiceMain.Development.mm:
3409         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/Info.plist:
3410         * NetworkProcess/EntryPoint/mac/XPCService/NetworkService/NetworkServiceMain.mm:
3411         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/Info.plist:
3412         * PluginProcess/EntryPoint/mac/XPCService/PluginService.32/PluginService.32.Main.mm:
3413         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/Info.plist:
3414         * PluginProcess/EntryPoint/mac/XPCService/PluginService.64/PluginService.64.Main.mm:
3415         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/Info.plist:
3416         * PluginProcess/EntryPoint/mac/XPCService/PluginService.Development/PluginService.Development.Main.mm:
3417         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/Info.plist:
3418         * WebProcess/EntryPoint/mac/XPCService/WebContentService.Development/WebContentServiceMain.Development.mm:
3419         * WebProcess/EntryPoint/mac/XPCService/WebContentService/Info.plist:
3420         * WebProcess/EntryPoint/mac/XPCService/WebContentService/WebContentServiceMain.mm:
3421         Switch off the the old idiom of defining a macro for the initializer function, and instead set
3422         it in the Info.plist, so the XPCServiceBootstrapper can grab it.
3423
3424         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.Development.h:
3425         (WebKit::XPCServiceEventHandler):
3426         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceBootstrapper.h:
3427         (WebKit::XPCServiceEventHandler):
3428         Get the entry point from the bundle, rather than the macro. This is not only a bit less gross,
3429         but also allows us to build without having linked against WebKit2.framework.
3430
3431         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
3432         (WebKit::shouldUseXPC):
3433         Re-enable using XPC for plug-ins.
3434
3435         * WebKit2.xcodeproj/project.pbxproj:
3436         Update project.
3437
3438 2013-02-10  Anders Carlsson  <andersca@apple.com>
3439
3440         Add back code that was accidentally removed when moving plug-in enumeration back to the main thread
3441         https://bugs.webkit.org/show_bug.cgi?id=109379
3442
3443         Reviewed by Andreas Kling.
3444
3445         * UIProcess/WebProcessProxy.cpp:
3446         (WebKit::WebProcessProxy::getPlugins):
3447
3448 2013-02-10  Kent Tamura  <tkent@chromium.org>
3449
3450         Unreviewed, rolling out r142347.
3451         http://trac.webkit.org/changeset/142347
3452         https://bugs.webkit.org/show_bug.cgi?id=108273
3453
3454         Because a depending change r142343 was rolled out.
3455
3456         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
3457         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
3458         (WebKit::InjectedBundlePageUIClient::plugInStartLabelTitle):
3459         (WebKit::InjectedBundlePageUIClient::plugInStartLabelSubtitle):
3460
3461 2013-02-10  Kent Tamura  <tkent@chromium.org>
3462
3463         Unreviewed, rolling out r142343.
3464         http://trac.webkit.org/changeset/142343
3465         https://bugs.webkit.org/show_bug.cgi?id=108284
3466
3467         It might make inspector/profiler/selector-profiler-url.html
3468         crashy.
3469
3470         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp:
3471         (WebKit::InjectedBundlePageUIClient::plugInStartLabelImage):
3472         (WebKit):
3473         * WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
3474         (InjectedBundlePageUIClient):
3475         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3476         (WebKit::WebChromeClient::plugInStartLabelImage):
3477         (WebKit):
3478         * WebProcess/WebCoreSupport/WebChromeClient.h:
3479         (WebChromeClient):
3480
3481 2013-02-10  Zan Dobersek  <zdobersek@igalia.com>
3482
3483         [WebKit2][Gtk] Remove the fullscreen manager proxy message receiver upon invalidating
3484         https://bugs.webkit.org/show_bug.cgi?id=109352
3485
3486         Reviewed by Sam Weinig.
3487
3488         As added for the Mac port in r142160 due to the changes in the same revision, remove
3489         the fullscreen manager proxy as a message receiver. Also fixes a failing unit test.
3490
3491         * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
3492         (WebKit::WebFullScreenManagerProxy::invalidate):
3493
3494 2013-02-10  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
3495
3496         [WK2] Fix build on PLUGIN_ARCHITECTURE(UNSUPPORTED) after r142314
3497         https://bugs.webkit.org/show_bug.cgi?id=109364
3498
3499         Reviewed by Simon Hausmann.
3500
3501         void NetscapePlugin::platformPreInitialize() is need to be added to NetscapePluginNone.cpp.
3502
3503         * WebProcess/Plugins/Netscape/NetscapePluginNone.cpp:
3504         (WebKit::NetscapePlugin::platformPreInitialize):
3505         (WebKit):
3506
3507 2013-02-09  Sheriff Bot  <webkit.review.bot@gmail.com>
3508
3509         Unreviewed, rolling out r137328.
3510         http://trac.webkit.org/changeset/137328
3511         https://bugs.webkit.org/show_bug.cgi?id=109367
3512
3513         causes memory usage to balloon if connection queue is filling
3514         faster than sending (Requested by kling on #webkit).
3515
3516         * Platform/CoreIPC/ArgumentEncoder.cpp:
3517         (CoreIPC::ArgumentEncoder::ArgumentEncoder):
3518         (CoreIPC::ArgumentEncoder::grow):
3519         * Platform/CoreIPC/ArgumentEncoder.h:
3520         (CoreIPC::ArgumentEncoder::buffer):
3521         (ArgumentEncoder):
3522
3523 2013-02-08  Sam Weinig  <sam@webkit.org>
3524
3525         Fix ASSERT when the Web Content Process crashes
3526         https://bugs.webkit.org/show_bug.cgi?id=109346
3527
3528         Reviewed by Simon Fraser.
3529