[Qt][WK2] Set the fixed layout setting before creating the page
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2012-08-08  Andras Becsi  <andras.becsi@nokia.com>
2
3         [Qt][WK2] Set the fixed layout setting before creating the page
4         https://bugs.webkit.org/show_bug.cgi?id=93374
5
6         Reviewed by Noam Rosenthal.
7
8         Any page setting should preferrable be set before creating the page
9         but fixed layout was set after the initialization of the web page.
10
11         * UIProcess/API/qt/qquickwebview.cpp:
12         (QQuickWebViewPrivate::initialize):
13         (QQuickWebViewFlickablePrivate::initialize):
14
15 2012-08-08  Mario Sanchez Prada  <msanchez@igalia.com>
16
17         [WK2] Add new C API to generate MHTML data from the UI process
18         https://bugs.webkit.org/show_bug.cgi?id=89872
19
20         Reviewed by Anders Carlsson.
21
22         Add new C API in the UI Process, using ENABLE(MHTML) guards as needed.
23
24         * UIProcess/API/C/WKPage.cpp:
25         (WKPageGetContentsAsMHTMLData):
26         * UIProcess/API/C/WKPage.h:
27
28         Implementation in the UI Process's WebPage proxy object.
29
30         * UIProcess/WebPageProxy.cpp:
31         (WebKit):
32         (WebKit::WebPageProxy::getContentsAsMHTMLData):
33         * UIProcess/WebPageProxy.h:
34         (WebPageProxy):
35
36         Implementation in the WebProcess, relying in WebCore::MHTMLArchive.
37
38         * WebProcess/WebPage/WebPage.cpp:
39         (WebKit):
40         (WebKit::WebPage::getContentsAsMHTMLData):
41         * WebProcess/WebPage/WebPage.h:
42         (WebPage):
43         * WebProcess/WebPage/WebPage.messages.in:
44
45 2012-08-07  YoungTaeck Song  <youngtaeck.song@samsung.com>
46
47         [WK2][EFL] Implement accelerated compositing on WK2 Efl port
48         https://bugs.webkit.org/show_bug.cgi?id=89840
49
50         Reviewed by Noam Rosenthal.
51
52         Implement accelerated composition with TiledBackingStore on WK2 Efl port.
53         This implementation is based on COORDINATED_GRAPHICS.
54
55         * CMakeLists.txt:
56         * PlatformEfl.cmake:
57         * Shared/ShareableSurface.cpp:
58         * Shared/WebCoreArgumentCoders.cpp:
59         * Shared/WebCoreArgumentCoders.h:
60         * UIProcess/API/efl/PageClientImpl.cpp:
61         (WebKit::PageClientImpl::PageClientImpl):
62         (WebKit::PageClientImpl::didChangeContentsSize):
63         (WebKit):
64         * UIProcess/API/efl/PageClientImpl.h:
65         (PageClientImpl):
66         * UIProcess/API/efl/ViewportProcessor.cpp: Added.
67         (WebKit):
68         (WebKit::ViewportProcessor::ViewportProcessor):
69         (WebKit::ViewportProcessor::~ViewportProcessor):
70         (WebKit::ViewportProcessor::display):
71         (WebKit::ViewportProcessor::updateViewportSize):
72         (WebKit::ViewportProcessor::setVisibleContentsRect):
73         (WebKit::ViewportProcessor::didChangeContentsSize):
74         * UIProcess/API/efl/ViewportProcessor.h: Added.
75         (WebKit):
76         (ViewportProcessor):
77         (WebKit::ViewportProcessor::create):
78         (WebKit::ViewportProcessor::drawingArea):
79         (WebKit::ViewportProcessor::viewSize):
80         * UIProcess/API/efl/ewk_view.cpp:
81         (_Ewk_View_Private_Data):
82         (_ewk_view_smart_calculate):
83         (ewk_view_base_add):
84         (ewk_view_display):
85         (ewk_view_contents_size_changed):
86         * UIProcess/API/efl/ewk_view_private.h:
87         * UIProcess/PageClient.h:
88         (PageClient):
89         * UIProcess/WebPageProxy.cpp:
90         (WebKit):
91         (WebKit::WebPageProxy::didChangeContentsSize):
92         * UIProcess/WebPageProxy.h:
93         (WebPageProxy):
94         * UIProcess/WebPageProxy.messages.in:
95         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
96         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
97         * WebProcess/WebPage/LayerTreeHost.cpp:
98         (WebKit::LayerTreeHost::create):
99         * WebProcess/WebPage/LayerTreeHost.h:
100         (WebKit):
101         * WebProcess/efl/WebProcessMainEfl.cpp:
102         (WebKit::WebProcessMainEfl):
103
104 2012-08-07  Csaba Osztrogon√°c  <ossy@webkit.org>
105
106        [Qt] New API tests introuduced in r119723 marked as fail, but pass
107        https://bugs.webkit.org/show_bug.cgi?id=88870
108
109         Reviewed by Alexis Menard.
110
111         Revert r119723, because there are 2 failing tests, and the author and
112         the reviewer of the original patch ignore the bug report long time ago.
113
114         * UIProcess/API/qt/tests/qmltests/WebView/tst_devicePixelRatio.qml: Removed.
115
116 2012-08-07  No'am Rosenthal  <noam.rosenthal@nokia.com>
117
118         GraphicsLayerAnimation shouldn't use HashMap<String>
119         https://bugs.webkit.org/show_bug.cgi?id=93284
120
121         Reviewed by Kenneth Rohde Christiansen.
122
123         Apply the changes to GraphicsLayerAnimation API.
124
125         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
126         (WebCore::CoordinatedGraphicsLayer::addAnimation):
127
128 2012-08-07  No'am Rosenthal  <noam.rosenthal@nokia.com>
129
130         [Qt] Make it possible to build without QtQuick
131
132         Reviewed by Simon Hausmann.
133
134         * Target.pri:
135         * UIProcess/API/qt/tests/tests.pri:
136         * UIProcess/API/qt/tests/util.cpp:
137         * UIProcess/API/qt/tests/util.h:
138         * UIProcess/qt/WebFullScreenManagerProxyQt.cpp:
139         (WebKit::WebFullScreenManagerProxy::invalidate):
140         (WebKit::WebFullScreenManagerProxy::enterFullScreen):
141         (WebKit::WebFullScreenManagerProxy::exitFullScreen):
142         * UIProcess/qt/WebPageProxyQt.cpp:
143         (WebKit::WebPageProxy::resolveApplicationSchemeRequest):
144         (WebKit::WebPageProxy::sendApplicationSchemeReply):
145         * WebKit2.pri:
146
147 2012-07-19  Simon Hausmann  <simon.hausmann@nokia.com>
148
149         [Qt] Remove Qt 4 specific code paths
150         https://bugs.webkit.org/show_bug.cgi?id=88161
151
152         Reviewed by Kenneth Rohde Christiansen.
153
154         * UIProcess/API/qt/qquickwebview.cpp:
155         * UIProcess/API/qt/tests/publicapi/tst_publicapi.cpp:
156         (gatherAPI):
157         * WebKit2.pri:
158
159 2012-08-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
160
161         [EFL][WK2] Add back forward list API
162         https://bugs.webkit.org/show_bug.cgi?id=92345
163
164         Reviewed by Kenneth Rohde Christiansen.
165
166         Added new Back Forward list API to EFL WK2. Ewk_Back_Forward_List and
167         Ewk_Back_Forward_List_Item structures were added. The new API is
168         mostly the same as one from UIProcess/API/C/{ WKBackForwardList.h, WKBackForwardListItem.h }.
169
170         * PlatformEfl.cmake:
171         * UIProcess/API/efl/ewk_back_forward_list.cpp: Added.
172         (_Ewk_Back_Forward_List):
173         (_Ewk_Back_Forward_List::_Ewk_Back_Forward_List):
174         (getOrCreateItem):
175         (webkit_back_forward_list_current_item_get):
176         (webkit_back_forward_list_back_item_get):
177         (webkit_back_forward_list_forward_item_get):
178         (webkit_back_forward_list_item_at_index_get):
179         (webkit_back_forward_list_length_get):
180         (ewk_back_forward_list_changed):
181         (ewk_back_forward_list_new):
182         (ewk_back_forward_list_free):
183         * UIProcess/API/efl/ewk_back_forward_list.h: Added.
184         * UIProcess/API/efl/ewk_back_forward_list_item.cpp: Added.
185         (getItemProperty):
186         (_Ewk_Back_Forward_List_Item):
187         (_Ewk_Back_Forward_List_Item::_Ewk_Back_Forward_List_Item):
188         (_Ewk_Back_Forward_List_Item::~_Ewk_Back_Forward_List_Item):
189         (ewk_back_forward_list_item_ref):
190         (ewk_back_forward_list_item_unref):
191         (ewk_back_forward_list_item_uri_get):
192         (ewk_back_forward_list_item_title_get):
193         (ewk_back_forward_list_item_original_uri_get):
194         (ewk_back_forward_list_item_new):
195         * UIProcess/API/efl/ewk_back_forward_list_item.h: Added.
196         * UIProcess/API/efl/ewk_back_forward_list_item_private.h: Added.
197         * UIProcess/API/efl/ewk_back_forward_list_private.h: Added.
198         * UIProcess/API/efl/ewk_view.cpp:
199         (_Ewk_View_Private_Data):
200         (_Ewk_View_Private_Data::_Ewk_View_Private_Data):
201         (_Ewk_View_Private_Data::~_Ewk_View_Private_Data):
202         (ewk_view_back_forward_list_get): New function to get back-forward list.
203         * UIProcess/API/efl/ewk_view.h:
204         * UIProcess/API/efl/ewk_view_loader_client.cpp:
205         (didChangeBackForwardList): The callback added to update back-forward list items cache.
206         (ewk_view_loader_client_attach):
207
208 2012-08-07  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
209
210         CUSTOM_SCHEME_HANDLER flag should depend on REGISTER_PROTOCOL_HANDLER
211         https://bugs.webkit.org/show_bug.cgi?id=93081
212
213         Reviewed by Adam Barth.
214
215         CUSTOM_SCHEME_HANDLER #if guards are enclosed in the REGISTER_PROTOCOL_HANDLER guards.
216
217         * WebProcess/WebCoreSupport/WebRegisterProtocolHandlerClient.h:
218         (WebRegisterProtocolHandlerClient):
219
220 2012-08-07  Hyerim Bae  <hyerim.bae@samsung.com>
221
222         [EFL][WK2] Add ewk_view_find_client.h / cpp for wrapping WKPageSetPageFindClient.
223         https://bugs.webkit.org/show_bug.cgi?id=90927
224
225         Reviewed by Kentaro Hara.
226
227         Add ewk_view_find_client.h / files for wrapping WKPageSetPageFindClient,
228         add didFindString callback member of WKPageSetPageFindClient.
229
230         * PlatformEfl.cmake:
231         * UIProcess/API/efl/ewk_view.cpp:
232         (ewk_view_base_add):
233         (ewk_view_text_found):
234         (ewk_view_text_find):
235         (ewk_view_text_find_highlight_clear):
236         * UIProcess/API/efl/ewk_view.h:
237         * UIProcess/API/efl/ewk_view_find_client.cpp: Added.
238         (toEwkView):
239         (didFindString):
240         (ewk_view_find_client_attach):
241         * UIProcess/API/efl/ewk_view_find_client_private.h: Added.
242         * UIProcess/API/efl/ewk_view_private.h:
243
244 2012-08-06  Sheriff Bot  <webkit.review.bot@gmail.com>
245
246         Unreviewed, rolling out r124816.
247         http://trac.webkit.org/changeset/124816
248         https://bugs.webkit.org/show_bug.cgi?id=93311
249
250         made some tests crash (Requested by noamr on #webkit).
251
252         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
253         (WebCore::CoordinatedGraphicsLayer::addAnimation):
254
255 2012-08-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
256
257         GraphicsLayerAnimation shouldn't use HashMap<String>
258         https://bugs.webkit.org/show_bug.cgi?id=93284
259
260         Reviewed by Kenneth Rohde Christiansen.
261
262         Apply the changes to GraphicsLayerAnimation API.
263
264         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
265         (WebCore::CoordinatedGraphicsLayer::addAnimation):
266
267 2012-08-03  Brady Eidson  <beidson@apple.com>
268
269         Out-of-process plug-ins should support asynchronous initialization
270         <rdar://problem/10598594> and https://bugs.webkit.org/show_bug.cgi?id=92919
271
272         Reviewed by Anders Carlsson.
273
274         If a plug-in has been deemed capable of asynchronous initialization when run out of process...
275         ...then do that!
276
277         Add flags to communicate that this plugin create is meant to create a plug-in already requested asynchronously and
278         to include whether or not the initialize call should include an artificial delay (for testing):
279         * PluginProcess/PluginCreationParameters.cpp:
280         (WebKit::PluginCreationParameters::PluginCreationParameters):
281         (WebKit::PluginCreationParameters::encode):
282         (WebKit::PluginCreationParameters::decode):
283         * PluginProcess/PluginCreationParameters.h:
284         (PluginCreationParameters):
285
286         Add a flag for the UI Process to tell the PluginProcess that it supports asynchronous initialization:
287         * Shared/Plugins/PluginProcessCreationParameters.cpp:
288         (WebKit::PluginProcessCreationParameters::PluginProcessCreationParameters):
289         (WebKit::PluginProcessCreationParameters::encode):
290         (WebKit::PluginProcessCreationParameters::decode):
291         * Shared/Plugins/PluginProcessCreationParameters.h:
292         (PluginProcessCreationParameters):
293
294         Allow the UI Process to pass along whether the plug-on supports asynchronous initialization:
295         * UIProcess/Plugins/PluginProcessProxy.cpp:
296         (WebKit::PluginProcessProxy::pluginProcessCrashedOrFailedToLaunch):
297         (WebKit::PluginProcessProxy::didCreateWebProcessConnection):
298         * UIProcess/Plugins/PluginProcessProxy.h:
299         (PluginProcessProxy):
300         * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
301         (WebKit::PluginProcessProxy::platformInitializePluginProcess):
302         * UIProcess/WebProcessProxy.messages.in:
303
304         Allow the Plugin Process to pass whether or not it supports asynchronous initialization, originally determined
305         in the UI Process, along to the WebProcess:
306         * PluginProcess/PluginProcess.cpp:
307         (WebKit::PluginProcess::PluginProcess):
308         (WebKit::PluginProcess::initializePluginProcess):
309         (WebKit::PluginProcess::createWebProcessConnection):
310         * PluginProcess/PluginProcess.h:
311         (PluginProcess):
312         * UIProcess/Plugins/PluginProcessProxy.messages.in:
313
314         Add a flag so PluginProcessConnections remember whether or not they support asynchronous initialization:
315         * WebProcess/Plugins/PluginProcessConnection.cpp:
316         (WebKit::PluginProcessConnection::PluginProcessConnection):
317         (WebKit::PluginProcessConnection::setSupportsAsynchronousPluginInitialization):
318         (WebKit):
319         * WebProcess/Plugins/PluginProcessConnection.h:
320         (WebKit::PluginProcessConnection::create):
321         (WebKit::PluginProcessConnection::supportsAsynchronousPluginInitialization):
322         (PluginProcessConnection):
323
324         Create PluginProcessConnections with the flag passed down from the PluginProcess about whether or not they
325         support asynchronous initialization:
326         * WebProcess/Plugins/PluginProcessConnectionManager.cpp:
327         (WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
328
329         Responding to messages from the WebProcess, most of the heavy decision making in asynchronous initialization is here:
330         * PluginProcess/WebProcessConnection.cpp:
331         (WebKit::asynchronousInstanceIDsToIgnore): A set of instance IDs to *not* create asynchronously later because we know
332           we no longer need to.
333         (WebKit):
334         (WebKit::WebProcessConnection::didReceiveMessage):
335         (WebKit::WebProcessConnection::destroyPlugin): If the plug-in doesn't exist but is awaiting asynchronous creation, flag 
336           this instance ID in the "asynchronous ignore set".
337         (WebKit::WebProcessConnection::createPluginInternal): Renamed from createPlugin, actually does the plug-in creation.
338         (WebKit::WebProcessConnection::createPlugin): Adds the instance ID to the "asynchronous ignore set" then calls createPluginInternal.
339         (WebKit::WebProcessConnection::createPluginAsynchronously): If the instance ID is in the "asynchronous ignore set", remove it from the
340           set and do nothing else. Otherwise, perform the initialization and then send the asynchronous result back to the WebProcess.
341         * PluginProcess/WebProcessConnection.h:
342         (WebProcessConnection):
343         * PluginProcess/WebProcessConnection.messages.in:
344
345         Add helpers for asynchronous initialization that all plug-in types must implement:
346         * WebProcess/Plugins/Plugin.h:
347         (Plugin):
348
349         Add helpers for asynchronous initialization that plug-in controllers can override:
350         * WebProcess/Plugins/PluginController.h:
351         (PluginController):
352         (WebKit::PluginController::asynchronousPluginInitializationEnabled):
353         (WebKit::PluginController::asynchronousPluginInitializationEnabledForAllPlugins):
354         (WebKit::PluginController::artificialPluginInitializationDelayEnabled):
355
356         Give PluginProxys the ability to initialize either asynchronously or synchronously, and also the ability to synchronously
357         wait for previously asynchronous initialization (in case their PluginScriptObject is required):
358         * WebProcess/Plugins/PluginProxy.cpp:
359         (WebKit::PluginProxy::PluginProxy):
360         (WebKit::PluginProxy::initialize): Store the plugin creation parameters as a member, and decide whether to try synchronous
361           or asynchronous initialization.
362         (WebKit):
363         (WebKit::PluginProxy::canInitializeAsynchronously): Answer based on preferences and what the PluginProcessConnection says
364           that it supports.
365         (WebKit::PluginProxy::waitForAsynchronousInitialization): Synchronously wait on initialization when asynchronous initialization
366           was previously requested.
367         (WebKit::PluginProxy::initializeSynchronously):
368         (WebKit::PluginProxy::didCreatePlugin): Double-check that we're still expecting asynchronous initialization, then call
369           through to didCreatePluginInternal.
370         (WebKit::PluginProxy::didCreatePluginInternal): Handle completion of initialization (both synchronously and asynchronously)
371         (WebKit::PluginProxy::didFailToCreatePlugin): Double-check that we're still expecting asynchronous initialization, then call
372           through to didFailToCreatePluginInternal.
373         (WebKit::PluginProxy::didFailToCreatePluginInternal): Handle failure to initialize (both synchronously and asynchronously)
374         (WebKit::PluginProxy::destroy):
375         * WebProcess/Plugins/PluginProxy.h:
376         (WebKit):
377         (WebKit::PluginProxy::isInitializingAsynchronously):
378         (PluginProxy):
379         * WebProcess/Plugins/PluginProxy.messages.in:
380
381         * WebProcess/Plugins/PluginView.cpp:
382         (WebKit::PluginView::PluginView):
383         (WebKit::PluginView::~PluginView): Always destroy the plug-in even if it hasn't been initialized yet, as it might be initializing
384           right now.
385         (WebKit::PluginView::initializePlugin): Don't handle the result of initialization immediately. Break that out in to two
386           methods that will be called later.
387         (WebKit):
388         (WebKit::PluginView::didFailToInitializePlugin):
389         (WebKit::PluginView::didInitializePlugin):
390         (WebKit::PluginView::scriptObject): If we truly need the script object, then wait for a synchronous initialization of the plug-in.
391         (WebKit::PluginView::asynchronousPluginInitializationEnabled):
392         (WebKit::PluginView::asynchronousPluginInitializationEnabledForAllPlugins):
393         (WebKit::PluginView::artificialPluginInitializationDelayEnabled):
394         * WebProcess/Plugins/PluginView.h:
395         (PluginView):
396
397         These methods shouldn't be called in the PluginProcess, only in the WebProcess:
398         * PluginProcess/PluginControllerProxy.cpp:
399         (WebKit::PluginControllerProxy::didInitializePlugin):
400         (WebKit):
401         (WebKit::PluginControllerProxy::didFailToInitializePlugin):
402         * PluginProcess/PluginControllerProxy.h:
403         (PluginControllerProxy):
404
405         NetscapePlugin is for in-process plug-ins:
406         * WebProcess/Plugins/Netscape/NetscapePlugin.h:
407         (NetscapePlugin):
408         (WebKit::NetscapePlugin::waitForAsynchronousInitialization):
409         (WebKit::NetscapePlugin::isInitializingAsynchronously):
410
411         Built-in PDFView is currently only in-process:
412         * WebProcess/Plugins/PDF/BuiltInPDFView.h:
413         (BuiltInPDFView):
414         (WebKit::BuiltInPDFView::waitForAsynchronousInitialization):
415         (WebKit::BuiltInPDFView::isInitializingAsynchronously):
416
417 2012-08-06  Luciano Wolf  <luciano.wolf@openbossa.org>
418
419         [Qt] Default sizes for input-text and text-area are different when running DRT/WTR
420         https://bugs.webkit.org/show_bug.cgi?id=91990
421
422         Reviewed by Kenneth Rohde Christiansen.
423
424         WTR wasn't using the proper font types provided by testfonts directory.
425         The same approach as DRT was applied and now it takes info from QFont to
426         update the store variable.
427
428         * UIProcess/qt/WebPreferencesQt.cpp:
429         (WebKit::setStringValueIfInUserDefaults):
430         (WebKit):
431         (WebKit::WebPreferences::platformInitializeStore):
432
433 2012-08-06  No'am Rosenthal  <noam.rosenthal@nokia.com>
434
435         [Qt] Use GraphicsLayerAnimation in LayerTreeCoordinator
436         https://bugs.webkit.org/show_bug.cgi?id=93147
437
438         Reviewed by Kenneth Rohde Christiansen
439
440         Allow controlling animations outside of WebCore. This is an intermediate step before moving
441         to threaded animations.
442
443         CoordinatedGraphicsLayer maintains the GraphicsLayerAnimation structures, and applies the
444         animation interpolation at the right time, before syncing the rest of the layer info and
445         the visible contents rect.
446
447         This also allows sending shorter IPC messages for animated opacity/transform changes,
448         without the rest of the layer info.
449
450         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
451         (WebKit::LayerTreeCoordinatorProxy::setLayerAnimatedOpacity):
452         (WebKit):
453         (WebKit::LayerTreeCoordinatorProxy::setLayerAnimatedTransform):
454         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
455         (LayerTreeCoordinatorProxy):
456         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
457         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
458         (WebKit::LayerTreeRenderer::setAnimatedOpacity):
459         (WebKit):
460         (WebKit::LayerTreeRenderer::setAnimatedTransform):
461         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
462         (LayerTreeRenderer):
463         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
464         (WebCore::CoordinatedGraphicsLayer::didChangeAnimatedProperties):
465         (WebCore):
466         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
467         (WebCore::CoordinatedGraphicsLayer::syncLayerState):
468         (WebCore::CoordinatedGraphicsLayer::syncAnimatedProperties):
469         (WebCore::CoordinatedGraphicsLayer::syncCompositingStateForThisLayerOnly):
470         (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
471             account for the animated transform in the visible rect.
472
473         (WebCore::CoordinatedGraphicsLayer::addAnimation):
474         (WebCore::CoordinatedGraphicsLayer::pauseAnimation):
475         (WebCore::CoordinatedGraphicsLayer::removeAnimation):
476         (WebCore::CoordinatedGraphicsLayer::animationStartedTimerFired):
477         (WebCore::CoordinatedGraphicsLayer::setAnimatedTransform):
478         (WebCore::CoordinatedGraphicsLayer::setAnimatedOpacity):
479         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
480         (CoordinatedGraphicsLayerClient):
481         (CoordinatedGraphicsLayer):
482         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
483         (WebKit):
484         (WebKit::LayerTreeCoordinator::setLayerAnimatedOpacity):
485         (WebKit::LayerTreeCoordinator::setLayerAnimatedTransform):
486         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
487         (LayerTreeCoordinator):
488
489 2012-08-06  Anders Carlsson  <andersca@apple.com>
490
491         If the Apple Java plug-in is blocked and no runtime is installed, don't load it
492         https://bugs.webkit.org/show_bug.cgi?id=93289
493         <rdar://problem/11730092>
494
495         Reviewed by Dan Bernstein.
496
497         If the Apple Java plug-in is blocked, but there's no Java runtime installed (or the Java plug-in is disabled),
498         don't even include it in the plug-in info store.
499
500         * UIProcess/Plugins/PluginInfoStore.cpp:
501         (WebKit::PluginInfoStore::shouldBlockPlugin):
502         Since this is static now, it shouldn't be const.
503
504         * UIProcess/Plugins/PluginInfoStore.h:
505         (PluginInfoStore):
506         shouldBlockPlugin can be static.
507
508         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
509         (WebKit::PluginInfoStore::shouldUsePlugin):
510         Return false if the Apple Java plug-in is blocked but Java isn't installed or enabled.
511
512         (WebKit::PluginInfoStore::shouldBlockPlugin):
513         Since this is static now, it shouldn't be const.
514
515 2012-08-06  Mario Sanchez Prada  <msanchez@igalia.com>
516
517         [WK2][GTK] Improvements for the new spell-checking API
518         https://bugs.webkit.org/show_bug.cgi?id=93262
519
520         Reviewed by Carlos Garcia Campos.
521
522         Improve the way the new spell-checking API is implemented, by
523         using better internal representations for data, documenting better
524         the new functions and using better unit tests.
525
526         * UIProcess/API/gtk/WebKitTextChecker.cpp:
527         (WebKitTextChecker::getSpellCheckingLanguages): Just return the
528         value previously cached when calling to the setter function.
529         (WebKitTextChecker::setSpellCheckingLanguages): Update the text
530         checker in WebCore and cache the value returned from it.
531         * UIProcess/API/gtk/WebKitTextChecker.h:
532         (WebKitTextChecker): Use a CString instead of an String to cache
533         the list of spell checking languages. Update getter and setter.
534         * UIProcess/API/gtk/WebKitWebContext.cpp:
535         (_WebKitWebContextPrivate): No need to cache the spell checking
536         languages here anymore.
537         (webkit_web_context_get_spell_checking_languages): Improve
538         both implementation and documentation to be more consistent.
539         (webkit_web_context_set_spell_checking_languages): Make
540         'languages' a mandatory (non-NULL) parameter. Update documentation.
541         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
542         (testWebContextSpellChecker): Test even more situations.
543
544 2012-08-06  Andras Becsi  <andras.becsi@nokia.com>
545
546         [Qt][WK2] Remove workarounds from input event handling
547         https://bugs.webkit.org/show_bug.cgi?id=93125
548
549         Reviewed by Jocelyn Turcotte.
550
551         Since input event propagation in Qt5 has been fixed we can remove
552         the workarounds introduced to prevent the QML WebView from receiving
553         input events targeting a child dialog.
554         To do this the childMouseEventFilter function has to be changed to
555         force touch and mouse events through the default propagation path.
556
557         * UIProcess/API/qt/qquickwebview.cpp:
558         (QQuickWebViewPrivate::QQuickWebViewPrivate):
559         (QQuickWebViewLegacyPrivate::initialize):
560         (QQuickWebView::childMouseEventFilter):
561         (QQuickWebView::touchEvent):
562         * UIProcess/API/qt/qquickwebview_p_p.h:
563         (QQuickWebViewPrivate):
564         (QQuickWebViewLegacyPrivate):
565         * UIProcess/qt/QtDialogRunner.cpp:
566         (WebKit::QtDialogRunner::run):
567         * UIProcess/qt/WebColorChooserProxyQt.cpp:
568         (WebKit::WebColorChooserProxyQt::createItem):
569         (WebKit::WebColorChooserProxyQt::endChooser):
570         * UIProcess/qt/WebPopupMenuProxyQt.cpp:
571         (WebKit::WebPopupMenuProxyQt::showPopupMenu):
572         (WebKit::WebPopupMenuProxyQt::hidePopupMenu):
573
574 2012-08-06  Mario Sanchez Prada  <msanchez@igalia.com>
575
576         [WK2][GTK] Implement a new spell checker API for WebKit2GTK+
577         https://bugs.webkit.org/show_bug.cgi?id=90268
578
579         Reviewed by Martin Robinson.
580
581         Add a simple spell checking API to WK2, allowing to enable/disable
582         this feature and to define a list of languages associated to it.
583
584         * GNUmakefile.am: Add flags to handle the SPELLCHECK feature.
585         * GNUmakefile.list.am: Added new files
586
587         Added new internal class that will act both as the implementation
588         of TextCheckerClient and as the object WebKitWebContext will
589         depend on to implement the newly added API.
590
591         * UIProcess/API/gtk/WebKitTextChecker.cpp: Added.
592         (toTextChecker):
593         (continuousSpellCheckingEnabledCallback):
594         (setContinuousSpellCheckingEnabledCallback):
595         (checkSpellingOfStringCallback):
596         (guessesForWordCallback):
597         (learnWordCallback):
598         (ignoreWordCallback):
599         (WebKitTextChecker::~WebKitTextChecker):
600         (WebKitTextChecker::create):
601         (WebKitTextChecker::WebKitTextChecker):
602         (WebKitTextChecker::checkSpellingOfString):
603         (WebKitTextChecker::getGuessesForWord):
604         (WebKitTextChecker::learnWord):
605         (WebKitTextChecker::ignoreWord):
606         (WebKitTextChecker::setSpellCheckingEnabled):
607         (WebKitTextChecker::setSpellCheckingLanguages):
608         * UIProcess/API/gtk/WebKitTextChecker.h: Added.
609         (WebKitTextChecker):
610         (WebKitTextChecker::isSpellCheckingEnabled):
611         (WebKitTextChecker::getSpellCheckingLanguages):
612
613         Added WKTextChecker to WebKitPrivate.h, needed in WebKitTextChecker.
614
615         * UIProcess/API/gtk/WebKitPrivate.h:
616
617         Add new API to WebKitWebContext to allow enabling/disabling this
618         spell checking feature, and to set/get the list of languages used
619         to decide which dictionaries will be consulted.
620
621         * UIProcess/API/gtk/WebKitWebContext.cpp:
622         (_WebKitWebContextPrivate):
623         (createDefaultWebContext):
624         (webkit_web_context_get_spell_checking_enabled): New API.
625         (webkit_web_context_set_spell_checking_enabled): Ditto.
626         (webkit_web_context_get_spell_checking_languages): Ditto.
627         (webkit_web_context_set_spell_checking_languages): Ditto.
628         * UIProcess/API/gtk/WebKitWebContext.h:
629
630         New tests for checking the new API added to WebKitWebContext.
631
632         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
633         (testWebContextSpellChecker):
634         (beforeAll):
635
636         Update documentation with new sections and symbols.
637
638         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:
639         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
640
641 2012-08-05  Benjamin Poulain  <bpoulain@apple.com>
642
643         Assert in checkValidity() in hashtable.h from WebGeolocationManager::didFailToDeterminePosition() when fetching http://html5demos.com/geo
644         https://bugs.webkit.org/show_bug.cgi?id=80386
645
646         Reviewed by Alexey Proskuryakov.
647
648         WebKit2's WebGeolocationManager was delivering events without accounting that each event
649         can modify the list of page that need delivery.
650         Any page can remove itself by invoking clearWatch() from the callback function. A page can also cause another
651         page to be removed.
652
653         This patch solves the issue by taking a copy of the list of page before delivery. Each page is
654         referenced as it can be deleted during the delivery.
655
656         Unfortunately, this cannot be tested due to missing features of WebKitTestRunner.
657
658         * WebProcess/Geolocation/WebGeolocationManager.cpp:
659         (WebKit::WebGeolocationManager::didChangePosition):
660         (WebKit::WebGeolocationManager::didFailToDeterminePosition):
661
662 2012-08-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
663
664         [Qt] UI_SIDE_COMPOSITING code has confusing names
665         https://bugs.webkit.org/show_bug.cgi?id=93164
666
667         Reviewed by Kenneth Rohde Christiansen.
668
669         Renamed and consolidated code guarded under UI_SIDE_COMPOSITING, now under
670         USE(COORDINATED_GRAPHICS) guard and CoordinatedGraphics folders.
671
672         * CMakeLists.txt:
673         * DerivedSources.pri:
674         * Shared/WebCoreArgumentCoders.cpp:
675         (CoreIPC):
676         * Shared/WebCoreArgumentCoders.h:
677         * Shared/WebLayerTreeInfo.cpp:
678         * Shared/WebLayerTreeInfo.h:
679         * Target.pri:
680         * UIProcess/API/qt/qquickwebpage.cpp:
681         (QQuickWebPage::updatePaintNode):
682         * UIProcess/API/qt/raw/qrawwebview.cpp:
683         (QRawWebView::paint):
684         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp: Renamed from Source/WebKit2/UIProcess/texmap/LayerBackingStore.cpp.
685         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h: Renamed from Source/WebKit2/UIProcess/texmap/LayerBackingStore.h.
686         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.cpp.
687         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.h.
688         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.messages.in.
689         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: Renamed from Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp.
690         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: Renamed from Source/WebKit2/UIProcess/WebLayerTreeRenderer.h.
691         * UIProcess/DrawingAreaProxy.cpp:
692         (WebKit):
693         * UIProcess/DrawingAreaProxy.h:
694         (DrawingAreaProxy):
695         * UIProcess/DrawingAreaProxyImpl.cpp:
696         (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
697         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
698         (WebKit):
699         * UIProcess/DrawingAreaProxyImpl.h:
700         (DrawingAreaProxyImpl):
701         * UIProcess/WebPageProxy.cpp:
702         (WebKit::WebPageProxy::didReceiveMessage):
703         * UIProcess/qt/QtWebPageSGNode.cpp:
704         (WebKit::ContentsSGNode::ContentsSGNode):
705         (WebKit::ContentsSGNode::layerTreeRenderer):
706         (ContentsSGNode):
707         (WebKit::QtWebPageSGNode::setRenderer):
708         * UIProcess/qt/QtWebPageSGNode.h:
709         (WebKit):
710         (QtWebPageSGNode):
711         * WebKit2.pri:
712         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
713         (WebKit::WebChromeClient::scheduleAnimation):
714         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp.
715         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.h.
716         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/TiledBackingStoreRemoteTile.cpp.
717         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.h: Renamed from Source/WebKit2/WebProcess/WebPage/TiledBackingStoreRemoteTile.h.
718         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp.
719         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h.
720         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.messages.in: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.messages.in.
721         * WebProcess/WebPage/DrawingArea.h:
722         (DrawingArea):
723         * WebProcess/WebPage/DrawingAreaImpl.cpp:
724         (WebKit):
725         * WebProcess/WebPage/DrawingAreaImpl.h:
726         (DrawingAreaImpl):
727         * WebProcess/WebPage/LayerTreeHost.h:
728         (LayerTreeHost):
729         * WebProcess/WebPage/UpdateAtlas.cpp:
730         * WebProcess/WebPage/UpdateAtlas.h:
731         * WebProcess/qt/WebProcessMainQt.cpp:
732         (WebKit::WebProcessMainQt):
733
734 2012-08-04  Christophe Dumez  <christophe.dumez@intel.com>
735
736         [WK2] Move WebIntentData from Shared to UIProcess
737         https://bugs.webkit.org/show_bug.cgi?id=93175
738
739         Reviewed by Kenneth Rohde Christiansen.
740
741         Move WebIntentData from Shared to UIProcess to
742         prepare for MessagePorts support in WK2.
743
744         * CMakeLists.txt:
745         * GNUmakefile.list.am:
746         * Target.pri:
747         * UIProcess/WebIntentData.cpp: Renamed from Source/WebKit2/Shared/WebIntentData.cpp.
748         (WebKit):
749         (WebKit::WebIntentData::WebIntentData):
750         (WebKit::WebIntentData::data):
751         (WebKit::WebIntentData::suggestions):
752         (WebKit::WebIntentData::extra):
753         (WebKit::WebIntentData::extras):
754         * UIProcess/WebIntentData.h: Renamed from Source/WebKit2/Shared/WebIntentData.h.
755         (WebKit):
756         (WebIntentData):
757         (WebKit::WebIntentData::create):
758         (WebKit::WebIntentData::~WebIntentData):
759         (WebKit::WebIntentData::action):
760         (WebKit::WebIntentData::payloadType):
761         (WebKit::WebIntentData::service):
762         (WebKit::WebIntentData::store):
763         (WebKit::WebIntentData::type):
764
765 2012-08-03  Anders Carlsson  <andersca@apple.com>
766
767         Nothing happens when clicking on the unavailable plug-in button for a blocked plug-in
768         https://bugs.webkit.org/show_bug.cgi?id=93161
769
770         Reviewed by John Sullivan.
771
772         Be more robust against values being added to the RenderEmbeddedObject::PluginUnavailabilityReason
773         enumeration, and use a switch statement instead of blindly casting the type value to a WKPluginUnavailabilityReason.
774
775         * UIProcess/WebPageProxy.cpp:
776         (WebKit::WebPageProxy::unavailablePluginButtonClicked):
777
778 2012-08-03  Brady Eidson  <beidson@apple.com>
779
780         Small part of "Out-of-process plug-ins should support asynchronous initialization."
781         <rdar://problem/10598594> and https://bugs.webkit.org/show_bug.cgi?id=92919
782
783         Unreviewed (build fix).
784
785         * Shared/WebPreferencesStore.h:
786         (WebKit): Include this file which has the declaration of the new pref.
787
788 2012-08-03  Brady Eidson  <beidson@apple.com>
789
790         Small part of "Out-of-process plug-ins should support asynchronous initialization."
791         <rdar://problem/10598594> and https://bugs.webkit.org/show_bug.cgi?id=92919
792
793         Reviewed by Anders Carlsson.
794
795         -Add API-level preferences for forcing asynchronous initialization of all plug-ins (for testing).
796         -Make sure "overridePreference" is hooked up properly for all needed preferences.
797
798         * UIProcess/API/C/WKPreferences.cpp:
799         (WKPreferencesSetAsynchronousPluginInitializationEnabledForAllPlugins):
800         (WKPreferencesGetAsynchronousPluginInitializationEnabledForAllPlugins):
801         * UIProcess/API/C/WKPreferencesPrivate.h:
802
803         * WebProcess/InjectedBundle/InjectedBundle.cpp:
804         (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
805
806         * WebProcess/WebPage/WebPage.cpp:
807         (WebKit::WebPage::WebPage):
808         (WebKit::WebPage::updatePreferences):
809         * WebProcess/WebPage/WebPage.h:
810         (WebKit::WebPage::setAsynchronousPluginInitializationEnabled):
811         (WebKit::WebPage::asynchronousPluginInitializationEnabledForAllPlugins):
812         (WebKit::WebPage::setAsynchronousPluginInitializationEnabledForAllPlugins):
813         (WebKit::WebPage::setArtificialPluginInitializationDelayEnabled):
814         (WebPage):
815
816 2012-08-02  Jeffrey Pfau  <jpfau@apple.com>
817
818         Add API for enabling blanket third-party data blocking
819         https://bugs.webkit.org/show_bug.cgi?id=93022
820
821         Reviewed by Anders Carlsson.
822
823         Added API for enabling third-party storage blocking.
824
825         * Shared/WebPreferencesStore.h:
826         (WebKit):
827         * UIProcess/API/C/WKPreferences.cpp:
828         (WKPreferencesSetThirdPartyStorageBlockingEnabled):
829         (WKPreferencesGetThirdPartyStorageBlockingEnabled):
830         * UIProcess/API/C/WKPreferences.h:
831         * WebProcess/WebPage/WebPage.cpp:
832         (WebKit::WebPage::updatePreferences):
833
834 2012-08-03  Hugo Parente Lima  <hugo.lima@openbossa.org>
835
836         [Qt][WK2] There's no way to test the gesture tap on WTR
837         https://bugs.webkit.org/show_bug.cgi?id=92895
838
839         Reviewed by Kenneth Rohde Christiansen.
840
841         Add an instance of QtViewportHandler to QQuickWebViewPrivate, so it's
842         now available on mobile and desktop modes, as a side effect gesture tap
843         events can now be created and sent to WebCore.
844
845         This is needed to test tap gestures and to get tap gestures working
846         when you have a WebView (in desktop mode) on notebooks equipped with
847         touch screens.
848
849         * UIProcess/API/qt/qquickwebview.cpp:
850         (QQuickWebViewPrivate::onComponentComplete):
851         (QQuickWebViewFlickablePrivate::onComponentComplete): Implementation
852         moved to QQuickWebViewPrivate::onComponentComplete.
853         * UIProcess/API/qt/qquickwebview_p_p.h:
854         (QQuickWebViewPrivate):
855         (QQuickWebViewFlickablePrivate):
856
857 2012-08-02  Alexey Proskuryakov  <ap@apple.com>
858
859         [WK2] Move some WebContext messages to WebProcessProxy
860         https://bugs.webkit.org/show_bug.cgi?id=93046
861
862         Reviewed by Anders Carlsson.
863
864         * UIProcess/WebContext.cpp: (WebKit::WebContext::didReceiveSyncMessage): Unrelated
865         fix - use actual process argument instead of second-guessing where the message came
866         from.
867
868         * UIProcess/WebContext.h: (WebKit::WebContext::historyClient): Expose history client,
869         since WebProcessProxy now needs it.
870
871         * UIProcess/WebContext.messages.in:
872         * UIProcess/WebProcessProxy.cpp:
873         (WebKit::WebProcessProxy::didNavigateWithNavigationData):
874         (WebKit::WebProcessProxy::didPerformClientRedirect):
875         (WebKit::WebProcessProxy::didPerformServerRedirect):
876         (WebKit::WebProcessProxy::didUpdateHistoryTitle):
877         * UIProcess/WebProcessProxy.h:
878         * UIProcess/WebProcessProxy.messages.in:
879         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
880         (WebKit::WebFrameLoaderClient::updateGlobalHistory):
881         (WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
882         (WebKit::WebFrameLoaderClient::setTitle):
883         Move the messages.
884
885 2012-08-03  Balazs Kelemen  <kbalazs@webkit.org>
886
887         Unreviewed, rolling out r124603.
888         http://trac.webkit.org/changeset/124603
889         https://bugs.webkit.org/show_bug.cgi?id=93077
890
891         Made a few tests crash under
892         LayerTreeCoordinator::flushPendingLayerChanges
893
894         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
895         (WebKit::LayerTreeCoordinator::LayerTreeCoordinator):
896         (WebKit::LayerTreeCoordinator::forceRepaint):
897         (WebKit::LayerTreeCoordinator::layerTreeTileUpdatesAllowed):
898         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
899         (LayerTreeCoordinator):
900
901 2012-08-03  Mario Sanchez Prada  <msanchez@igalia.com>
902
903         Unreviewed build fix for GTK after r124479.
904
905         * UIProcess/WebInspectorProxy.cpp:
906         (WebKit): Moved static const definitions from header file.
907         * UIProcess/WebInspectorProxy.h:
908         (WebInspectorProxy): Don't give values to static const members
909         here.
910
911 2012-08-03  Balazs Kelemen  <kbalazs@webkit.org>
912
913         [WK2] LayerTreeCoordinator can disallow tile updates in forceRepaint
914         https://bugs.webkit.org/show_bug.cgi?id=93077
915
916         Reviewed by Jocelyn Turcotte.
917
918         Force tile updates when doing a forced repaint.
919
920         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
921         (WebKit::LayerTreeCoordinator::LayerTreeCoordinator):
922         (WebKit::LayerTreeCoordinator::forceRepaint):
923         (WebKit::LayerTreeCoordinator::layerTreeTileUpdatesAllowed):
924         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
925         (LayerTreeCoordinator):
926
927 2012-08-02  Carlos Garcia Campos  <cgarcia@igalia.com>
928
929         [GTK] Inspector should set a default attached height before being attached
930         https://bugs.webkit.org/show_bug.cgi?id=90767
931
932         Reviewed by Xan Lopez.
933
934         We are currently using the minimum attached height in
935         WebKitWebViewBase as the default height for the inspector when
936         attached. It would be easier for WebKitWebViewBase and embedders
937         implementing attach() if the inspector already had an attached
938         height set when it's being attached.
939
940         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
941         (webkitWebViewBaseContainerAdd): Don't initialize
942         inspectorViewHeight.
943         (webkitWebViewBaseSetInspectorViewHeight): Allow to set the
944         inspector view height before having an inpector view, but only
945         queue a resize when the view already has an inspector view.
946         * UIProcess/API/gtk/tests/TestInspector.cpp:
947         (testInspectorDefault):
948         (testInspectorManualAttachDetach):
949         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
950         (WebKit::WebInspectorProxy::platformAttach): Set the default
951         attached height before attach the inspector view.
952
953 2012-08-02  Dinu Jacob  <dinu.jacob@nokia.com>
954
955         WebKitTestRunner needs layoutTestController.setUserStyleSheetEnabled
956         https://bugs.webkit.org/show_bug.cgi?id=42679
957
958         Reviewed by Eric Seidel.
959
960         Added WKBundleSetUserStyleSheetLocation API.
961
962         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
963         (WKBundleSetUserStyleSheetLocation): Added.
964         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h: Added WKBundleSetUserStyleSheetLocation.
965         * WebProcess/InjectedBundle/InjectedBundle.cpp:
966         (WebKit::InjectedBundle::setUserStyleSheetLocation): Added. Sets the user style sheet location
967         for all pages in the page group.
968         (WebKit):
969         * WebProcess/InjectedBundle/InjectedBundle.h:
970         (InjectedBundle):
971
972 2012-08-02  Lauro Neto  <lauro.neto@openbossa.org>
973
974         [Qt] Fix axis locking when panning on N9
975         https://bugs.webkit.org/show_bug.cgi?id=92394
976
977         Reviewed by Simon Hausmann.
978
979         Make the QQuickWebView axis locker calculate the
980         time between events using QInputEvent.timestamp, which
981         is set from the native event when available.
982
983         Also use touchPoint.pos() instead of screenPos() to
984         correct the axis detection when running on N9, which
985         has a native landscape display and the applications usually
986         run in portrait mode.
987
988         * UIProcess/API/qt/qquickwebview.cpp:
989         (QQuickWebViewPrivate::FlickableAxisLocker::FlickableAxisLocker):
990         (QQuickWebViewPrivate::FlickableAxisLocker::touchVelocity):
991         (QQuickWebViewPrivate::FlickableAxisLocker::update):
992         * UIProcess/API/qt/qquickwebview_p_p.h:
993         (FlickableAxisLocker):
994
995 2012-08-02  Hyerim Bae  <hyerim.bae@samsung.com>
996
997         [EFL][WK2]Add ewk_view_ui_client.
998         https://bugs.webkit.org/show_bug.cgi?id=89864
999
1000         Reviewed by Kentaro Hara.
1001
1002         Add ewk_view_ui_client.h / cpp files for wrapping WKPageSetPageUIClient,
1003         add close, createNewPage callback member to WKPageSetPageUIClient.
1004
1005         * PlatformEfl.cmake:
1006         * UIProcess/API/efl/ewk_view.cpp:
1007         (ewk_view_base_add):
1008         (ewk_view_page_close):
1009         (ewk_view_page_create):
1010         * UIProcess/API/efl/ewk_view.h:
1011         * UIProcess/API/efl/ewk_view_private.h:
1012         * UIProcess/API/efl/ewk_view_ui_client.cpp: Added.
1013         (toEwkView):
1014         (closePage):
1015         (createNewPage):
1016         (ewk_view_ui_client_attach):
1017         * UIProcess/API/efl/ewk_view_ui_client_private.h: Added.
1018
1019 2012-08-02  Carlos Garcia Campos  <cgarcia@igalia.com>
1020
1021         [GTK] No main resource in WebView on load committed when page has been loaded from history cache
1022         https://bugs.webkit.org/show_bug.cgi?id=91482
1023
1024         Reviewed by Martin Robinson.
1025
1026         We assume that on load committed, we already have a main resource
1027         in the web view, and it has already received a response. This is
1028         not true for pages loaded from the history cache, so when going
1029         back/forward, we don't have a main resource when the
1030         load-committed signal is emitted. We must ensure that the loading
1031         process documented in the API is the same for pages loaded from
1032         the history cache too.
1033
1034         * UIProcess/API/gtk/WebKitLoaderClient.cpp:
1035         (didCommitLoadForFrame): Call webkitWebViewLoadChanged() and let
1036         the web view handle the certificate.
1037         * UIProcess/API/gtk/WebKitWebResource.cpp:
1038         (webkitWebResourceGetFrame): Helper private function to easily get
1039         the WKFrame associated with a WebResource.
1040         * UIProcess/API/gtk/WebKitWebResourcePrivate.h:
1041         * UIProcess/API/gtk/WebKitWebView.cpp:
1042         (webkitWebViewDisconnectMainResourceResponseChangedSignalHandler):
1043         Disconnect the notify::response signal of the main resource.
1044         (webkitWebViewFinalize): Call
1045         webkitWebViewDisconnectMainResourceResponseChangedSignalHandler().
1046         (setCertificateToMainResource): Set the TLS certificate on the
1047         response of the main resource.
1048         (webkitWebViewEmitLoadChanged): Helper function to emit
1049         load-chancged signal.
1050         (webkitWebViewEmitDelayedLoadEvents): If we were waiting for the
1051         main resource, emit the signals that were delayed.
1052         (webkitWebViewLoadChanged): Do not emit committed or finished if
1053         we are still waiting for the main resource. Set the TLS
1054         certificate if we already have a main resource or wait until we
1055         have the main resource with a response.
1056         (mainResourceResponseChangedCallback): Emitted when the main
1057         resource received the response. Set the certificate on the
1058         response and emit load signals delayed.
1059         (waitForMainResourceResponseIfWaitingForResource): If we are
1060         waiting for the main resource, connect to the notify::response
1061         signal of the WebResource to make sure it has a response already
1062         when load signal delayed are emitted.
1063         (webkitWebViewResourceLoadStarted): Call
1064         waitForMainResourceResponseIfWaitingForResource().
1065         * UIProcess/API/gtk/tests/LoadTrackingTest.cpp:
1066         (loadChangedCallback):
1067         (LoadTrackingTest::goBack):
1068         (LoadTrackingTest::goForward):
1069         * UIProcess/API/gtk/tests/LoadTrackingTest.h:
1070         (LoadTrackingTest):
1071         * UIProcess/API/gtk/tests/TestLoaderClient.cpp:
1072         (testWebViewHistoryLoad):
1073         (serverCallback):
1074         (beforeAll):
1075
1076 2012-08-02  Andras Becsi  <andras.becsi@nokia.com>
1077
1078         [Qt][WK2] Click, mouse and links rely on touch mocking.
1079         https://bugs.webkit.org/show_bug.cgi?id=83091
1080
1081         Reviewed by Simon Hausmann.
1082
1083         Send the incoming mouse events directly to the gesture recognizers to make
1084         the WebView behave consistent with other Flickables.
1085         This patch unifies the code paths for input events and makes it possible
1086         to enable mouse events on the flickable web view again, thus makes the
1087         mobile-version of QQuickWebView usable on desktop.
1088
1089         * UIProcess/API/qt/qquickwebview.cpp:
1090         (QQuickWebViewPrivate::handleMouseEvent):
1091         (QQuickWebViewFlickablePrivate::QQuickWebViewFlickablePrivate):
1092         (QQuickWebViewFlickablePrivate::handleMouseEvent):
1093         (QQuickWebView::mousePressEvent):
1094         (QQuickWebView::mouseMoveEvent):
1095         (QQuickWebView::mouseReleaseEvent):
1096         (QQuickWebView::mouseDoubleClickEvent):
1097         * UIProcess/API/qt/qquickwebview_p_p.h:
1098         (QQuickWebViewPrivate):
1099         (QQuickWebViewFlickablePrivate):
1100         * UIProcess/qt/QtPanGestureRecognizer.cpp:
1101         (WebKit::QtPanGestureRecognizer::update):
1102         * UIProcess/qt/QtWebPageEventHandler.cpp:
1103         (WebKit::QtWebPageEventHandler::QtWebPageEventHandler):
1104         (WebKit::QtWebPageEventHandler::handleInputEvent):
1105         (WebKit):
1106         (WebKit::QtWebPageEventHandler::doneWithTouchEvent):
1107         * UIProcess/qt/QtWebPageEventHandler.h:
1108         (QtWebPageEventHandler):
1109
1110 2012-08-01  Brady Eidson  <beidson@apple.com>
1111
1112         Small part of "Out-of-process plug-ins should support asynchronous initialization."
1113         <rdar://problem/10598594> and https://bugs.webkit.org/show_bug.cgi?id=92919
1114
1115         Reviewed by Anders Carlsson.
1116
1117         Add API-level preferences for:
1118         - Is asynchronous plug-in initialization enabled.
1119         - Is an artificial initialization delay (for testing purposes) enabled.
1120
1121         * Shared/WebPreferencesStore.h:
1122         (WebKit):
1123
1124         * UIProcess/API/C/WKPreferences.cpp:
1125         (WKPreferencesSetAsynchronousPluginInitializationEnabled):
1126         (WKPreferencesGetAsynchronousPluginInitializationEnabled):
1127         (WKPreferencesSetArtificialPluginInitializationDelayEnabled):
1128         (WKPreferencesGetArtificialPluginInitializationDelayEnabled):
1129         * UIProcess/API/C/WKPreferencesPrivate.h:
1130
1131         * WebProcess/WebPage/WebPage.cpp:
1132         (WebKit::WebPage::WebPage):
1133         (WebKit::WebPage::updatePreferences):
1134         * WebProcess/WebPage/WebPage.h:
1135         (WebKit::WebPage::asynchronousPluginInitializationEnabled):
1136         (WebKit::WebPage::artificialPluginInitializationDelayEnabled):
1137         (WebPage):
1138
1139 2012-08-01  Jian Li  <jianli@chromium.org>
1140
1141         Add new CSS property "-webkit-widget-region" to expose dashboard region support for other port
1142         https://bugs.webkit.org/show_bug.cgi?id=90298
1143
1144         Reviewed by Adam Barth.
1145
1146         * Configurations/FeatureDefines.xcconfig: Add ENABLE_WIDGET_REGION define.
1147
1148 2012-08-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
1149
1150         [Qt][WK2] Race condition between first layout and viewport attributes initialization
1151         https://bugs.webkit.org/show_bug.cgi?id=92902
1152
1153         Reviewed by Noam Rosenthal.
1154
1155         Initializing m_rawAttributes from QtViewportHandler to avoid calculation of random
1156         scale factors on the first layout is triggered.
1157
1158         * UIProcess/qt/QtViewportHandler.cpp:
1159         (WebKit::QtViewportHandler::QtViewportHandler):
1160
1161 2012-08-01  Zeno Albisser  <zeno@webkit.org>
1162
1163         [Qt]REGRESSION(r123786): It made 3 fast/animation tests fail.
1164         https://bugs.webkit.org/show_bug.cgi?id=92490
1165
1166         Make sure that scripted animations are also serviced when
1167         forceRepaint is being executed. As this is what is being used for
1168         running layout tests.
1169         Move servicing of scripted animations and layoutIfNeeded call
1170         into a separate function syncDisplayState.
1171         This function can then be called from forceRepaint as well as from
1172         performScheduledLayerFlush.
1173
1174         Reviewed by Noam Rosenthal.
1175
1176         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
1177         (WebKit::LayerTreeCoordinator::forceRepaint):
1178         (WebKit::LayerTreeCoordinator::performScheduledLayerFlush):
1179         (WebKit):
1180         (WebKit::LayerTreeCoordinator::syncDisplayState):
1181         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
1182         (LayerTreeCoordinator):
1183
1184 2012-08-01  Carlos Garcia Campos  <cgarcia@igalia.com>
1185
1186         Unreviewed. Fix GTK+ build with recent version of GTK+.
1187
1188         Use g_threads_enter/leave instead of the wrapper macros. This
1189         gives a compile warning because they are now deprecated but at
1190         least it builds.
1191
1192         * UIProcess/API/gtk/WebKitWebView.cpp:
1193         (webkitWebViewRunAsModal): Fix enter/leave order.
1194         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
1195         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
1196
1197 2012-07-31  Anders Carlsson  <andersca@apple.com>
1198
1199         Prefer the Oracle Java plug-in over the Apple Java plug-in
1200         https://bugs.webkit.org/show_bug.cgi?id=92780
1201
1202         Reviewed by Oliver Hunt.
1203
1204         * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
1205         (WebKit::findPluginWithBundleIdentifier):
1206         Add a new helper for finding a plug-in with the given bundle identifier.
1207
1208         (WebKit::checkForPreferredPlugin):
1209         Helper function for making sure that an old plug-in is never loaded if a new plug-in is found, and that the old plug-in
1210         is removed from the list of loaded plug-ins if the new plug-in is found.
1211
1212         (WebKit::PluginInfoStore::shouldUsePlugin):
1213         Prefer the Oracle Java plug-in over the Apple Java plug-in.
1214
1215 2012-07-31  Alexey Proskuryakov  <ap@apple.com>
1216
1217         [WK2] Use an actual WebProcessProxy when decoding messages
1218         https://bugs.webkit.org/show_bug.cgi?id=92788
1219
1220         Reviewed by Anders Carlsson.
1221
1222         WebContextUserMessageDecoder gets process proxy from a WebContext object, but we
1223         know which process a message came from, and can just use that.
1224
1225         * UIProcess/WebContextUserMessageCoders.h:
1226         (WebKit::WebContextUserMessageDecoder::WebContextUserMessageDecoder):
1227         (WebKit::WebContextUserMessageDecoder::decode):
1228         This is the focal point of this patch - decoder no longer needs to call m_context->process().
1229
1230         * UIProcess/WebContext.cpp:
1231         (WebKit::WebContext::didReceiveMessage):
1232         (WebKit::WebContext::didReceiveSyncMessage):
1233         * UIProcess/WebContext.h:
1234         These methods now take a WebProcessProxy pointer instead of IPC::Connection,
1235         so that they can call the updated coder.
1236         A number of other didReceiveMessage can be modified to take WebProcessProxy later
1237         if needed (it's a richer interface than IPC::Connection), although not all messages
1238         come from WebProcesses.
1239
1240         * UIProcess/WebConnectionToWebProcess.cpp:
1241         (WebKit::WebConnectionToWebProcess::didReceiveMessage):
1242         * UIProcess/WebPageProxy.cpp:
1243         (WebKit::WebPageProxy::willGoToBackForwardListItem):
1244         (WebKit::WebPageProxy::registerIntentServiceForFrame):
1245         (WebKit::WebPageProxy::didStartProvisionalLoadForFrame):
1246         (WebKit::WebPageProxy::didReceiveServerRedirectForProvisionalLoadForFrame):
1247         (WebKit::WebPageProxy::didFailProvisionalLoadForFrame):
1248         (WebKit::WebPageProxy::didCommitLoadForFrame):
1249         (WebKit::WebPageProxy::didFinishDocumentLoadForFrame):
1250         (WebKit::WebPageProxy::didFinishLoadForFrame):
1251         (WebKit::WebPageProxy::didFailLoadForFrame):
1252         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
1253         (WebKit::WebPageProxy::didReceiveTitleForFrame):
1254         (WebKit::WebPageProxy::didFirstLayoutForFrame):
1255         (WebKit::WebPageProxy::didFirstVisuallyNonEmptyLayoutForFrame):
1256         (WebKit::WebPageProxy::didNewFirstVisuallyNonEmptyLayout):
1257         (WebKit::WebPageProxy::didRemoveFrameFromHierarchy):
1258         (WebKit::WebPageProxy::didDisplayInsecureContentForFrame):
1259         (WebKit::WebPageProxy::didRunInsecureContentForFrame):
1260         (WebKit::WebPageProxy::didDetectXSSForFrame):
1261         (WebKit::WebPageProxy::didReceiveIntentForFrame):
1262         (WebKit::WebPageProxy::decidePolicyForNavigationAction):
1263         (WebKit::WebPageProxy::decidePolicyForNewWindowAction):
1264         (WebKit::WebPageProxy::decidePolicyForResponse):
1265         (WebKit::WebPageProxy::unableToImplementPolicy):
1266         (WebKit::WebPageProxy::willSubmitForm):
1267         (WebKit::WebPageProxy::mouseDidMoveOverElement):
1268         (WebKit::WebPageProxy::internalShowContextMenu):
1269         * UIProcess/WebProcessProxy.cpp:
1270         (WebKit::WebProcessProxy::didReceiveMessage):
1271         (WebKit::WebProcessProxy::didReceiveSyncMessage):
1272         Updated arguments accordingly.
1273
1274 2012-07-31  Andras Becsi  <andras.becsi@nokia.com>
1275
1276         [WK2] Visible content rect update with null trajectory vector does not reach the backing store
1277         https://bugs.webkit.org/show_bug.cgi?id=92750
1278
1279         Reviewed by Jocelyn Turcotte.
1280
1281         Make sure that notifications with a null trajectory vector reach the backing store
1282         since a null vector means that all tiles around the viewport were requested.
1283
1284         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
1285         (WebKit::LayerTreeCoordinator::setVisibleContentsRect):
1286
1287 2012-07-31  Marcelo Lira  <marcelo.lira@openbossa.org>
1288
1289         [Qt] Input method update should also include hints
1290         https://bugs.webkit.org/show_bug.cgi?id=92744
1291
1292         Reviewed by Simon Hausmann.
1293
1294         The QInputMethod is told to query for input method hints when updated.
1295
1296         * UIProcess/qt/QtWebPageEventHandler.cpp:
1297         (WebKit::QtWebPageEventHandler::updateTextInputState):
1298
1299 2012-07-31  Danilo Cesar Lemes de Paula  <danilo.cesar@collabora.co.uk>
1300
1301         add Farstream flags/deps to WebKit, for WebRTC
1302         https://bugs.webkit.org/show_bug.cgi?id=87524
1303
1304         Reviewed by Philippe Normand.
1305
1306         Since Farstream will be used as the backend for GTK's WebRTC, this
1307         patch adds it as a dependency to the build system.
1308
1309         * GNUmakefile.am:
1310
1311 2012-07-30  Huang Dongsung  <luxtella@company100.net>
1312
1313         [Texmap] Remove the backing store after 'style.visibility' for an element sets 'hidden'.
1314         https://bugs.webkit.org/show_bug.cgi?id=92492
1315
1316         Reviewed by Noam Rosenthal.
1317
1318         Texmap handles visibility:hidden in this patch, so WebGraphicsLayer
1319         sends the LayerTreeCoordinatorProxyMessages with additional infomation
1320         to UIProcess.
1321
1322         * Shared/WebLayerTreeInfo.h:
1323         * UIProcess/WebLayerTreeRenderer.cpp:
1324         (WebKit::WebLayerTreeRenderer::setLayerState):
1325         * WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp:
1326         (WebCore::WebGraphicsLayer::setContentsVisible):
1327         (WebCore):
1328         (WebCore::WebGraphicsLayer::syncLayerState):
1329         * WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.h:
1330         (WebGraphicsLayer):
1331
1332 2012-07-30  Sam Weinig  <sam@webkit.org>
1333
1334         Add a proper umbrella header for the public WebKit2 API headers
1335         https://bugs.webkit.org/show_bug.cgi?id=92708
1336         <rdar://problem/11970825>
1337
1338         Reviewed by Dan Bernstein.
1339
1340         Create a new umbrella WebKit2.h and add the currently public (as decided by their 
1341         status in Xcode) Objective-C headers.
1342
1343         * UIProcess/API/mac/WebKit2.h: Added.
1344         * WebKit2.xcodeproj/project.pbxproj:
1345         While we are here, make WebKit2_C.h a private header.
1346
1347 2012-07-30  Sam Weinig  <sam@webkit.org>
1348
1349         Rename WebKit2.h to WebKit2_C.h
1350         https://bugs.webkit.org/show_bug.cgi?id=92704
1351
1352         Reviewed by Dan Bernstein.
1353
1354         * GNUmakefile.list.am:
1355         * Target.pri:
1356         * UIProcess/API/C/WebKit2_C.h: Renamed from Source/WebKit2/UIProcess/API/C/WebKit2.h.
1357         * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
1358         * UIProcess/API/gtk/WebKitPolicyDecisionPrivate.h:
1359         * UIProcess/API/gtk/WebKitPrivate.h:
1360         * UIProcess/API/gtk/WebKitSettingsPrivate.h:
1361         * UIProcess/API/gtk/WebKitWebViewPrivate.h:
1362         * WebKit2.xcodeproj/project.pbxproj:
1363         * win/WebKit2.vcproj:
1364         * win/WebKit2Generated.make:
1365         Update for changed header file name.
1366
1367 2012-07-28  Sam Weinig  <sam@webkit.org>
1368
1369         Add ability to load from a string to the ObjC WK API
1370         https://bugs.webkit.org/show_bug.cgi?id=92590
1371
1372         Reviewed by Dan Bernstein.
1373
1374         This adds an often used method to the new Objective-C API and will
1375         be helpful for writing API tests.
1376
1377         * UIProcess/API/mac/WKBrowsingContextController.h:
1378         * UIProcess/API/mac/WKBrowsingContextController.mm:
1379         (-[WKBrowsingContextController loadHTMLString:baseURL:]):
1380         Implement via calling down to WKPageLoadHTMLString.
1381
1382 2012-07-30  Rafael Brandao  <rafael.lobo@openbossa.org>
1383
1384         [WK2] Kill the concept of secondary shared process
1385         https://bugs.webkit.org/show_bug.cgi?id=92676
1386
1387         Reviewed by Alexey Proskuryakov.
1388
1389         Build fix after r124092.
1390
1391         * UIProcess/qt/QtWebContext.cpp: Build fix for Qt. In exchange of the
1392         method removed, I've used WebContext::create(String()).
1393
1394 2012-07-30  Alexey Proskuryakov  <ap@apple.com>
1395
1396         [WK2] Kill the concept of secondary shared process
1397         https://bugs.webkit.org/show_bug.cgi?id=92676
1398
1399         Reviewed by Sam Weinig.
1400
1401         * UIProcess/API/C/WKContext.cpp:
1402         * UIProcess/API/C/WKContext.h:
1403         * UIProcess/WebContext.cpp:
1404         * UIProcess/WebContext.h:
1405         Deleted shared process related code. We don't need to build the singleton into
1406         the cross-platform C API, platform-specific API wrappers are perfectly capable
1407         of doing that.
1408
1409         * UIProcess/API/efl/ewk_context.cpp: (createDefaultEwkContext):
1410         * UIProcess/API/gtk/WebKitWebContext.cpp: (createDefaultWebContext):
1411         Use WKContextCreate() when creating default context.
1412
1413 2012-07-30  Claudio Saavedra  <csaavedra@igalia.com>
1414
1415         [GTK] critical warning: gdk_window_get_cursor() called on a NULL window
1416         https://bugs.webkit.org/show_bug.cgi?id=92651
1417
1418         Reviewed by Martin Robinson.
1419
1420         PageClientImpl::setCursor() might get called before the
1421         window is realized, so safeguard against it.
1422
1423         * UIProcess/API/gtk/PageClientImpl.cpp:
1424         (WebKit::PageClientImpl::setCursor): early return if the window is
1425         not realized.
1426
1427 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1428
1429         Unreviewed, rolling out r123983.
1430         http://trac.webkit.org/changeset/123983
1431         https://bugs.webkit.org/show_bug.cgi?id=92663
1432
1433         EFL build is broken when unit tests are enabled (Requested by
1434         paroga on #webkit).
1435
1436         * CMakeLists.txt:
1437         * PlatformEfl.cmake:
1438
1439 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1440
1441         Unreviewed, rolling out r123966 and r123967.
1442         http://trac.webkit.org/changeset/123966
1443         http://trac.webkit.org/changeset/123967
1444         https://bugs.webkit.org/show_bug.cgi?id=92656
1445
1446         This patch is causing assertion failures on the debug bot
1447         (also rolling out a dependent patch) (Requested by mrobinson
1448         on #webkit).
1449
1450         * GNUmakefile.am:
1451         * GNUmakefile.list.am:
1452         * UIProcess/API/gtk/WebKitPrivate.h:
1453         * UIProcess/API/gtk/WebKitTextChecker.cpp: Removed.
1454         * UIProcess/API/gtk/WebKitTextChecker.h: Removed.
1455         * UIProcess/API/gtk/WebKitWebContext.cpp:
1456         (_WebKitWebContextPrivate):
1457         (createDefaultWebContext):
1458         * UIProcess/API/gtk/WebKitWebContext.h:
1459         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
1460         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
1461         (beforeAll):
1462
1463 2012-07-29  Vsevolod Vlasov  <vsevik@chromium.org>
1464
1465         Web Inspector: Resource agent's reference to cached resources should be weak.
1466         https://bugs.webkit.org/show_bug.cgi?id=92108
1467
1468         Reviewed by Pavel Feldman.
1469
1470         * win/WebKit2.def:
1471         * win/WebKit2CFLite.def:
1472
1473 2012-07-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1474
1475         Unreviewed, rolling out r124000.
1476         http://trac.webkit.org/changeset/124000
1477         https://bugs.webkit.org/show_bug.cgi?id=92632
1478
1479         seems to have broken chromium Range_InstanceSizeUnknown unit
1480         test across many platforms (Requested by tomhudson on
1481         #webkit).
1482
1483         * win/WebKit2.def:
1484         * win/WebKit2CFLite.def:
1485
1486 2012-07-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1487
1488         [Qt] Remove accurateVisibleContentsPosition and use a FloatRect for visibleContentsRect instead
1489         https://bugs.webkit.org/show_bug.cgi?id=92536
1490
1491         Reviewed by Noam Rosenthal.
1492
1493         AccurateVisibleContentsPosition carries the same information as visibleContentsRect.location() and
1494         is needed for fixed layer position updates.
1495         This patch instead uses a FloatRect for the visible contents rect from the web view down to the
1496         LayerCoordinatorProxy, and converts it to an IntRect at this moment, before sending it to the
1497         web process.
1498         This also moves the check to prevent sending the same rect to the moment of the conversion
1499         in LayerTreeCoordinatorProxy to fix a bug where the fixed layer deltas wouldn't be updated
1500         unless the integer part of position components changed.
1501
1502         * UIProcess/API/qt/qquickwebview.cpp:
1503         (QQuickWebViewLegacyPrivate::updateViewportSize):
1504         * UIProcess/DrawingAreaProxy.h:
1505         (WebKit::DrawingAreaProxy::setVisibleContentsRect):
1506         * UIProcess/DrawingAreaProxyImpl.cpp:
1507         (WebKit::DrawingAreaProxyImpl::setVisibleContentsRect):
1508         * UIProcess/DrawingAreaProxyImpl.h:
1509         (DrawingAreaProxyImpl):
1510         * UIProcess/LayerTreeCoordinatorProxy.cpp:
1511         (WebKit::LayerTreeCoordinatorProxy::LayerTreeCoordinatorProxy):
1512         (WebKit::LayerTreeCoordinatorProxy::setVisibleContentsRect):
1513         * UIProcess/LayerTreeCoordinatorProxy.h:
1514         (LayerTreeCoordinatorProxy):
1515         * UIProcess/WebLayerTreeRenderer.cpp:
1516         (WebKit::WebLayerTreeRenderer::WebLayerTreeRenderer):
1517         (WebKit::WebLayerTreeRenderer::setVisibleContentsRect):
1518         (WebKit::WebLayerTreeRenderer::adjustPositionForFixedLayers):
1519         * UIProcess/WebLayerTreeRenderer.h:
1520         (WebLayerTreeRenderer):
1521         * UIProcess/qt/QtViewportHandler.cpp:
1522         (WebKit::QtViewportHandler::visibleContentsRect):
1523         (WebKit::QtViewportHandler::informVisibleContentChange):
1524         * UIProcess/qt/QtViewportHandler.h:
1525         (QtViewportHandler):
1526
1527 2012-07-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1528
1529         [Qt] Fix issues remaining with fixed positioned layers
1530         https://bugs.webkit.org/show_bug.cgi?id=92528
1531
1532         Reviewed by Noam Rosenthal.
1533
1534         This partially fixes jittering of fixed layers when zoomed in and the
1535         blurriness of rendered tiles of the non-composited contents layer.
1536
1537         * UIProcess/WebLayerTreeRenderer.cpp:
1538         (WebKit::boundedScrollPosition):
1539         (WebKit::WebLayerTreeRenderer::paintToCurrentGLContext):
1540         Remove the adjustment on the root layer. This cancels setPixelAligned and causes the blurriness.
1541         (WebKit::WebLayerTreeRenderer::adjustPositionForFixedLayers):
1542         Use m_accurateVisibleContentsPosition to calculate the delta.
1543         (WebKit::WebLayerTreeRenderer::didChangeScrollPosition):
1544
1545 2012-07-29  Vsevolod Vlasov  <vsevik@chromium.org>
1546
1547         Web Inspector: Resource agent's reference to cached resources should be weak.
1548         https://bugs.webkit.org/show_bug.cgi?id=92108
1549
1550         Reviewed by Pavel Feldman.
1551
1552         * win/WebKit2.def:
1553         * win/WebKit2CFLite.def:
1554
1555 2012-07-29  YoungTaeck Song  <youngtaeck.song@samsung.com>
1556
1557         [WK2][EFL] TILED_BACKING_STORE support on Efl WebKit2
1558         https://bugs.webkit.org/show_bug.cgi?id=91582
1559
1560         Reviewed by Noam Rosenthal.
1561
1562         This patch is a subset of Efl's UI_SIDE_COMPOSITING implementation.
1563         Add a dummy function for fixing building error when enabling TILED_BACKING_STORE.
1564
1565         * UIProcess/API/efl/PageClientImpl.cpp:
1566         (WebKit):
1567         (WebKit::PageClientImpl::pageDidRequestScroll):
1568         * UIProcess/API/efl/PageClientImpl.h:
1569         (PageClientImpl):
1570         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1571         (WebKit::WebChromeClient::contentsSizeChanged):
1572
1573 2012-07-29  Patrick Gansterer  <paroga@webkit.org>
1574
1575         [CMake] Use WEBKIT_CREATE_FORWARDING_HEADERS to generate WK2 forwarding headers
1576         https://bugs.webkit.org/show_bug.cgi?id=83579
1577
1578         Reviewed by Daniel Bates.
1579
1580         Using a list of directories in combination with the WEBKIT_CREATE_FORWARDING_HEADERS
1581         macro allows us to share the common generation of forwarding headers across ports.
1582
1583         * CMakeLists.txt:
1584         * PlatformEfl.cmake:
1585
1586 2012-07-28  Sam Weinig  <sam@webkit.org>
1587
1588         Stop copying unnecessary files in WebKit2 build
1589         https://bugs.webkit.org/show_bug.cgi?id=92587
1590
1591         Reviewed by Dan Bernstein.
1592
1593         * WebKit2.xcodeproj/project.pbxproj:
1594         We were accidentally copying ColorSpaceData.h and EventDispatcher.messages.in into the
1595         build products. Stop this.
1596
1597 2012-07-28  Ryuan Choi  <ryuan.choi@samsung.com>
1598
1599         [WK2][EFL] Add ewk_view_scale_{get|set} to EwkView.
1600         https://bugs.webkit.org/show_bug.cgi?id=92446
1601
1602         Reviewed by Kenneth Rohde Christiansen.
1603
1604         Add methods to Ewk_View to get or set the scale factor of page.
1605
1606         * UIProcess/API/efl/ewk_view.cpp:
1607         (ewk_view_scale_set):
1608         (ewk_view_scale_get):
1609         * UIProcess/API/efl/ewk_view.h:
1610
1611 2012-07-28  Mario Sanchez Prada  <msanchez@igalia.com>
1612
1613         [WK2][GTK] Implement a new spell checker API for WebKit2GTK+
1614         https://bugs.webkit.org/show_bug.cgi?id=90268
1615
1616         Reviewed by Martin Robinson.
1617
1618         Add a simple spell checking API to WK2, allowing to enable/disable
1619         this feature and to define a list of languages associated to it.
1620
1621         * GNUmakefile.am: Add flags to handle the SPELLCHECK feature.
1622         * GNUmakefile.list.am: Added new files
1623
1624         Added new internal class that will act both as the implementation
1625         of TextCheckerClient and as the object WebKitWebContext will
1626         depend on to implement the newly added API.
1627
1628         * UIProcess/API/gtk/WebKitTextChecker.cpp: Added.
1629         (toTextChecker):
1630         (continuousSpellCheckingEnabledCallback):
1631         (setContinuousSpellCheckingEnabledCallback):
1632         (checkSpellingOfStringCallback):
1633         (guessesForWordCallback):
1634         (learnWordCallback):
1635         (ignoreWordCallback):
1636         (WebKitTextChecker::~WebKitTextChecker):
1637         (WebKitTextChecker::create):
1638         (WebKitTextChecker::WebKitTextChecker):
1639         (WebKitTextChecker::checkSpellingOfString):
1640         (WebKitTextChecker::getGuessesForWord):
1641         (WebKitTextChecker::learnWord):
1642         (WebKitTextChecker::ignoreWord):
1643         (WebKitTextChecker::setSpellCheckingEnabled):
1644         (WebKitTextChecker::setSpellCheckingLanguages):
1645         * UIProcess/API/gtk/WebKitTextChecker.h: Added.
1646         (WebKitTextChecker):
1647         (WebKitTextChecker::isSpellCheckingEnabled):
1648         (WebKitTextChecker::getSpellCheckingLanguages):
1649
1650         Added WKTextChecker to WebKitPrivate.h, needed in WebKitTextChecker.
1651
1652         * UIProcess/API/gtk/WebKitPrivate.h:
1653
1654         Add new API to WebKitWebContext to allow enabling/disabling this
1655         spell checking feature, and to set/get the list of languages used
1656         to decide which dictionaries will be consulted.
1657
1658         * UIProcess/API/gtk/WebKitWebContext.cpp:
1659         (_WebKitWebContextPrivate):
1660         (createDefaultWebContext):
1661         (webkit_web_context_get_spell_checking_enabled): New API.
1662         (webkit_web_context_set_spell_checking_enabled): Ditto.
1663         (webkit_web_context_get_spell_checking_languages): Ditto.
1664         (webkit_web_context_set_spell_checking_languages): Ditto.
1665         * UIProcess/API/gtk/WebKitWebContext.h:
1666
1667         New tests for checking the new API added to WebKitWebContext.
1668
1669         * UIProcess/API/gtk/tests/TestWebKitWebContext.cpp:
1670         (testWebContextSpellChecker):
1671         (beforeAll):
1672
1673         Update documentation with new sections and symbols.
1674
1675         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml:
1676         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt:
1677
1678 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1679
1680         [EFL][WK2] Assertion hit in ewk_cookie_manager.cpp
1681         https://bugs.webkit.org/show_bug.cgi?id=92544
1682
1683         Reviewed by Kenneth Rohde Christiansen.
1684
1685         Removed wrong assertion in ewk_cookie_manager.cpp
1686         and replace it by an if check. The assertion was
1687         sometimes hit by our unit tests.
1688
1689         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1690         (cookiesDidChange):
1691
1692 2012-07-27  Anders Carlsson  <andersca@apple.com>
1693
1694         Don't use an NSUserDefault for disabling the web process sandbox
1695         https://bugs.webkit.org/show_bug.cgi?id=92542
1696         <rdar://problem/11976060>
1697
1698         Reviewed by Mark Rowe.
1699
1700         The user default was really helpful during WebKit2 bringup, but we no longer need to pay the IPC cost of initializing NSUserDefaults at startup,
1701         so get rid of the preference and use a good old #ifdef instead.
1702
1703         * WebProcess/mac/WebProcessMac.mm:
1704         (WebKit::initializeSandbox):
1705
1706 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1707
1708         [WK2][WTR] LayoutTestController.deliverWebIntent() needs to be implemented
1709         https://bugs.webkit.org/show_bug.cgi?id=92228
1710
1711         Reviewed by Anders Carlsson.
1712
1713         Add C API to create a WKIntentData and to deliver
1714         it to a frame. This is needed by WebKitTestRunner
1715         to implement LayoutTestController.deliverWebIntent().
1716
1717         * UIProcess/API/C/WKIntentData.cpp:
1718         (WKIntentDataCreate):
1719         * UIProcess/API/C/WKIntentData.h:
1720         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
1721         (WKBundlePageDeliverIntentToFrame):
1722         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
1723         * WebProcess/WebPage/WebPage.h:
1724         (WebPage): Make deliverIntentToFrame() public so that it can
1725         be used by WKBundlePage.
1726
1727 2012-07-27  Anders Carlsson  <andersca@apple.com>
1728
1729         Show the unavailable plug-in indicator for Java applets as well
1730         https://bugs.webkit.org/show_bug.cgi?id=92521
1731
1732         Reviewed by Sam Weinig.
1733
1734         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1735         (WebKit::WebChromeClient::unavailablePluginButtonClicked):
1736         This can now be called on applet elements as well.
1737
1738         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
1739         (WebKit::WebFrameLoaderClient::createJavaAppletWidget):
1740         Get the MIME type from the applet element.
1741
1742 2012-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1743
1744         [WK2] Fix build warning in WebEventConversion.cpp
1745         https://bugs.webkit.org/show_bug.cgi?id=92517
1746
1747         Reviewed by Darin Adler.
1748
1749         There is a build warning related to comparison between signed and unsigned integer expressions.
1750
1751         * Shared/WebEventConversion.cpp:
1752         (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent):
1753
1754 2012-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1755
1756         [WK2] Fix build warning in WebEventConversion.cpp
1757         https://bugs.webkit.org/show_bug.cgi?id=92517
1758
1759         Reviewed by Darin Adler.
1760
1761         There is a build warning related to comparison between signed and unsigned integer expressions.
1762
1763         * Shared/WebEventConversion.cpp:
1764         (WebKit::WebKit2PlatformTouchEvent::WebKit2PlatformTouchEvent):
1765
1766 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1767
1768         [EFL][WK2] Add download client for Ewk_Context
1769         https://bugs.webkit.org/show_bug.cgi?id=91345
1770
1771         Reviewed by Kenneth Rohde Christiansen.
1772
1773         Add download client for Ewk_Context so that
1774         information about downloads can be reported
1775         to the client application via Ewk_View signals.
1776
1777         The client application needs to listen for
1778         "download,request" signal on the view and set
1779         the download path for the download in the
1780         callback in order to accept it. If the signal
1781         is ignored or if the download path is not set
1782         the download will fail.
1783
1784         A new Ewk_Download_Job type is introduced to provide
1785         information relative to a download to the client
1786         and to allow the client to interact with it (e.g.
1787         set its download path, cancel it, ...).
1788
1789         * PlatformEfl.cmake:
1790         * UIProcess/API/efl/EWebKit2.h:
1791         * UIProcess/API/efl/PageClientImpl.cpp:
1792         (WebKit::PageClientImpl::handleDownloadRequest):
1793         (WebKit):
1794         * UIProcess/API/efl/PageClientImpl.h:
1795         (PageClientImpl):
1796         * UIProcess/API/efl/ewk_context.cpp:
1797         (_Ewk_Context):
1798         (_Ewk_Context::_Ewk_Context):
1799         (_Ewk_Context::~_Ewk_Context):
1800         (ewk_context_download_job_add):
1801         (ewk_context_download_job_get):
1802         (ewk_context_download_job_remove):
1803         * UIProcess/API/efl/ewk_context_download_client.cpp: Added.
1804         (toEwkContext):
1805         (decideDestinationWithSuggestedFilename):
1806         (didReceiveResponse):
1807         (didCreateDestination):
1808         (didReceiveData):
1809         (didFail):
1810         (didCancel):
1811         (didFinish):
1812         (ewk_context_download_client_attach):
1813         * UIProcess/API/efl/ewk_context_download_client_private.h: Added.
1814         * UIProcess/API/efl/ewk_context_private.h:
1815         * UIProcess/API/efl/ewk_download_job.cpp: Added.
1816         (_Ewk_Download_Job):
1817         (_Ewk_Download_Job::_Ewk_Download_Job):
1818         (_Ewk_Download_Job::~_Ewk_Download_Job):
1819         (ewk_download_job_ref):
1820         (ewk_download_job_unref):
1821         (ewk_download_job_id_get):
1822         (ewk_download_job_view_get):
1823         (ewk_download_job_state_get):
1824         (ewk_download_job_request_get):
1825         (ewk_download_job_response_get):
1826         (ewk_download_job_destination_get):
1827         (ewk_download_job_destination_set):
1828         (ewk_download_job_suggested_filename_get):
1829         (ewk_download_job_cancel):
1830         (ewk_download_job_estimated_progress_get):
1831         (ewk_download_job_elapsed_time_get):
1832         (ewk_download_job_response_set):
1833         (ewk_download_job_suggested_filename_set):
1834         (ewk_download_job_received_data):
1835         (ewk_download_job_state_set):
1836         (ewk_download_job_new):
1837         * UIProcess/API/efl/ewk_download_job.h: Added.
1838         * UIProcess/API/efl/ewk_download_job_private.h: Added.
1839         (WebKit):
1840         * UIProcess/API/efl/ewk_url_response.cpp:
1841         (ewk_url_response_content_length_get): Add a function to
1842         retrieve the content length of a URL response.
1843         * UIProcess/API/efl/ewk_url_response.h:
1844         * UIProcess/API/efl/ewk_view.cpp:
1845         (ewk_view_download_job_cancelled):
1846         (ewk_view_download_job_requested):
1847         (ewk_view_download_job_failed):
1848         (ewk_view_download_job_finished):
1849         * UIProcess/API/efl/ewk_view.h:
1850         * UIProcess/API/efl/ewk_view_private.h:
1851         * UIProcess/API/efl/tests/resources/test.pdf: Added.
1852         * UIProcess/API/efl/tests/test_ewk2_download_job.cpp: Added. This tests
1853         the download functionality.
1854         (DownloadTestData):
1855         (fileExists):
1856         (serverCallback):
1857         (on_download_requested):
1858         (on_download_cancelled):
1859         (on_download_failed):
1860         (on_download_finished):
1861         (TEST_F):
1862         * UIProcess/PageClient.h:
1863         (PageClient):
1864         * UIProcess/WebPageProxy.cpp:
1865         (WebKit::WebPageProxy::receivedPolicyDecision):
1866         (WebKit):
1867         (WebKit::WebPageProxy::handleDownloadRequest):
1868         * UIProcess/WebPageProxy.h:
1869         (WebPageProxy):
1870
1871 2012-07-27  YoungTaeck Song  <youngtaeck.song@samsung.com>
1872
1873         [WK2][EFL] Add an ACCELERATED_COMPOSITING implementation for Efl WebKit2
1874         https://bugs.webkit.org/show_bug.cgi?id=91581
1875
1876         Reviewed by Noam Rosenthal.
1877
1878         This patch is a subset of Efl's UI_SIDE_COMPOSITING implementation.
1879         When enter accelerated compositing mode, create evas_gl, evas_gl_context, and evas_gl_surface.
1880
1881         * PlatformEfl.cmake:
1882         * Shared/LayerTreeContext.h:
1883         (LayerTreeContext):
1884         * UIProcess/API/efl/PageClientImpl.cpp:
1885         (WebKit::PageClientImpl::viewSize):
1886         (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
1887         (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
1888         * UIProcess/API/efl/ewk_view.cpp:
1889         (_Ewk_View_Private_Data):
1890         (_Ewk_View_Private_Data::_Ewk_View_Private_Data):
1891         (ewk_view_size_get):
1892         (ewk_view_create_gl_surface):
1893         (ewk_view_enter_accelerated_compositing_mode):
1894         (ewk_view_exit_accelerated_compositing_mode):
1895         (_ewk_view_smart_calculate):
1896         * UIProcess/API/efl/ewk_view_private.h:
1897
1898 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1899
1900         [EFL][WK2] Add API to Ewk_Cookie_Manager to watch for cookie changes
1901         https://bugs.webkit.org/show_bug.cgi?id=92484
1902
1903         Reviewed by Kenneth Rohde Christiansen.
1904
1905         Add API tp Ewk_Cookie_Manager so that the client can watch
1906         for cookie changes.
1907
1908         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1909         * UIProcess/API/efl/ewk_cookie_manager.h:
1910         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp: Add unit tests
1911         for cookie changes watching.
1912
1913 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1914
1915         [EFL][WK2] Stop using C API to interact with the page in Ewk_View
1916         https://bugs.webkit.org/show_bug.cgi?id=92463
1917
1918         Reviewed by Simon Hausmann.
1919
1920         Stop using C API to interact with the PageProxy in Ewk_View
1921         and use the PageProxy object directly. This avoids useless
1922         converting to WK type using toAPI() all the time.
1923
1924         * UIProcess/API/efl/ewk_view.cpp:
1925         (ewk_view_base_add):
1926         (ewk_view_uri_update):
1927         (ewk_view_uri_set):
1928         (ewk_view_reload):
1929         (ewk_view_reload_bypass_cache):
1930         (ewk_view_stop):
1931         (ewk_view_load_progress_get):
1932         (ewk_view_device_pixel_ratio_set):
1933         (ewk_view_theme_get):
1934         (ewk_view_cursor_set):
1935         (ewk_view_back):
1936         (ewk_view_forward):
1937         (ewk_view_intent_deliver):
1938         (ewk_view_back_possible):
1939         (ewk_view_forward_possible):
1940         (ewk_view_setting_encoding_custom_get):
1941         (ewk_view_setting_encoding_custom_set):
1942
1943 2012-07-27  Dominik R√∂ttsches  <dominik.rottsches@intel.com>
1944
1945         [Cairo] Add complex font drawing using HarfbuzzNG
1946         https://bugs.webkit.org/show_bug.cgi?id=91864
1947
1948         Reviewed by Simon Hausmann and Martin Robinson.
1949
1950         Adding includes for harfbuzz folders.
1951
1952         * CMakeLists.txt:
1953
1954 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
1955
1956         [EFL][WK2] Add more Ewk_View unit tests
1957         https://bugs.webkit.org/show_bug.cgi?id=92407
1958
1959         Reviewed by Kenneth Rohde Christiansen.
1960
1961         Add more unit tests for WebKit2 Ewk_View API.
1962         In particular, navigation, HTML loading and
1963         device pixel ratio functions are now tested.
1964
1965         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
1966         (EWK2UnitTest::EWK2UnitTestBase::SetUp): Call ewk_init() instead
1967         of duplicating initialization code.
1968         (EWK2UnitTest::EWK2UnitTestBase::TearDown): call ewk_shutdown().
1969         (TitleChangedData):
1970         (EWK2UnitTest):
1971         (EWK2UnitTest::onTitleChanged):
1972         (EWK2UnitTest::EWK2UnitTestBase::waitUntilTitleChangedTo): Add convenience
1973         method to wait until the view main frame title changes to a given value.
1974         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
1975         (EWK2UnitTestBase):
1976         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1977         (TEST_F):
1978         (serverCallbackNavigation):
1979
1980 2012-07-27  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
1981
1982         [EFL][WK2] Keyboard events miss key location data.
1983         https://bugs.webkit.org/show_bug.cgi?id=92235
1984
1985         Reviewed by Simon Hausmann.
1986
1987         EFL WK2 did not initialize WebKeyboardEvent::m_isKeypad field.
1988         This caused failure of fast/events/keydown-numpad-keys.html test.
1989
1990         * Shared/efl/WebEventFactory.cpp: WebKeyboardEvent::m_isKeypad is initialized.
1991         (WebKit::WebEventFactory::createWebKeyboardEvent):
1992
1993 2012-07-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1994
1995         [EFL] Fix wrong return value in EWK_VIEW_XXX macro.
1996         https://bugs.webkit.org/show_bug.cgi?id=92466
1997
1998         Reviewed by Simon Hausmann.
1999
2000         There are wrong return values in EWK_VIEW_XXX macros. The wrong return values
2001         should be fixed. In addition, API description is also modified according to returned
2002         value change.
2003
2004         * UIProcess/API/efl/ewk_view.cpp:
2005         (ewk_view_uri_set):
2006         (ewk_view_load_progress_get):
2007         (ewk_view_device_pixel_ratio_get):
2008         * UIProcess/API/efl/ewk_view.h:
2009
2010 2012-07-27  Christophe Dumez  <christophe.dumez@intel.com>
2011
2012         [EFL][WK2] Add unit tests for Ewk_View form client
2013         https://bugs.webkit.org/show_bug.cgi?id=92468
2014
2015         Reviewed by Simon Hausmann.
2016
2017         Add unit test for form client functionality in
2018         Ewk_View.
2019
2020         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2021         (onFormAboutToBeSubmitted):
2022         (TEST_F):
2023
2024 2012-07-26  Zeno Albisser  <zeno@webkit.org>
2025
2026         Unreviewed Qt buildfix after r123786.
2027
2028         Qt-minimal builds with ENABLE_REQUEST_ANIMATION_FRAME=0.
2029         Therefore adding #ifdefs to allow for that configuration.
2030
2031         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
2032         (WebKit):
2033         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
2034         (LayerTreeCoordinator):
2035
2036 2012-07-26  Zeno Albisser  <zeno@webkit.org>
2037
2038         [Qt] requestAnimationFrame should only trigger when a new frame can be displayed.
2039         https://bugs.webkit.org/show_bug.cgi?id=88638
2040
2041         Disable REQUEST_ANIMATION_FRAME_TIMER for the Qt port and tie
2042         the servicing of scripted animations to layer syncing for WK2.
2043         For WK1 we rely on the RefreshAnimation that is based on QAbstractAnimation.
2044
2045         Reviewed by Jocelyn Turcotte.
2046
2047         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2048         (WebKit):
2049         (WebKit::WebChromeClient::scheduleAnimation):
2050         * WebProcess/WebCoreSupport/WebChromeClient.h:
2051         (WebChromeClient):
2052         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
2053         (WebKit::LayerTreeCoordinator::performScheduledLayerFlush):
2054         (WebKit::LayerTreeCoordinator::scheduleAnimation):
2055         (WebKit):
2056         * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
2057         (LayerTreeCoordinator):
2058         * WebProcess/WebPage/LayerTreeHost.h:
2059         (LayerTreeHost):
2060
2061 2012-07-26  Jer Noble  <jer.noble@apple.com>
2062
2063         Add a ChromeClient method to send diagnostic logging messages from WebCore to the client.
2064         https://bugs.webkit.org/show_bug.cgi?id=92340
2065
2066         Reviewed by Anders Carlsson.
2067
2068         Pipe the ChromeClient logDiagnosticMessage() function through WebKit2 to a new bundle class
2069         InjectedBundlePageDiagnosticLoggingClient, to be implemented by the client.
2070
2071         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
2072         (WKBundlePageSetDiagnosticLoggingClient): Added.
2073         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2074         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp: Added.
2075         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage):
2076         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h: Added.
2077         (InjectedBundlePageDiagnosticLoggingClient):
2078         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
2079         (WebKit::WebChromeClient::logDiagnosticMessage):
2080         * WebProcess/WebCoreSupport/WebChromeClient.h:
2081         * WebProcess/WebPage/WebPage.cpp:
2082         (WebKit::WebPage::initializeInjectedBundleDiagnosticLoggingClient):
2083         * WebProcess/WebPage/WebPage.h:
2084         (WebKit::WebPage::injectedBundleDiagnosticLoggingClient):
2085
2086         Add a convenience class to retrieve the diagnostic message keys:
2087         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp: Added.
2088         (WebKit::InjectedBundlePageDiagnosticLoggingClient::logDiagnosticMessage):
2089         * WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.h: Added.
2090         (InjectedBundlePageDiagnosticLoggingClient):
2091
2092         Add the InjectedBundlePageDiagnosticLoggingClient.cpp,h files.
2093         * CMakeLists.txt:
2094         * GNUmakefile.list.am:
2095         * Target.pri:
2096         * win/WebKit2.vcproj:
2097         * WebKit2.xcodeproj/project.pbxproj: 
2098
2099 2012-07-25  Jer Noble  <jer.noble@apple.com>
2100
2101         Add setting to enable and disable diagnostic logging.
2102         https://bugs.webkit.org/show_bug.cgi?id=92337
2103
2104         Reviewed by Anders Carlsson.
2105
2106         Add a WebKit2 WKPreferences API to set set the WebCore diagnosticLoggingEnabled setting.
2107
2108         * Shared/WebPreferencesStore.h:
2109         * UIProcess/API/C/WKPreferences.cpp:
2110         (WKPreferencesSetDiagnosticLoggingEnabled):
2111         (WKPreferencesGetDiagnosticLoggingEnabled):
2112         * UIProcess/API/C/WKPreferencesPrivate.h:
2113         * WebProcess/WebPage/WebPage.cpp:
2114         (WebKit::WebPage::updatePreferences): Ensure this preference is propagated to Settings
2115             whenever the preferences change.
2116
2117 2012-07-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
2118
2119         [EFL][WK2] Regression(r123731): Linking errors due to efreet functions
2120         https://bugs.webkit.org/show_bug.cgi?id=92378
2121
2122         Unreviewed build fix.
2123
2124         The library list created by PlatformEfl.cmake was being erased by a
2125         SET called after including the platform specific file. Luckily the
2126         dependencies were fulfilled by other targets until efreet was add.
2127
2128         * CMakeLists.txt:
2129
2130 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2131
2132         [EFL][WK2] Compilation warning in EWK2UnitTestServer.cpp
2133         https://bugs.webkit.org/show_bug.cgi?id=92387
2134
2135         Reviewed by Kenneth Rohde Christiansen.
2136
2137         Fix compilation warning in EWK2UnitTestServer.cpp.
2138
2139         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp:
2140         (EWK2UnitTestServer::EWK2UnitTestServer):
2141
2142 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2143
2144         [EFL][WK2] Implement Network Information provider
2145         https://bugs.webkit.org/show_bug.cgi?id=92343
2146
2147         Reviewed by Kenneth Rohde Christiansen.
2148
2149         Add Network Information provider for WebKit2 EFL
2150         by using NetworkInfoProviderEfl class from
2151         WebCore.
2152
2153         * CMakeLists.txt:
2154         * PlatformEfl.cmake:
2155         * UIProcess/API/efl/NetworkInfoProvider.cpp: Added.
2156         (toNetworkInfoProvider):
2157         (startUpdatingCallback):
2158         (stopUpdatingCallback):
2159         (getBandwidthCallback):
2160         (isMeteredCallback):
2161         (NetworkInfoProvider::create):
2162         (NetworkInfoProvider::NetworkInfoProvider):
2163         (NetworkInfoProvider::~NetworkInfoProvider):
2164         (NetworkInfoProvider::bandwidth):
2165         (NetworkInfoProvider::metered):
2166         (NetworkInfoProvider::startUpdating):
2167         (NetworkInfoProvider::stopUpdating):
2168         * UIProcess/API/efl/NetworkInfoProvider.h: Added.
2169         (NetworkInfoProvider):
2170
2171 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2172
2173         [EFL][WK2] Compilation warning in EWK2UnitTestServer.cpp
2174         https://bugs.webkit.org/show_bug.cgi?id=92387
2175
2176         Reviewed by Kenneth Rohde Christiansen.
2177
2178         Fix compilation warning in EWK2UnitTestServer.cpp.
2179
2180         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp:
2181         (EWK2UnitTestServer::EWK2UnitTestServer):
2182
2183 2012-07-26  Thiago Marcos P. Santos  <thiago.santos@intel.com>
2184
2185         [EFL][WK2] Regression(r123731): Linking errors due to efreet functions
2186         https://bugs.webkit.org/show_bug.cgi?id=92378
2187
2188         Unreviewed build fix.
2189
2190         The library list created by PlatformEfl.cmake was being erased by a
2191         SET called after including the platform specific file. Luckily the
2192         dependencies were fulfilled by other targets until efreet was add.
2193
2194         * CMakeLists.txt:
2195
2196 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2197
2198         [EFL][WK2] Compilation warning in EWK2UnitTestServer.cpp
2199         https://bugs.webkit.org/show_bug.cgi?id=92387
2200
2201         Reviewed by Kenneth Rohde Christiansen.
2202
2203         Fix compilation warning in EWK2UnitTestServer.cpp.
2204
2205         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp:
2206         (EWK2UnitTestServer::EWK2UnitTestServer):
2207
2208 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2209
2210         [EFL][WK2] Implement Network Information provider
2211         https://bugs.webkit.org/show_bug.cgi?id=92343
2212
2213         Reviewed by Kenneth Rohde Christiansen.
2214
2215         Add Network Information provider for WebKit2 EFL
2216         by using NetworkInfoProviderEfl class from
2217         WebCore.
2218
2219         * CMakeLists.txt:
2220         * PlatformEfl.cmake:
2221         * UIProcess/API/efl/NetworkInfoProvider.cpp: Added.
2222         (toNetworkInfoProvider):
2223         (startUpdatingCallback):
2224         (stopUpdatingCallback):
2225         (getBandwidthCallback):
2226         (isMeteredCallback):
2227         (NetworkInfoProvider::create):
2228         (NetworkInfoProvider::NetworkInfoProvider):
2229         (NetworkInfoProvider::~NetworkInfoProvider):
2230         (NetworkInfoProvider::bandwidth):
2231         (NetworkInfoProvider::metered):
2232         (NetworkInfoProvider::startUpdating):
2233         (NetworkInfoProvider::stopUpdating):
2234         * UIProcess/API/efl/NetworkInfoProvider.h: Added.
2235         (NetworkInfoProvider):
2236
2237 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2238
2239         [EFL][WK2] Compilation warning in EWK2UnitTestServer.cpp
2240         https://bugs.webkit.org/show_bug.cgi?id=92387
2241
2242         Reviewed by Kenneth Rohde Christiansen.
2243
2244         Fix compilation warning in EWK2UnitTestServer.cpp.
2245
2246         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp:
2247         (EWK2UnitTestServer::EWK2UnitTestServer):
2248
2249 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2250
2251         [EFL][WK2] Add unit tests for Ewk_Context
2252         https://bugs.webkit.org/show_bug.cgi?id=92005
2253
2254         Reviewed by Antonio Gomes.
2255
2256         Add unit tests for WebKit2 Ewk_Context.
2257
2258         * PlatformEfl.cmake:
2259         * UIProcess/API/efl/ewk_url_scheme_request.cpp:
2260         (ewk_url_scheme_request_finish):
2261         * UIProcess/API/efl/ewk_url_scheme_request.h: Mark content_data
2262         argument as const.
2263         * UIProcess/API/efl/tests/test_ewk2_context.cpp: Added.
2264         (TEST_F):
2265         (schemeRequestCallback):
2266
2267 2012-07-26  Christophe Dumez  <christophe.dumez@intel.com>
2268
2269         [EFL][WK2] Add form client for Ewk_View
2270         https://bugs.webkit.org/show_bug.cgi?id=92358
2271
2272         Reviewed by Kenneth Rohde Christiansen.
2273
2274         Implement a form client for EFL port in order to
2275         send a "form,request,new" signal on the Ewk_View
2276         whenever a form will be submitted.
2277
2278         The Ewk_Form_Submission_Request type is
2279         introduced to provide the client with information
2280         about the form (e.g. text fields contained in the
2281         form) and to submit it.
2282
2283         This is typically used to store login information
2284         that can be used later to pre-fill the form.
2285
2286         * PlatformEfl.cmake:
2287         * UIProcess/API/efl/EWebKit2.h:
2288         * UIProcess/API/efl/ewk_form_submission_request.cpp: Added.
2289         (_Ewk_Form_Submission_Request):
2290         (_Ewk_Form_Submission_Request::_Ewk_Form_Submission_Request):
2291         (_Ewk_Form_Submission_Request::~_Ewk_Form_Submission_Request):
2292         (ewk_form_submission_request_ref):
2293         (ewk_form_submission_request_unref):
2294         (ewk_form_submission_request_field_names_get):
2295         (ewk_form_submission_request_field_value_get):
2296         (ewk_form_submission_request_submit):
2297         (ewk_form_submission_request_new):
2298         * UIProcess/API/efl/ewk_form_submission_request.h: Added.
2299         * UIProcess/API/efl/ewk_form_submission_request_private.h: Added.
2300         * UIProcess/API/efl/ewk_view.cpp:
2301         (ewk_view_base_add):
2302         (ewk_view_form_submission_request_new):
2303         * UIProcess/API/efl/ewk_view.h:
2304         * UIProcess/API/efl/ewk_view_form_client.cpp: Added.
2305         (willSubmitForm):
2306         (ewk_view_form_client_attach):
2307         * UIProcess/API/efl/ewk_view_form_client_private.h: Added.
2308         * UIProcess/API/efl/ewk_view_private.h:
2309
2310 2012-07-26  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2311
2312         [WK2] WebPage::handleEditingKeyboardEvent does not check whether the node allows editing.
2313         https://bugs.webkit.org/show_bug.cgi?id=92364
2314
2315         Reviewed by Kenneth Rohde Christiansen.
2316
2317         Added a check whether the input node allows editing. If editing is not allowed
2318         text input event will not be emitted.
2319
2320         * WebProcess/WebPage/WebPage.cpp:
2321         (WebKit::WebPage::handleEditingKeyboardEvent):
2322
2323 2012-07-26  Zoltan Nyul  <zoltan.nyul@intel.com>
2324
2325         [EFL] EFL port should use XDG paths
2326         https://bugs.webkit.org/show_bug.cgi?id=91719
2327
2328         Reviewed by Kenneth Rohde Christiansen.
2329
2330         Setting xdg paths for application cache, web-database and local-storage.
2331
2332         * PlatformEfl.cmake:
2333         * UIProcess/efl/WebContextEfl.cpp:
2334         (WebKit::WebContext::applicationCacheDirectory):
2335         (WebKit::WebContext::platformDefaultDatabaseDirectory):
2336         (WebKit::WebContext::platformDefaultLocalStorageDirectory):
2337
2338 2012-07-26  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
2339
2340         [EFL] [WK2] Memory leak in ewk_view_resource_load_client.cpp
2341         https://bugs.webkit.org/show_bug.cgi?id=92099
2342
2343         Reviewed by Kentaro Hara.
2344
2345         Fix a memory leak by clearing the loadingResources HashMap on exit.
2346
2347         * UIProcess/API/efl/ewk_view.cpp:
2348         (_Ewk_View_Private_Data::~_Ewk_View_Private_Data):
2349         (_ewk_view_priv_loading_resources_clear):
2350         (ewk_view_load_provisional_started):
2351
2352 2012-07-26  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2353
2354         [DRT] LTC:: pageNumberForElementById() could be moved to Internals
2355         https://bugs.webkit.org/show_bug.cgi?id=92091
2356
2357         Reviewed by Kentaro Hara.
2358
2359         Missing a symbol filter for Mac win port.
2360
2361         * win/WebKit2.def:
2362         * win/WebKit2CFLite.def:
2363
2364 2012-07-25  Seokju Kwon  <seokju.kwon@samsung.com>
2365
2366         [EFL][WK2] Implement the inspector for WebKitTestRunner
2367         https://bugs.webkit.org/show_bug.cgi?id=92213
2368
2369         Reviewed by Ryosuke Niwa.
2370
2371         Partial Implementation of WebInspectorProxyEfl for WebkitTestRunner.
2372         And Web Inspector resources installation.
2373
2374         * PlatformEfl.cmake:
2375         * UIProcess/WebInspectorProxy.cpp:
2376         (WebKit::WebInspectorProxy::WebInspectorProxy):
2377         * UIProcess/WebInspectorProxy.h:
2378         (WebInspectorProxy):
2379         * UIProcess/efl/WebInspectorProxyEfl.cpp:
2380         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
2381         (WebKit::WebInspectorProxy::platformDidClose):
2382         (WebKit::WebInspectorProxy::inspectorPageURL):
2383         (WebKit::WebInspectorProxy::inspectorBaseURL):
2384
2385 2012-07-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2386
2387         Create a specialized struct for use in HashMap iterators
2388         https://bugs.webkit.org/show_bug.cgi?id=92137
2389
2390         Reviewed by Ryosuke Niwa.
2391
2392         * Platform/CoreIPC/ArgumentCoders.h: Add encode/decode for KeyValuePair.
2393
2394 2012-07-25  Anders Carlsson  <andersca@apple.com>
2395
2396         Crash when calling PluginView::pluginFocusOrWindowFocusChanged when the web page is null
2397         https://bugs.webkit.org/show_bug.cgi?id=92289
2398         <rdar://problem/11785352>
2399
2400         Reviewed by Andreas Kling.
2401
2402         Plug-in views that outlive their containing web page for various reasons (such as being protected from
2403         destruction) need to null check the web page.
2404
2405         * WebProcess/Plugins/PluginView.cpp:
2406         (WebKit::PluginView::pluginFocusOrWindowFocusChanged):
2407         (WebKit::PluginView::setComplexTextInputState):
2408
2409 2012-07-25  Christophe Dumez  <christophe.dumez@intel.com>
2410
2411         [WK2][WTR] LayoutTestController.sendWebIntentResponse() needs to be implemented
2412         https://bugs.webkit.org/show_bug.cgi?id=92227
2413
2414         Reviewed by Kenneth Rohde Christiansen.
2415
2416         Add new InjectedBundleIntentRequest class to wrap WebCore's
2417         IntentRequest and use it in InjectedBundle's
2418         didReceiveIntentForFrame callback. The WebKitTestRunner needs
2419         to be able to reply to a Web intent request in order to
2420         implement LayoutTestController.sendWebIntentResponse(). As
2421         a consequence, passing a WebIntentData type in not enough.
2422
2423         * CMakeLists.txt:
2424         * GNUmakefile.list.am:
2425         * Shared/API/c/WKBase.h:
2426         * Shared/APIObject.h:
2427         * Shared/IntentData.cpp:
2428         (WebKit::IntentData::IntentData):
2429         (WebKit):
2430         * Shared/IntentData.h:
2431         (WebCore):
2432         (WebKit::IntentData::IntentData):
2433         (IntentData):
2434         * Target.pri:
2435         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
2436         (WebKit):
2437         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp: Copied from Source/WebKit2/Shared/IntentData.cpp.
2438         (WKBundleIntentRequestGetTypeID):
2439         (WKBundleIntentRequestCopyIntent):
2440         (WKBundleIntentRequestPostResult):
2441         (WKBundleIntentRequestPostFailure):
2442         * WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.h: Copied from Source/WebKit2/Shared/IntentData.h.
2443         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2444         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp: Copied from Source/WebKit2/Shared/IntentData.cpp.
2445         (WebKit):
2446         (WebKit::InjectedBundleIntentRequest::create):
2447         (WebKit::InjectedBundleIntentRequest::InjectedBundleIntentRequest):
2448         (WebKit::InjectedBundleIntentRequest::postResult):
2449         (WebKit::InjectedBundleIntentRequest::postFailure):
2450         (WebKit::InjectedBundleIntentRequest::intent):
2451         * WebProcess/InjectedBundle/InjectedBundleIntentRequest.h: Copied from Source/WebKit2/Shared/IntentData.h.
2452         (WebCore):
2453         (WebKit):
2454         (InjectedBundleIntentRequest):
2455         (WebKit::InjectedBundleIntentRequest::type):
2456         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2457         (WebKit::InjectedBundlePageLoaderClient::didReceiveIntentForFrame):
2458         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2459         (WebKit):
2460         (InjectedBundlePageLoaderClient):
2461         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2462         (WebKit::WebFrameLoaderClient::dispatchIntent):
2463
2464 2012-07-25  Anders Carlsson  <andersca@apple.com>
2465
2466         Crash when a web page is closed with outstanding scrolling thread barriers
2467         https://bugs.webkit.org/show_bug.cgi?id=92280
2468         <rdar://problem/11630200>
2469
2470         Reviewed by Andreas Kling.
2471
2472         There was a check in forceRepaintAsync to handle the drawing area going away before the block had
2473         been invoked,  but this check needs to be done earlier (as the FIXME suggested).
2474         Move this check to dispatchAfterEnsuringUpdatedScrollPosition instead.
2475
2476         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
2477         (WebKit::TiledCoreAnimationDrawingArea::forceRepaintAsync):
2478         (WebKit::TiledCoreAnimationDrawingArea::dispatchAfterEnsuringUpdatedScrollPosition):
2479
2480 2012-07-25  Alexey Proskuryakov  <ap@apple.com>
2481
2482         Chinese IM receives incorrect/duplicated key events in text fields in webpages in Safari.
2483         https://bugs.webkit.org/show_bug.cgi?id=89048
2484         <rdar://problem/11786384>
2485
2486         Reviewed by Andreas Kling.
2487
2488         Cannot test text input from UI process side.
2489
2490         Stop relying on IPC to handle key events in order. There are too many complications
2491         where out of order delivery is performed. Instead, queue the events at UI process
2492         side.
2493
2494         * UIProcess/WebPageProxy.cpp:
2495         (WebKit::WebPageProxy::handleKeyboardEvent):
2496         (WebKit::WebPageProxy::didReceiveEvent):
2497
2498 2012-07-25  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2499
2500         [EFL] Use eina_stringshare_add instead of strdup.
2501         https://bugs.webkit.org/show_bug.cgi?id=92072
2502
2503         Reviewed by Kentaro Hara.
2504
2505         Eina of EFL libraries supports a string functionality that replaces strdup. So, EFL port needs
2506         to replace strdup with eina_stringshare_add function.
2507
2508         * UIProcess/API/efl/ewk_intent.cpp:
2509         (ewk_intent_suggestions_get):
2510         (ewk_intent_extra_get):
2511         * UIProcess/API/efl/ewk_intent.h:
2512
2513 2012-07-25  Ryuan Choi  <ryuan.choi@samsung.com>
2514
2515         [EFL][WK2] Add ewk_view_cursor_set to change cursor.
2516         https://bugs.webkit.org/show_bug.cgi?id=89140
2517
2518         Reviewed by Hajime Morita.
2519
2520         Implement ewk_view_cursor_set to support cursor changes.
2521
2522         * UIProcess/API/efl/PageClientImpl.cpp:
2523         (WebKit::PageClientImpl::setCursor): Called ewk_view_cursor_set.
2524         * UIProcess/API/efl/ewk_view.cpp:
2525         (_Ewk_View_Private_Data):
2526         (_Ewk_View_Private_Data::_Ewk_View_Private_Data):
2527         (_Ewk_View_Private_Data::~_Ewk_View_Private_Data):
2528         (_ewk_view_priv_new): Check whether ecore_x can be used.
2529         (_ewk_view_smart_add):
2530         Change order of initialization to use base structure in _ewk_view_priv_new.
2531         (ewk_view_cursor_set): Added to set cursor.
2532         * UIProcess/API/efl/ewk_view_private.h:
2533
2534 2012-07-25  Ryuan Choi  <ryuan.choi@samsung.com>
2535
2536         [EFL][WK2] Update uri when the active URI is changed while loading.
2537         https://bugs.webkit.org/show_bug.cgi?id=92001
2538
2539         Reviewed by Hajime Morita.
2540
2541         For now, ewk_view_uri_get just return the last uri of setter.
2542         This patch updates the uri of ewk_view when it is changed while loading.
2543
2544         * UIProcess/API/efl/ewk_view.cpp:
2545         (ewk_view_uri_update):
2546         Added to check whether current active URI has changed and send uri,changed
2547         signal if it has changed.
2548         (ewk_view_uri_set):
2549         Called ewk_view_uri_update to make sure the active uri is updated when the
2550         load operation is started.
2551         (ewk_view_reload): Ditto.
2552         (ewk_view_reload_bypass_cache): Ditto.
2553         (ewk_view_load_finished): Ditto.
2554         (ewk_view_load_provisional_redirect): Ditto.
2555         (ewk_view_load_provisional_started): Ditto.
2556         (ewk_view_html_string_load): Ditto.
2557         * UIProcess/API/efl/ewk_view.h: Updated comment for uri,changed signal.
2558         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp: 
2559         (EWK2UnitTest::EWK2UnitTestEnvironment::urlForResource):
2560         Added to get url of custom resource for test.
2561         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.h:
2562         * UIProcess/API/efl/tests/resources/redirect_uri_to_default.html:
2563         Added to test ewk_view_uri_get when the page is redirected.
2564         * UIProcess/API/efl/tests/test_ewk2_view.cpp: Ditto.
2565         (onLoadFinishedForRedirection):
2566         (TEST_F): Added new test case whether ewk_view_uri_get returns correct uri when
2567         the page is redirected.
2568
2569 2012-07-25  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2570
2571         [EFL][WK2] Add ewk_main.{cpp,h} to EFL WK2
2572         https://bugs.webkit.org/show_bug.cgi?id=92101
2573
2574         Reviewed by Kenneth Rohde Christiansen.
2575
2576         Added a centralized place for general initialization in UI process for EFL WK2.
2577
2578         * PlatformEfl.cmake:
2579         * UIProcess/API/efl/EWebKit2.h:
2580         * UIProcess/API/efl/ewk_main.cpp: Added.
2581         (ewk_init): General initialization.
2582         (ewk_shutdown): General freeing. 
2583         (_ewk_init_body): An aux function.
2584         * UIProcess/API/efl/ewk_main.h: Added.
2585
2586 2012-07-24  Jae Hyun Park  <jae.park@company100.net>
2587
2588         WKContextGetGlobalStatistics() assigns wrong value to wkFrameCount in WKContextStatistics
2589         https://bugs.webkit.org/show_bug.cgi?id=92173
2590
2591         Reviewed by John Sullivan.
2592
2593         In WKContextGetGlobalStatistics(), wkViewCount in WebContext::Statistics
2594         is assigned to wkFrameCount in WKContextStatistics.
2595         wkFrameCount in WebContext:Statistics should be assigned to wkFrameCount in WKContextStatistics.
2596
2597         * UIProcess/API/C/WKContext.cpp:
2598         (WKContextGetGlobalStatistics):
2599
2600 2012-07-24  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
2601
2602         [EFL][WK2] Add unit tests for custom text encoding setting
2603         https://bugs.webkit.org/show_bug.cgi?id=91983
2604
2605         Reviewed by Dirk Pranke.
2606
2607         Add unit tests for get and set custom text encoding methods. Also, fix
2608         a style nit for r123177.
2609
2610         * UIProcess/API/efl/ewk_view.cpp:
2611         (ewk_view_setting_encoding_custom_set): Fix a style nit - add newline
2612         before return.
2613         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
2614         (TEST_F):
2615
2616 2012-07-24  Ryosuke Niwa  <rniwa@webkit.org>
2617
2618         WinCairo build fix attempt.
2619
2620         * win/WebKit2CFLite.def:
2621
2622 2012-07-24  Ryosuke Niwa  <rniwa@webkit.org>
2623
2624         Windows build fix attempt.
2625
2626         * win/WebKit2.def:
2627
2628 2012-07-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2629
2630         [Qt] Make sure that an AC sync is triggered when the canvas contents is updated.
2631         https://bugs.webkit.org/show_bug.cgi?id=92128
2632
2633         Reviewed by Kenneth Rohde Christiansen.
2634
2635         This would cause missed frames when animating an accelerated 2D canvas without
2636         touching the document.
2637
2638         * WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp:
2639         (WebCore::WebGraphicsLayer::setContentsNeedsDisplay):
2640
2641 2012-07-24  Alexey Proskuryakov  <ap@apple.com>
2642
2643         [Mac WK2] Improve text input logging
2644         https://bugs.webkit.org/show_bug.cgi?id=92147
2645
2646         Reviewed by Andreas Kling.
2647
2648         * UIProcess/API/mac/WKView.mm:
2649         (-[WKView insertText:replacementRange:]):
2650         (-[WKView keyUp:]):
2651         (-[WKView keyDown:]):
2652         (-[WKView flagsChanged:]):
2653         (-[WKView _executeSavedKeypressCommands]):
2654         (-[WKView _notifyInputContextAboutDiscardedComposition]):
2655         (-[WKView _interpretKeyEvent:savingCommandsTo:WebCore::]):
2656         (-[WKView _updateSecureInputState]):
2657
2658 2012-07-24  Christophe Dumez  <christophe.dumez@intel.com>
2659
2660         [EFL][WK2] Provide more useful output when an injected bundle cannot be loaded
2661         https://bugs.webkit.org/show_bug.cgi?id=92136
2662
2663         Reviewed by Kenneth Rohde Christiansen.
2664
2665         Call eina_error_get() in case an injected bundle cannot be
2666         loaded in order to print more information about the error.
2667
2668         * WebProcess/InjectedBundle/efl/InjectedBundleEfl.cpp:
2669         (WebKit::InjectedBundle::load):
2670
2671 2012-07-24  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
2672
2673         [EFL][WK2] Add vibration client
2674         https://bugs.webkit.org/show_bug.cgi?id=91371
2675
2676         Reviewed by Antonio Gomes.
2677
2678         Implement Vibration provider for WebKit2 EFL and add an API to set
2679         vibration client callbacks by application to handle the tactile
2680         feedback in the application when the page content ask for vibration.
2681
2682         * CMakeLists.txt: Add WebCore/Modules/vibration to include path.
2683         * PlatformEfl.cmake: Add VibrationProvider.cpp file to the build
2684         system.
2685         * UIProcess/API/efl/VibrationProvider.cpp: Added.
2686         (_Ewk_Vibration_Client): Structure contains the vibration client
2687         callbacks.
2688         (_Ewk_Vibration_Client::_Ewk_Vibration_Client):
2689         (toVibrationProvider): Helper function to cast the clientinfo to
2690         VibrationProvider.
2691         (vibrateCallback):
2692         (cancelVibrationCallback):
2693         (VibrationProvider::create):
2694         (VibrationProvider::VibrationProvider):
2695         (VibrationProvider::~VibrationProvider):
2696         (VibrationProvider::vibrate):
2697         (VibrationProvider::cancelVibration):
2698         (VibrationProvider::setVibrationClientCallbacks):
2699         * UIProcess/API/efl/VibrationProvider.h: Added.
2700         (VibrationProvider):
2701         * UIProcess/API/efl/ewk_context.cpp:
2702         (_Ewk_Context):
2703         (createDefaultEwkContext):
2704         (ewk_context_vibration_client_callbacks_set): API to set vibration
2705         client callbacks.
2706         * UIProcess/API/efl/ewk_context.h:
2707
2708 2012-07-24  Simon Hausmann  <simon.hausmann@nokia.com>
2709
2710         [Qt] Fix compilation after QtQuick API changes
2711         https://bugs.webkit.org/show_bug.cgi?id=91822
2712
2713         Reviewed by Kenneth Rohde Christiansen.
2714
2715         QQuickCanvas is now QQuickWindow, QQuickItem::canvas() is window() and rootItem()
2716         is contentItem(). Also QQuickWindow::grabFrameBuffer() is now grabWindow().
2717
2718         * UIProcess/API/qt/qquickwebpage.cpp:
2719         * UIProcess/API/qt/qquickwebview.cpp:
2720         (QQuickWebViewPrivate::updateIcon):
2721         * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
2722         (tst_QQuickWebView::multipleWebViews):
2723         (tst_QQuickWebView::basicRenderingSanity):
2724         (tst_QQuickWebView::transparentWebViews):
2725         * UIProcess/API/qt/tests/testwindow.h:
2726         (TestWindow::TestWindow):
2727         * UIProcess/qt/QtPageClient.cpp:
2728         (WebKit::QtPageClient::isViewVisible):
2729         * UIProcess/qt/QtWebPageEventHandler.cpp:
2730         (WebKit::QtWebPageEventHandler::startDrag):
2731
2732 2012-07-24  Balazs Kelemen  <kbalazs@webkit.org>
2733
2734         [Qt] Add quirks for running the web process in a profiler shell, like valgrind
2735         https://bugs.webkit.org/show_bug.cgi?id=87672
2736
2737         Reviewed by Jocelyn Turcotte.
2738
2739         If environment variables QT_WEBKIT_WEB_PROCESS_COMMAND_PREFIX
2740         and/or QT_WEBKIT_PLUGIN_PROCESS_COMMAND_PREFIX are set, use their
2741         values as the prefix of the command when launching the child process.
2742         Example usage:
2743             export QT_WEB_PROCESS_COMMAND_PREFIX="valgrind --smc-check=all"
2744             ./MiniBrowser http://somepage.html
2745             ./WebKitTestRunner --no-timeout-at-all some_layouttest.html
2746
2747         * UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
2748         (WebKit::ProcessLauncher::launchProcess):
2749
2750 2012-07-23  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
2751
2752         [Qt] Fix compilation against namespaced Qt
2753
2754         Reviewed by Simon Hausmann.
2755
2756         * Platform/CoreIPC/Connection.h:
2757         * Platform/PlatformProcessIdentifier.h:
2758         * Platform/WorkQueue.h:
2759         * Shared/qt/QtNetworkRequestData.h:
2760         * Shared/qt/WebEventFactoryQt.h:
2761         * UIProcess/API/C/qt/WKNativeEvent.h:
2762         * UIProcess/API/qt/qquickwebview_p.h:
2763         * UIProcess/API/qt/qwebnavigationhistory_p.h:
2764         * UIProcess/API/qt/raw/qrawwebview_p.h:
2765         * UIProcess/DrawingAreaProxy.h:
2766         * UIProcess/Launcher/ThreadLauncher.h:
2767         * UIProcess/LayerTreeCoordinatorProxy.h:
2768         * UIProcess/qt/QtViewportHandler.h:
2769         * UIProcess/qt/QtWebPageSGNode.h:
2770         * UIProcess/qt/WebColorChooserProxyQt.h:
2771         * UIProcess/qt/WebGeolocationProviderQt.h:
2772         * UIProcess/qt/WebPopupMenuProxyQt.h:
2773         * WebProcess/WebProcess.h:
2774
2775 2012-07-24  Christophe Dumez  <christophe.dumez@intel.com>
2776
2777         [EFL][WK2] Remove unneeded WebURLRequestEfl and WebURLResponseEfl
2778         https://bugs.webkit.org/show_bug.cgi?id=92087
2779
2780         Reviewed by Kenneth Rohde Christiansen.
2781
2782         Remove WebURLRequestEfl and WebURLResponseEfl classes
2783         and their corresponding C APIs since we don't need / use
2784         them.
2785
2786         * Shared/API/c/efl/WKURLRequestEfl.cpp: Removed.
2787         * Shared/API/c/efl/WKURLRequestEfl.h: Removed.
2788         * Shared/API/c/efl/WKURLResponseEfl.cpp: Removed.
2789         * Shared/API/c/efl/WKURLResponseEfl.h: Removed.
2790         * Shared/efl/WebURLRequestEfl.cpp: Removed.
2791         * Shared/efl/WebURLRequestEfl.h: Removed.
2792         * Shared/efl/WebURLResponseEfl.cpp: Removed.
2793         * Shared/efl/WebURLResponseEfl.h: Removed.
2794         * UIProcess/API/efl/ewk_url_request.cpp:
2795
2796 2012-07-24  Pierre Rossi  <pierre.rossi@gmail.com>
2797
2798         [Qt] Enable touch slider when touch events are enabled
2799         https://bugs.webkit.org/show_bug.cgi?id=91013
2800
2801         Reviewed by Kenneth Rohde Christiansen.
2802
2803         TOUCH_SLIDER guards are used in WebCore, so we should really
2804         be setting the corresponding ENABLE define in features.prf.
2805
2806         * Target.pri:
2807
2808 2012-07-24  Christophe Dumez  <christophe.dumez@intel.com>
2809
2810         [EFL][WK2] Fix possible crash in didSendRequestForResource
2811         https://bugs.webkit.org/show_bug.cgi?id=92077
2812
2813         Reviewed by Kenneth Rohde Christiansen.
2814
2815         Add NULL check for wkRedirectResponse in
2816         didSendRequestForResource() before using it. The
2817         argument may be NULL if there was no redirection.
2818
2819         * UIProcess/API/efl/ewk_view.h:
2820         * UIProcess/API/efl/ewk_view_resource_load_client.cpp:
2821         (didSendRequestForResource):
2822
2823 2012-07-24  Christophe Dumez  <christophe.dumez@intel.com>
2824
2825         [WK2][EFL][GTK] Share WebCoreArgumentCoders for soup-related types
2826         https://bugs.webkit.org/show_bug.cgi?id=92073
2827
2828         Reviewed by Kenneth Rohde Christiansen.
2829
2830         Move WebCoreArgumentCoders for soup-related types such as
2831         ResourceRequest, ResourceResponse and ResourceError from
2832         port specific file to Shared/soup/WebCoreArgumentCodersSoup.cpp.
2833         This way, the different ports using libsoup can share
2834         code and avoid duplication.
2835
2836         * GNUmakefile.list.am:
2837         * PlatformEfl.cmake:
2838         * Shared/efl/WebCoreArgumentCodersEfl.cpp: Removed.
2839         * Shared/soup/WebCoreArgumentCodersSoup.cpp: Renamed from Source/WebKit2/Shared/gtk/WebCoreArgumentCodersGtk.cpp.
2840         (CoreIPC):
2841         (CoreIPC::::encode):
2842         (CoreIPC::::decode):
2843
2844 2012-07-23  Sheriff Bot  <webkit.review.bot@gmail.com>
2845
2846         Unreviewed, rolling out r123184, r123195, and r123197.
2847         http://trac.webkit.org/changeset/123184
2848         http://trac.webkit.org/changeset/123195
2849         http://trac.webkit.org/changeset/123197
2850         https://bugs.webkit.org/show_bug.cgi?id=92049
2851
2852         pagecycler regression (Requested by morrita on #webkit).
2853
2854         * win/WebKit2.def:
2855         * win/WebKit2CFLite.def:
2856
2857 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
2858
2859         Part 2 of: Implement sticky positioning
2860         https://bugs.webkit.org/show_bug.cgi?id=90046
2861
2862         Reviewed by Ojan Vafai.
2863
2864         Turn on ENABLE_CSS_STICKY_POSITION.
2865
2866         * Configurations/FeatureDefines.xcconfig:
2867
2868 2012-07-23  Christophe Dumez  <christophe.dumez@intel.com>
2869
2870         [WK2] WebKitTestRunner needs to print information about Web intents
2871         https://bugs.webkit.org/show_bug.cgi?id=90873
2872
2873         Reviewed by Anders Carlsson.
2874
2875         Add Bundle API for Web Intents. This is needed by the WebKitTestRunner
2876         to print information about the new intent requests and the intent
2877         service registrations.
2878
2879         * CMakeLists.txt: Move WebIntentData and WebIntentServiceInfo from
2880         UIProcess/ to Shared/.
2881         * GNUmakefile.list.am: Move WebIntentData and WebIntentServiceInfo from
2882         UIProcess/ to Shared/.
2883         * Shared/APIClientTraits.h:
2884         * Shared/WebIntentData.cpp: Renamed from Source/WebKit2/UIProcess/WebIntentData.cpp.
2885         (WebKit):
2886         (WebKit::WebIntentData::WebIntentData):
2887         (WebKit::WebIntentData::data):
2888         (WebKit::WebIntentData::suggestions):
2889         (WebKit::WebIntentData::extra):
2890         (WebKit::WebIntentData::extras):
2891         * Shared/WebIntentData.h: Renamed from Source/WebKit2/UIProcess/WebIntentData.h.
2892         (WebKit):
2893         (WebIntentData):
2894         (WebKit::WebIntentData::create):
2895         (WebKit::WebIntentData::~WebIntentData):
2896         (WebKit::WebIntentData::action):
2897         (WebKit::WebIntentData::payloadType):
2898         (WebKit::WebIntentData::service):
2899         (WebKit::WebIntentData::store):
2900         (WebKit::WebIntentData::type):
2901         * Shared/WebIntentServiceInfo.cpp: Renamed from Source/WebKit2/UIProcess/WebIntentServiceInfo.cpp.
2902         (WebKit):
2903         (WebKit::WebIntentServiceInfo::WebIntentServiceInfo):
2904         * Shared/WebIntentServiceInfo.h: Renamed from Source/WebKit2/UIProcess/WebIntentServiceInfo.h.
2905         (WebKit):
2906         (WebIntentServiceInfo):
2907         (WebKit::WebIntentServiceInfo::create):
2908         (WebKit::WebIntentServiceInfo::~WebIntentServiceInfo):
2909         (WebKit::WebIntentServiceInfo::action):
2910         (WebKit::WebIntentServiceInfo::payloadType):
2911         (WebKit::WebIntentServiceInfo::href):
2912         (WebKit::WebIntentServiceInfo::title):
2913         (WebKit::WebIntentServiceInfo::disposition):
2914         (WebKit::WebIntentServiceInfo::type):
2915         * Target.pri: Move WebIntentData and WebIntentServiceInfo from
2916         UIProcess/ to Shared/.
2917         * UIProcess/API/C/WKPage.h:
2918         * UIProcess/API/efl/ewk_view_loader_client.cpp:
2919         (didReceiveIntentForFrame):
2920         (registerIntentServiceForFrame):
2921         * UIProcess/WebLoaderClient.cpp:
2922         (WebKit::WebLoaderClient::didReceiveIntentForFrame):
2923         (WebKit::WebLoaderClient::registerIntentServiceForFrame):
2924         * UIProcess/WebLoaderClient.h:
2925         (WebLoaderClient):
2926         * UIProcess/WebPageProxy.cpp:
2927         (WebKit::WebPageProxy::registerIntentServiceForFrame):
2928         (WebKit::WebPageProxy::didReceiveIntentForFrame):
2929         * UIProcess/WebPageProxy.h:
2930         (WebPageProxy):
2931         * UIProcess/WebPageProxy.messages.in:
2932         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
2933         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
2934         (WebKit):
2935         (WebKit::InjectedBundlePageLoaderClient::didReceiveIntentForFrame):
2936         (WebKit::InjectedBundlePageLoaderClient::registerIntentServiceForFrame):
2937         * WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.h:
2938         (WebKit):
2939         (InjectedBundlePageLoaderClient):
2940         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2941         (WebKit::WebFrameLoaderClient::dispatchIntent):
2942         (WebKit::WebFrameLoaderClient::registerIntentService):
2943         * WebProcess/qt/QtBuiltinBundlePage.cpp:
2944         (WebKit::QtBuiltinBundlePage::QtBuiltinBundlePage):
2945
2946 2012-07-23  Christophe Dumez  <christophe.dumez@intel.com>
2947
2948         [EFL][WK2] Add unit tests for Ewk_Cookie_Manager
2949         https://bugs.webkit.org/show_bug.cgi?id=91639
2950
2951         Reviewed by Antonio Gomes.
2952
2953         Add unit tests for Ewk_Cookie_Manager.
2954
2955         * PlatformEfl.cmake:
2956         * UIProcess/API/efl/ewk_cookie_manager.h: Fix "accept policy" documentation
2957         to indicate that only cookies set by the main document are accepted by default.
2958         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.cpp: Added.
2959         (EWK2UnitTestServer::EWK2UnitTestServer): Add HTTP server similar to the one
2960         used by GTK port unit tests.
2961         (EWK2UnitTestServer::~EWK2UnitTestServer):
2962         (EWK2UnitTestServer::run):
2963         (EWK2UnitTestServer::getURIForPath):
2964         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestServer.h: Added.
2965         (EWK2UnitTestServer):
2966         (EWK2UnitTestServer::baseURI):
2967         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp: Added.
2968         (serverCallback):
2969         (getAcceptPolicyCallback):
2970         (getAcceptPolicy):
2971         (getHostnamesWithCookiesCallback):
2972         (getHostnamesWithCookies):
2973         (freeHostNames):
2974         (countHostnamesWithCookies):
2975         (TEST_F):
2976         (cleanUpCookieFiles):
2977
2978 2012-07-23  Pierre Rossi  <pierre.rossi@gmail.com>
2979
2980         [Qt] Enable touch slider when touch events are enabled
2981         https://bugs.webkit.org/show_bug.cgi?id=91013
2982
2983         Reviewed by Antonio Gomes.
2984
2985         Take advantage of the logic introduced in r122286.
2986
2987         * Target.pri:
2988
2989 2012-07-23  Pierre Rossi  <pierre.rossi@gmail.com>
2990
2991         Unify numTouchEventHandlersChanged and needTouchEvents in the chrome client
2992         https://bugs.webkit.org/show_bug.cgi?id=91006
2993
2994         Reviewed by Ryosuke Niwa.
2995
2996         Remove numTouchEventHandlersChanged stub.
2997
2998         * WebProcess/WebCoreSupport/WebChromeClient.h:
2999         (WebChromeClient):
3000
3001 2012-07-23  Simon Fraser  <simon.fraser@apple.com>
3002
3003         Part 1 of: Implement sticky positioning
3004         https://bugs.webkit.org/show_bug.cgi?id=90046
3005
3006         Reviewed by Ojan Vafai.
3007
3008         Add ENABLE_CSS_STICKY_POSITION, defaulting to off initially.
3009         
3010         Sort the ENABLE_CSS lines in the file. Make sure all the flags
3011         are in FEATURE_DEFINES.
3012
3013         * Configurations/FeatureDefines.xcconfig:
3014
3015 2012-07-23  Christophe Dumez  <christophe.dumez@intel.com>
3016
3017         [EFL][WK2] Add request manager client
3018         https://bugs.webkit.org/show_bug.cgi?id=91193
3019
3020         Reviewed by Kenneth Rohde Christiansen.
3021
3022         Add a URL request manager client and attach it
3023         to the Ewk_Context.
3024
3025         The client application can now register a URL scheme
3026         via the Ewk_Context API and provide a callback handler
3027         that will get called whenever a URL request with this
3028         scheme is made.
3029
3030         A new Ewk_Url_Scheme_Request type is introduced to
3031         provide information about the request to the client
3032         and to allow the client to finish it by setting its
3033         contents.
3034
3035         * PlatformEfl.cmake:
3036         * UIProcess/API/efl/EWebKit2.h:
3037         * UIProcess/API/efl/ewk_context.cpp:
3038         (_Ewk_Url_Scheme_Handler):
3039         (_Ewk_Url_Scheme_Handler::_Ewk_Url_Scheme_Handler):
3040         (_Ewk_Context):
3041         (_Ewk_Context::_Ewk_Context):
3042         (ewk_context_request_manager_get):
3043         (ewk_context_url_scheme_request_received):
3044         (createDefaultEwkContext):
3045         (ewk_context_uri_scheme_register):
3046         * UIProcess/API/efl/ewk_context.h:
3047         * UIProcess/API/efl/ewk_context_private.h:
3048         * UIProcess/API/efl/ewk_context_request_manager_client.cpp: Added.
3049         (toEwkContext):
3050         (didReceiveURIRequest):
3051         (ewk_context_request_manager_client_attach):
3052         * UIProcess/API/efl/ewk_context_request_manager_client_private.h: Added.
3053         * UIProcess/API/efl/ewk_url_scheme_request.cpp: Added.
3054         (_Ewk_Url_Scheme_Request):
3055         (_Ewk_Url_Scheme_Request::_Ewk_Url_Scheme_Request):
3056         (_Ewk_Url_Scheme_Request::~_Ewk_Url_Scheme_Request):
3057         (ewk_url_scheme_request_ref):
3058         (ewk_url_scheme_request_unref):
3059         (ewk_url_scheme_request_scheme_get):
3060         (ewk_url_scheme_request_url_get):
3061         (ewk_url_scheme_request_path_get):
3062         (ewk_url_scheme_request_id_get):
3063         (ewk_url_scheme_request_finish):
3064         (ewk_url_scheme_request_new):
3065         * UIProcess/API/efl/ewk_url_scheme_request.h: Added.
3066         * UIProcess/API/efl/ewk_url_scheme_request_private.h: Added.
3067
3068 2012-07-23  KwangYong Choi  <ky0.choi@samsung.com>
3069
3070         [EFL][WK2] ProcessExecutablePath is required
3071         https://bugs.webkit.org/show_bug.cgi?id=89719
3072
3073         Reviewed by Kenneth Rohde Christiansen.
3074
3075         Added executablePathOfWebProcess and executablePathOfPluginProcess.
3076         It's used for getting the location of WebProcess and PluginProcess.
3077
3078         * PlatformEfl.cmake: Added LIBEXECDIR definition
3079         * Shared/efl/ProcessExecutablePathEfl.cpp: Added.
3080         (WebKit):
3081         (WebKit::findWebKitProcess):
3082         (WebKit::executablePathOfWebProcess): Get the absolute path of WebProcess
3083         (WebKit::executablePathOfPluginProcess): Get the absolute path of PluginProcess
3084         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
3085         (WebKit::ProcessLauncher::launchProcess): Modified to use above routines
3086
3087 2012-07-23  Christophe Dumez  <christophe.dumez@intel.com>
3088
3089         WebKit2 needs layoutTestController.setAlwaysAcceptCookies
3090         https://bugs.webkit.org/show_bug.cgi?id=42778
3091
3092         Reviewed by Kenneth Rohde Christiansen.
3093
3094         Add setAlwaysAcceptCookies() method to InjectedBundle
3095         so that we can use it in LayoutTestController.
3096         The method uses WebCookieManager::setHTTPCookieAcceptPolicy()
3097         internally.
3098
3099         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
3100         (WKBundleSetAlwaysAcceptCookies):
3101         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
3102         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3103         (WebKit::InjectedBundle::setAlwaysAcceptCookies):
3104         (WebKit):
3105         * WebProcess/InjectedBundle/InjectedBundle.h:
3106         (InjectedBundle):
3107
3108 2012-07-23  Thiago Marcos P. Santos  <thiago.santos@intel.com>
3109
3110         [WK2] SQL Database cannot be disabled at build time
3111         https://bugs.webkit.org/show_bug.cgi?id=91837
3112
3113         Reviewed by Kenneth Rohde Christiansen.
3114
3115         WebKit2 had no #ifdefs for SQL Database. This patch adds these
3116         statments and it can now be disabled at build time.
3117
3118         * Shared/OriginAndDatabases.cpp:
3119         * Shared/OriginAndDatabases.h:
3120         * Shared/WebCoreArgumentCoders.cpp:
3121         (CoreIPC):
3122         * UIProcess/API/C/WKContext.cpp:
3123         (WKContextGetDatabaseManager):
3124         * UIProcess/API/C/WKDatabaseManager.cpp:
3125         (WKDatabaseManagerGetTypeID):
3126         (WKDatabaseManagerGetOriginKey):
3127         (WKDatabaseManagerGetOriginQuotaKey):
3128         (WKDatabaseManagerGetOriginUsageKey):
3129         (WKDatabaseManagerGetDatabaseDetailsKey):
3130         (WKDatabaseManagerGetDatabaseDetailsNameKey):
3131         (WKDatabaseManagerGetDatabaseDetailsDisplayNameKey):
3132         (WKDatabaseManagerGetDatabaseDetailsExpectedUsageKey):
3133         (WKDatabaseManagerGetDatabaseDetailsCurrentUsageKey):
3134         (WKDatabaseManagerSetClient):
3135         (WKDatabaseManagerGetDatabasesByOrigin):
3136         (callGetDatabasesByOriginBlockAndDispose):
3137         (WKDatabaseManagerGetDatabasesByOrigin_b):
3138         (WKDatabaseManagerGetDatabaseOrigins):
3139         (callGetDatabaseOriginsBlockBlockAndDispose):
3140         (WKDatabaseManagerGetDatabaseOrigins_b):
3141         (WKDatabaseManagerDeleteDatabasesWithNameForOrigin):
3142         (WKDatabaseManagerDeleteDatabasesForOrigin):
3143         (WKDatabaseManagerDeleteAllDatabases):
3144         (WKDatabaseManagerSetQuotaForOrigin):
3145         * UIProcess/WebContext.cpp:
3146         (WebKit::WebContext::WebContext):
3147         (WebKit::WebContext::~WebContext):
3148         (WebKit::WebContext::shouldTerminate):
3149         (WebKit::WebContext::disconnectProcess):
3150         (WebKit::WebContext::didReceiveMessage):
3151         * UIProcess/WebContext.h:
3152         (WebContext):
3153         * UIProcess/WebDatabaseManagerProxy.cpp:
3154         * UIProcess/WebDatabaseManagerProxy.h:
3155         * UIProcess/WebDatabaseManagerProxy.messages.in:
3156         * WebProcess/InjectedBundle/InjectedBundle.cpp:
3157         (WebKit::InjectedBundle::clearAllDatabases):
3158         (WebKit::InjectedBundle::setDatabaseQuota):
3159         * WebProcess/WebCoreSupport/WebDatabaseManager.cpp:
3160         * WebProcess/WebCoreSupport/WebDatabaseManager.h:
3161         * WebProcess/WebCoreSupport/WebDatabaseManager.messages.in:
3162         * WebProcess/WebProcess.cpp:
3163         (WebKit::WebProcess::didReceiveMessage):
3164
3165 2012-07-23  Kent Tamura  <tkent@chromium.org>
3166
3167         Rename ENABLE_METER_TAG and ENABLE_PROGRESS_TAG to ENABLE_METER_ELEMENT and ENABLE_PROGRESS_ELEMENT respectively
3168         https://bugs.webkit.org/show_bug.cgi?id=91941
3169
3170         Reviewed by Kentaro Hara.
3171
3172         A flag name for an elmement should be ENABLE_*_ELEMENT.
3173
3174         * Configurations/FeatureDefines.xcconfig:
3175
3176 2012-07-22  Kent Tamura  <tkent@chromium.org>
3177
3178         Rename ENABLE_DETAILS to ENABLE_DETAILS_ELEMENT
3179         https://bugs.webkit.org/show_bug.cgi?id=91928
3180
3181         Reviewed by Kentaro Hara.
3182
3183         A flag name for an elmement should be ENABLE_*_ELEMENT.
3184
3185         * Configurations/FeatureDefines.xcconfig:
3186
3187 2012-07-20  Kent Tamura  <tkent@chromium.org>
3188
3189         Rename ENABLE_DATALIST to ENABLE_DATALIST_ELEMENT
3190         https://bugs.webkit.org/show_bug.cgi?id=91846
3191
3192         Reviewed by Kentaro Hara.
3193
3194         A flag name for an elmement should be ENABLE_*_ELEMENT.
3195
3196         * Configurations/FeatureDefines.xcconfig:
3197
3198 2012-07-20  Rafael Brandao  <rafael.lobo@openbossa.org>
3199
3200         QtNetworkAccessManager should not rely on signal sslErrors when QT_NO_SSL is defined
3201         https://bugs.webkit.org/show_bug.cgi?id=91866
3202
3203         Reviewed by Noam Rosenthal.
3204
3205         * WebProcess/qt/QtNetworkAccessManager.cpp:
3206         (WebKit::QtNetworkAccessManager::QtNetworkAccessManager): QNAM's signal is only defined when
3207         that flag is undefined. Removed the connection when we have the flag set.
3208         (WebKit::QtNetworkAccessManager::onSslErrors): When the flag is set, this slot becomes unused.
3209
3210 2012-07-20  Christophe Dumez  <christophe.dumez@intel.com>
3211
3212         [EFL] Proxy configuration should honor the no_proxy environment variable
3213         https://bugs.webkit.org/show_bug.cgi?id=91747
3214
3215         Reviewed by Kenneth Rohde Christiansen.
3216
3217         Use the new custom proxy resolver from WebCore in
3218         WebKit2-EFL so that it is possible for the client
3219         to set proxy exceptions via the "no_proxy"
3220         environment variable.
3221
3222         By default, the proxy set in the "http_proxy"
3223         environment variable will not be used for requests
3224         to localhost or 127.0.0.1.
3225
3226         * WebProcess/efl/WebProcessMainEfl.cpp:
3227         (WebKit::WebProcessMainEfl):
3228
3229 2012-06-01  Dinu Jacob  <dinu.jacob@nokia.com>
3230
3231         [Qt][WK2] Add support for multi-select list
3232         https://bugs.webkit.org/show_bug.cgi?id=85527
3233
3234         Reviewed by Kenneth Rohde Christiansen.
3235
3236         Added support for multi-select list:
3237         - Added multi-selection flag to PlatformPopupMenuData to indicate whether to accept multiple selections or not.
3238         - Added selected state to WebPopupItem.
3239         - Modified WebPopupMenuQt to support multiple selections.
3240
3241         * Shared/PlatformPopupMenuData.cpp:
3242         (WebKit::PlatformPopupMenuData::PlatformPopupMenuData):
3243         (WebKit::PlatformPopupMenuData::encode):
3244         (WebKit::PlatformPopupMenuData::decode):
3245         * Shared/PlatformPopupMenuData.h:
3246         (PlatformPopupMenuData):
3247         * Shared/WebPopupItem.cpp:
3248         (WebKit::WebPopupItem::WebPopupItem):
3249         (WebKit::WebPopupItem::encode):
3250         (WebKit::WebPopupItem::decode):
3251         * Shared/WebPopupItem.h:
3252         * UIProcess/API/qt/tests/qmltests/WebView/tst_multiSelect.qml: Added.
3253         * UIProcess/API/qt/tests/qmltests/common/multiselect.html: Added.
3254         * UIProcess/WebPageProxy.h:
3255         (WebPageProxy):
3256         * UIProcess/WebPopupMenuProxy.h:
3257         (Client):
3258         * UIProcess/qt/WebPageProxyQt.cpp:
3259         (WebKit::WebPageProxy::changeSelectedIndex):
3260         (WebKit):
3261         (WebKit::WebPageProxy::closePopupMenu):
3262         * UIProcess/qt/WebPopupMenuProxyQt.cpp:
3263         (WebKit::PopupMenuItemModel::multiple):
3264         (PopupMenuItemModel):
3265         (WebKit::PopupMenuItemModel::Item::Item):
3266         (ItemSelectorContextObject):
3267         (WebKit::ItemSelectorContextObject::allowMultiSelect):
3268         (WebKit::ItemSelectorContextObject::reject):
3269         (WebKit::ItemSelectorContextObject::dismiss):
3270         (WebKit::ItemSelectorContextObject::ItemSelectorContextObject):
3271         (WebKit):
3272         (WebKit::ItemSelectorContextObject::onIndexUpdate):
3273         (WebKit::ItemSelectorContextObject::accept):
3274         (WebKit::PopupMenuItemModel::PopupMenuItemModel):
3275         (WebKit::PopupMenuItemModel::select):
3276         (WebKit::PopupMenuItemModel::toggleItem):
3277         (WebKit::PopupMenuItemModel::buildItems):
3278         (WebKit::WebPopupMenuProxyQt::showPopupMenu):
3279         (WebKit::WebPopupMenuProxyQt::hidePopupMenu):
3280         (WebKit::WebPopupMenuProxyQt::selectIndex):
3281         (WebKit::WebPopupMenuProxyQt::createItem):
3282         * UIProcess/qt/WebPopupMenuProxyQt.h:
3283         (WebPopupMenuProxyQt):
3284         * WebProcess/WebCoreSupport/WebPopupMenu.cpp:
3285         (WebKit::WebPopupMenu::didChangeSelectedIndex):
3286         (WebKit::WebPopupMenu::populateItems):
3287         * WebProcess/WebCoreSupport/WebPopupMenu.h:
3288         (WebPopupMenu):
3289         * WebProcess/WebCoreSupport/qt/WebPopupMenuQt.cpp:
3290         (WebKit::WebPopupMenu::setUpPlatformData):
3291         * WebProcess/WebPage/WebPage.cpp:
3292         (WebKit::WebPage::didChangeSelectedIndexForActivePopupMenu):
3293         (WebKit):
3294         (WebKit::WebPage::changeSelectedIndex):
3295         * WebProcess/WebPage/WebPage.h:
3296         (WebPage):
3297         * WebProcess/WebPage/WebPage.messages.in:
3298         * WebProcess/WebPage/qt/WebPageQt.cpp:
3299         (WebKit::WebPage::selectedIndex):
3300         (WebKit):
3301         (WebKit::WebPage::hidePopupMenu):
3302
3303 2012-07-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3304
3305         Unreviewed, rolling out r123085.
3306         http://trac.webkit.org/changeset/123085
3307         https://bugs.webkit.org/show_bug.cgi?id=91719
3308
3309         r123085 causes crashes on EFL layout test bot.
3310
3311         * UIProcess/efl/WebContextEfl.cpp:
3312         (WebKit::WebContext::applicationCacheDirectory):
3313
3314 2012-07-20  Christophe Dumez  <christophe.dumez@intel.com>
3315
3316         [EFL][WK2] Use "load,finished" signal in EWK2UnitTestBase::loadUrlSync() instead of "load,progress"
3317         https://bugs.webkit.org/show_bug.cgi?id=91721
3318
3319         Reviewed by Kenneth Rohde Christiansen.
3320
3321         The purpose of EWK2UnitTestBase::loadUrlSync() is to load
3322         a URL in the view and wait synchronously for the load to finish.
3323         The current implementation uses the "load,progress" signal to
3324         detect when the load is finished, which is inefficient because
3325         it gets emitted several times.
3326
3327         It is better to wait for the "load,finished" signal which gets
3328         emitted only once when the load is complete.
3329
3330         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
3331         (EWK2UnitTest::onLoadFinished):
3332         (EWK2UnitTest::EWK2UnitTestBase::EWK2UnitTestBase):
3333         (EWK2UnitTest::EWK2UnitTestBase::loadUrlSync):
3334         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
3335         (EWK2UnitTestBase):
3336
3337 2012-07-19  MORITA Hajime  <morrita@google.com>
3338
3339         [Refactoring] Replace Node's Document pointer with a TreeScope pointer
3340         https://bugs.webkit.org/show_bug.cgi?id=59816
3341
3342         Reviewed by Ryosuke Niwa.
3343
3344         * win/WebKit2.def: Added newly exported symbols.
3345         * win/WebKit2CFLite.def: Ditto.
3346
3347 2012-07-19  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
3348
3349         [EFL] [WK2] Add methods to get/set a custom text encoding
3350         https://bugs.webkit.org/show_bug.cgi?id=90604
3351
3352         Reviewed by Kenneth Rohde Christiansen.
3353
3354         Add methods to get/set custom character encoding.
3355
3356         * UIProcess/API/efl/ewk_view.cpp:
3357         (_Ewk_View_Private_Data):
3358         (_ewk_view_priv_del):
3359         (ewk_view_setting_encoding_custom_get):
3360         (ewk_view_setting_encoding_custom_set):
3361         * UIProcess/API/efl/ewk_view.h:
3362
3363 2012-07-19  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3364
3365         Unreviewed. Fix build break because of changing parameter type of
3366         vibration virtual function on EFL port.
3367
3368         * WebProcess/WebCoreSupport/WebVibrationClient.cpp:
3369         (WebKit::WebVibrationClient::vibrate):
3370         * WebProcess/WebCoreSupport/WebVibrationClient.h:
3371         (WebVibrationClient):
3372
3373 2012-07-19  Sudarsana Nagineni  <sudarsana.nagineni@linux.intel.com>
3374
3375         [WK2] Add Vibration API integration to WebContext and WebPage
3376         https://bugs.webkit.org/show_bug.cgi?id=91081
3377
3378         Reviewed by Anders Carlsson.
3379
3380         Integrate Vibration API to WebPage, WebContext and properly route
3381         messages to the WebVibrationProxy.
3382
3383         * UIProcess/API/C/WKContext.cpp:
3384         (WKContextGetVibration):
3385         * UIProcess/API/C/WKContext.h:
3386         * UIProcess/WebContext.cpp:
3387         (WebKit::WebContext::WebContext):
3388         (WebKit::WebContext::~WebContext):
3389         (WebKit::WebContext::disconnectProcess):
3390         (WebKit::WebContext::didReceiveMessage):
3391         * UIProcess/WebContext.h:
3392         (WebKit):
3393         (WebContext):
3394         (WebKit::WebContext::vibrationProxy):
3395         * UIProcess/WebProcessProxy.cpp:
3396         (WebKit::WebProcessProxy::didReceiveMessage):
3397         * WebProcess/WebPage/WebPage.cpp:
3398         (WebKit::WebPage::WebPage):
3399
3400 2012-07-19  No'am Rosenthal  <noam.rosenthal@nokia.com>
3401
3402         [Qt] Enable CSS shaders in Qt (software mode)
3403         https://bugs.webkit.org/show_bug.cgi?id=85140
3404
3405         Reviewed by Simon Hausmann.
3406
3407         Add CSSCustomFilterEnabled to QWebPreferences. It's disabled by default.
3408
3409         * UIProcess/API/qt/qwebpreferences.cpp:
3410         (QWebPreferencesPrivate::testAttribute):
3411         (QWebPreferencesPrivate::setAttribute):
3412         * UIProcess/API/qt/qwebpreferences_p_p.h:
3413
3414 2012-07-19  No'am Rosenthal  <noam.rosenthal@nokia.com>
3415
3416         [Qt] Enable CSS shaders in Qt (software mode)
3417         https://bugs.webkit.org/show_bug.cgi?id=85140
3418
3419         Reviewed by Simon Hausmann.
3420
3421         Add CSSCustomFilterEnabled to QWebPreferences. It's disabled by default.
3422
3423         * UIProcess/API/qt/qwebpreferences.cpp:
3424         (QWebPreferencesPrivate::testAttribute):
3425         (QWebPreferencesPrivate::setAttribute):
3426         * UIProcess/API/qt/qwebpreferences_p_p.h:
3427
3428 2012-07-19  Pierre Rossi  <pierre.rossi@gmail.com>
3429
3430         [Qt][WK2] Map the elementRect exposed in QML to the view for popup menu
3431         https://bugs.webkit.org/show_bug.cgi?id=91645
3432
3433         Reviewed by Simon Hausmann.
3434
3435         This way the geometry of the QML item is still sensible even if we panned
3436         and zoomed.
3437
3438         * UIProcess/qt/WebPopupMenuProxyQt.cpp:
3439         (ItemSelectorContextObject):
3440         (WebKit::ItemSelectorContextObject::elementRect):
3441         (WebKit::ItemSelectorContextObject::ItemSelectorContextObject):
3442         (WebKit::WebPopupMenuProxyQt::showPopupMenu):
3443
3444 2012-07-19  Zoltan Nyul  <zoltan.nyul@intel.com>
3445
3446         [EFL][WK2] Using different cache directory for each WTR process
3447         https://bugs.webkit.org/show_bug.cgi?id=91719
3448
3449         Reviewed by Kenneth Rohde Christiansen.
3450
3451         Make sure we return a valid application cache directory in
3452         WebContextEfl.
3453
3454         * UIProcess/efl/WebContextEfl.cpp:
3455         (WebKit::WebContext::applicationCacheDirectory):
3456
3457 2012-07-18  Christophe Dumez  <christophe.dumez@intel.com>
3458
3459         [EFL][WK2] EFL should use DownloadSoup instead of defining DownloadEfl
3460         https://bugs.webkit.org/show_bug.cgi?id=91602
3461
3462         Reviewed by Kenneth Rohde Christiansen.
3463
3464         Reuse WebProcess/Downloads/soup/DownloadSoup.cpp in EFL port
3465         instead of redefining our own DownloadEfl.cpp. The EFL port
3466         is also using libsoup so it is best to avoid code duplication.
3467
3468         * GNUmakefile.am:
3469         * GNUmakefile.list.am:
3470         * PlatformEfl.cmake:
3471         * WebProcess/Downloads/Download.h:
3472         (WebKit):
3473         (Download):
3474         * WebProcess/Downloads/efl/DownloadEfl.cpp: Removed.
3475         * WebProcess/Downloads/efl/DownloadSoupErrorsEfl.cpp: Added.
3476         (WebKit):
3477         (WebKit::platformDownloadNetworkError):
3478         (WebKit::platformDownloadDestinationError):
3479         * WebProcess/Downloads/efl/FileDownloaderEfl.cpp: Removed.
3480         * WebProcess/Downloads/efl/FileDownloaderEfl.h: Removed.
3481         * WebProcess/Downloads/gtk/DownloadSoupErrorsGtk.cpp: Added.
3482         (WebKit):
3483         (WebKit::platformDownloadNetworkError):
3484         (WebKit::platformDownloadDestinationError):
3485         * WebProcess/Downloads/soup/DownloadSoup.cpp: Make the code
3486         compile for other ports than GTK.
3487         (WebKit::DownloadClient::didReceiveResponse):
3488         (WebKit::DownloadClient::didReceiveData):
3489         (WebKit::DownloadClient::didFail):
3490         (WebKit::Download::continueWithoutCredential):
3491         (WebKit):
3492         (WebKit::Download::useCredential):
3493         (WebKit::Download::cancelAuthenticationChallenge):
3494         * WebProcess/Downloads/soup/DownloadSoupErrors.h: Added.
3495         (WebKit):
3496
3497 2012-07-18  Christophe Dumez  <christophe.dumez@intel.com>
3498
3499         [WK2] Add C API for Network Information API
3500         https://bugs.webkit.org/show_bug.cgi?id=90762
3501
3502         Reviewed by Kenneth Rohde Christiansen.
3503
3504         Add C API for WKNetworkInfo and WKNetworkInfoManager
3505         so that they can be used by the client.
3506
3507         * CMakeLists.txt:
3508         * GNUmakefile.list.am:
3509         * Target.pri:
3510         * UIProcess/API/C/WKContext.cpp:
3511         (WKContextGetNetworkInfoManager):
3512         * UIProcess/API/C/WKContext.h:
3513         * UIProcess/API/C/WKNetworkInfo.cpp: Copied from Source/WebKit2/UIProcess/API/C/WKNetworkInfoManager.cpp.
3514         (WKNetworkInfoGetTypeID):
3515         (WKNetworkInfoCreate):
3516         * UIProcess/API/C/WKNetworkInfo.h: Copied from Source/WebKit2/UIProcess/API/C/WKNetworkInfoManager.cpp.
3517         * UIProcess/API/C/WKNetworkInfoManager.cpp:
3518         (WKNetworkInfoManagerSetProvider):
3519         (WKNetworkInfoManagerProviderDidChangeNetworkInformation):