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