Unreviewed, rolling out r135819.
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r135819.
4         http://trac.webkit.org/changeset/135819
5         https://bugs.webkit.org/show_bug.cgi?id=103388
6
7         It broke many tests on Qt and EFL WK2 platforms (Requested by
8         Ossy on #webkit).
9
10         * Shared/WebPageCreationParameters.cpp:
11         (WebKit::WebPageCreationParameters::encode):
12         (WebKit::WebPageCreationParameters::decode):
13         * Shared/WebPageCreationParameters.h:
14         (WebPageCreationParameters):
15         * UIProcess/API/C/WKPage.cpp:
16         (WKPageCopyRelatedPages):
17         * UIProcess/API/C/WKPagePrivate.h:
18         * UIProcess/WebPageProxy.cpp:
19         (WebKit::WebPageProxy::WebPageProxy):
20         (WebKit::WebPageProxy::creationParameters):
21         * UIProcess/WebPageProxy.h:
22         (WebPageProxy):
23         * WebProcess/WebPage/WebPage.cpp:
24         (WebKit::WebPage::WebPage):
25         (WebKit::WebPage::setIsInWindow):
26         * WebProcess/WebPage/WebPage.h:
27         (WebPage):
28         * WebProcess/WebPage/WebPage.messages.in:
29
30 2012-11-27  Kyungjin Kim  <gen.kim@samsung.com>
31
32         [WK2] Expose Accelerated2dCanvas flag set and get in WebKit2
33         https://bugs.webkit.org/show_bug.cgi?id=103008
34
35         Reviewed by Gyuyoung Kim.
36
37         Fix API names in WKPreferences from 2d to 2D.
38
39         * UIProcess/API/C/WKPreferences.cpp:
40         (WKPreferencesSetAccelerated2DCanvasEnabled):
41         (WKPreferencesGetAccelerated2DCanvasEnabled):
42         * UIProcess/API/C/WKPreferencesPrivate.h:
43
44 2012-11-27  Sheriff Bot  <webkit.review.bot@gmail.com>
45
46         Unreviewed, rolling out r135786.
47         http://trac.webkit.org/changeset/135786
48         https://bugs.webkit.org/show_bug.cgi?id=103379
49
50         It made 3 plugin tests timeout on several platforms (Requested
51         by Ossy on #webkit).
52
53         * WebProcess/Plugins/PluginView.cpp:
54         (WebKit::PluginView::performFrameLoadURLRequest):
55         * WebProcess/WebPage/WebPage.cpp:
56         (WebKit::WebPage::loadURLRequest):
57         (WebKit::WebPage::loadData):
58         (WebKit::WebPage::linkClicked):
59
60 2012-11-27  Huang Dongsung  <luxtella@company100.net>
61
62         Coordinated Graphics: Remove the maskTarget member of CoordinatedGraphicsLayer.
63         https://bugs.webkit.org/show_bug.cgi?id=103297
64
65         Reviewed by Noam Rosenthal.
66
67         Remove the maskTarget member of CoordinatedGraphicsLayer, which is not used.
68
69         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
70         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
71         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
72         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
73         (CoordinatedGraphicsLayer):
74
75 2012-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
76
77         Unreviewed, rolling out r135822.
78         http://trac.webkit.org/changeset/135822
79         https://bugs.webkit.org/show_bug.cgi?id=103369
80
81         Undo the revert of r135818, since that change does not affect
82         code used by Chromium (Requested by apavlov on #webkit).
83
84         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
85         (WebCore::CoordinatedGraphicsLayer::setContentsVisible):
86         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
87
88 2012-11-26  Sheriff Bot  <webkit.review.bot@gmail.com>
89
90         Unreviewed, rolling out r135818.
91         http://trac.webkit.org/changeset/135818
92         https://bugs.webkit.org/show_bug.cgi?id=103368
93
94         platform/chromium/virtual/threaded/compositing/visibility
95         /visibility-simple-webgl-layer.html crash on Mountain Lion
96         (Requested by apavlov on #webkit).
97
98         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
99         (WebCore::CoordinatedGraphicsLayer::setContentsVisible):
100         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
101
102 2012-11-26  Dan Bernstein  <mitz@apple.com>
103
104         <rdar://problem/11931191> Entering Tab View after a bunch of YouTube pages were opened in background tabs makes all of them start playing simultaneously
105         https://bugs.webkit.org/show_bug.cgi?id=103358
106
107         Reviewed by Adele Peterson.
108
109         To fix this, this patch adds WKPageSetMayStartMediaWhenInWindow(), which allows the client to
110         prevent media from starting automatically when the view is put in a window.
111
112         * Shared/WebPageCreationParameters.cpp:
113         (WebKit::WebPageCreationParameters::encode): Encode mayStartMediaWhenInWindow.
114         (WebKit::WebPageCreationParameters::decode): Decode mayStartMediaWhenInWindow.
115         * Shared/WebPageCreationParameters.h:
116         (WebPageCreationParameters): Added boolean member mayStartMediaWhenInWindow.
117         * UIProcess/API/C/WKPage.cpp:
118         (WKPageSetMayStartMediaWhenInWindow): Added. Calls through to WebPageProxy.
119         * UIProcess/API/C/WKPagePrivate.h: Declared WKPageSetMayStartMediaWhenInWindow.
120         * UIProcess/WebPageProxy.cpp:
121         (WebKit::WebPageProxy::WebPageProxy): Added initializiation of m_mayStartMediaWhenInWindow
122         to true, the value matching the current behavior.
123         (WebKit::WebPageProxy::setMayStartMediaWhenInWindow): Added. Updates
124         m_mayStartMediaWhenInWindow and sends a message to the Web process to do the same.
125         (WebKit::WebPageProxy::creationParameters): Changed to set mayStartMediaWhenInWindow in the
126         process creation parameters.
127         * UIProcess/WebPageProxy.h:
128         (WebPageProxy): Declared setMayStartMediaWhenInWindow() and added member variable
129         m_mayStartMediaWhenInWindow.
130         * WebProcess/WebPage/WebPage.cpp:
131         (WebKit::WebPage::WebPage): Initialized m_mayStartMediaWhenInWindow from the creation
132         parameters.
133         (WebKit::WebPage::setIsInWindow): Made starting of media upon being added to a window
134         conditional on m_mayStartMediaWhenInWindow.
135         (WebKit::WebPage::setMayStartMediaWhenInWindow): Added. Sets m_mayStartMediaWhenInWindow. If
136         already in a window when changing from false to true, starts m_setCanStartMediaTimer.
137         * WebProcess/WebPage/WebPage.h:
138         (WebPage): Declared setMayStartMediaWhenInWindow() and added member variable m_mayStartMediaWhenInWindow.
139         * WebProcess/WebPage/WebPage.messages.in: Added SetMayStartMediaWhenInWindow.
140
141 2012-11-26  Huang Dongsung  <luxtella@company100.net>
142
143         Coordinated Graphics: Set visibility to a mask layer in GraphicsLayer::setContentsVisible().
144         https://bugs.webkit.org/show_bug.cgi?id=103297
145
146         Reviewed by Noam Rosenthal.
147
148         GraphicsLayerTextureMapper and CoordinatedGraphicsLayer set the visibility of a
149         mask layer in setContentsVisible() and setMaskLayer() like setting a size.
150         This patch is needed because RenderLayerBacking does not set the visibility to a
151         mask layer like the size.
152
153         This patch does not change user experience because an invisible layer is not
154         rendered although the mask layer is rendered. In that sense, it is an
155         optimization patch.
156
157         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
158         (WebCore::CoordinatedGraphicsLayer::setContentsVisible):
159         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
160
161 2012-11-26  Kyungjin Kim  <gen.kim@samsung.com>
162
163         [WK2] Expose Accelerated2dCanvas flag set and get in WebKit2
164         https://bugs.webkit.org/show_bug.cgi?id=103008
165
166         Reviewed by Gyuyoung Kim.
167
168         Add setting APIs for accelerated 2d canvas in WebKit2.
169
170         * Shared/WebPreferencesStore.h:
171         (WebKit):
172         * UIProcess/API/C/WKPreferences.cpp:
173         (WKPreferencesSetAccelerated2dCanvasEnabled):
174         (WKPreferencesGetAccelerated2dCanvasEnabled):
175         * UIProcess/API/C/WKPreferencesPrivate.h:
176         * WebProcess/WebPage/WebPage.cpp:
177         (WebKit::WebPage::updatePreferences):
178
179 2012-11-26  Tim Horton  <timothy_horton@apple.com>
180
181         Ensure that plugins are initialized before using handleEditingCommand/isEditingCommandEnabled/shouldAllowScripting
182         https://bugs.webkit.org/show_bug.cgi?id=103288
183
184         Reviewed by Dan Bernstein.
185
186         Other PluginView methods that use m_plugin null-check m_plugin and check
187         that the plugin has finished initializing before using it. These three
188         should do the same thing.
189
190         * WebProcess/Plugins/PluginView.cpp:
191         (WebKit::PluginView::handleEditingCommand):
192         (WebKit::PluginView::isEditingCommandEnabled):
193         (WebKit::PluginView::shouldAllowScripting):
194
195 2012-11-26  Tim Horton  <timothy_horton@apple.com>
196
197         PDFPlugin: Subframe PDF context menus are in the wrong place
198         https://bugs.webkit.org/show_bug.cgi?id=103284
199         <rdar://problem/12727972>
200
201         Reviewed by Dan Bernstein.
202
203         Event position is in window coordinates, not content coordinates.
204         Since we have no windowToScreen(), use windowToContents and contentsToScreen
205         to get to screen coordinate space, which WKPopupContextMenu wants.
206
207         * WebProcess/Plugins/PDF/PDFPlugin.mm:
208         (WebKit::PDFPlugin::handleContextMenuEvent):
209
210 2012-11-26  Tim Horton  <timothy_horton@apple.com>
211
212         PDFPlugin: Ctrl-click opens a link in a PDF in addition to context menu
213         https://bugs.webkit.org/show_bug.cgi?id=103282
214         <rdar://problem/12710892>
215
216         Reviewed by Dan Bernstein.
217
218         Don't send standard mouse events to PDFKit if a click will also show/hide the context menu.
219
220         * WebProcess/Plugins/PDF/PDFPlugin.mm:
221         (WebKit::PDFPlugin::handleMouseEvent):
222
223 2012-11-26  Ryuan Choi  <ryuan.choi@gmail.com>
224
225         [EFL] Unreviewed build fix after r135767 without Tiled Backing Store
226         https://bugs.webkit.org/show_bug.cgi?id=103320
227
228         Unreviewed build fix.
229
230         * WebProcess/Plugins/Plugin.cpp:
231         * WebProcess/Plugins/Plugin.h:
232         (WebCore):
233
234 2012-11-26  James Simonsen  <simonjam@chromium.org>
235
236         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
237         https://bugs.webkit.org/show_bug.cgi?id=102151
238
239         Reviewed by Adam Barth.
240
241         * WebProcess/Plugins/PluginView.cpp:
242         (WebKit::PluginView::performFrameLoadURLRequest):
243         * WebProcess/WebPage/WebPage.cpp:
244         (WebKit::WebPage::loadURLRequest):
245         (WebKit::WebPage::loadData):
246
247 2012-11-26  Jon Lee  <jonlee@apple.com>
248
249         Pass clicks through to the restarted plugin
250         https://bugs.webkit.org/show_bug.cgi?id=102150
251         <rdar://problem/12695575>
252
253         Reviewed by Simon Fraser.
254
255         Expose convertToRootView() as a public function for all plugins. It converts the click point
256         from local plugin coordinates to root view coordinates. When the events are sent to the
257         plugin, the coordinate gets converted back to the local reference frame.
258         * WebProcess/Plugins/Plugin.cpp:
259         (WebKit::Plugin::convertToRootView): Default implementation should not be reached.
260         * WebProcess/Plugins/Plugin.h: Promote convertToRootView() from NetscapePlugin.h.
261         * WebProcess/Plugins/Netscape/NetscapePlugin.h: An implementation already existed. Make the
262         method virtual.
263         * WebProcess/Plugins/PluginProxy.h:
264         * WebProcess/Plugins/PluginProxy.cpp:
265         (WebKit::PluginProxy::convertToRootView): Apply the transform to the provided point to return
266         a point in root view coordinates.
267
268         Change the threshold state to PlayingWithPendingMouseClick instead of Playing, since that is
269         the earliest state where the plugin is playing.
270         * WebProcess/Plugins/PluginView.cpp: Give the snapshot a little more time to generate.
271         (WebKit::PluginView::didInitializePlugin): When the plugin has initialized, tell the plugin
272         element to dispatch the pending mouse click.
273         (WebKit::PluginView::paint):
274         (WebKit::PluginView::createWebEvent): Helper function to convert a WebCore mouse event to a
275         WebMouseEvent.
276         (WebKit::PluginView::handleEvent): If the event is simulated, there is no source event from
277         the UI process. So we fabricate one based on the simulated event.
278         (WebKit::PluginView::invalidateRect):
279         (WebKit::PluginView::isAcceleratedCompositingEnabled):
280         * WebProcess/Plugins/PluginView.h:
281
282 2012-11-26  Kalev Lember  <kalevlember@gmail.com>
283
284         [GTK] Explicitly link against librt
285         https://bugs.webkit.org/show_bug.cgi?id=103194
286
287         Reviewed by Martin Robinson.
288
289         Fixes broken build with undefined references to shm_open / shm_unlink
290         symbols. SharedMemoryUnix.cpp uses these so we need to link with -lrt.
291
292         * GNUmakefile.am:
293
294 2012-11-26  Christophe Dumez  <christophe.dumez@intel.com>
295
296         [EFL][WK2] Add setting to enable / disable HTML5 local storage functionality
297         https://bugs.webkit.org/show_bug.cgi?id=103224
298
299         Reviewed by Laszlo Gombos.
300
301         Add API to ewk_settings to enable / disable the HTML5
302         local storage functionality. The functionality is
303         enabled by default.
304
305         * UIProcess/API/efl/ewk_settings.cpp:
306         (ewk_settings_local_storage_enabled_set):
307         (ewk_settings_local_storage_enabled_get):
308         * UIProcess/API/efl/ewk_settings.h:
309         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
310         (TEST_F): Add API test for ewk_settings_local_storage_enabled_get / set.
311
312 2012-11-26  Rafael Brandao  <rafael.lobo@openbossa.org>
313
314         [CoordinatedGraphics] Access to LayerTreeRenderer::m_renderQueue should be thread safe
315         https://bugs.webkit.org/show_bug.cgi?id=101341
316
317         Reviewed by Noam Rosenthal.
318
319         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
320         (WebKit::LayerTreeRenderer::syncRemoteContent): The previous swap already clears the
321         vector on m_renderQueue. It is also done in a thread-safe way, so clearing it afterward
322         can be harmful as we've already released the lock.
323
324 2012-11-26  Jaehun Lim  <ljaehun.lim@samsung.com>
325
326         Text Autosizing: Add Text Autosizing APIs for WK2
327         https://bugs.webkit.org/show_bug.cgi?id=100633
328
329         Reviewed by Sam Weinig.
330
331         Implement basic Text Autosizing APIs for WK2.
332         Text Autosizing is a useful feature for mobile browsers. It adjusts the font size
333         of text in wide columns, and makes text more legible.
334         This patch adds setting APIs for Text Autosizing in WK2.
335
336         * Shared/WebPreferencesStore.h:
337         (WebKit):
338         * UIProcess/API/C/WKPreferences.cpp:
339         (WKPreferencesSetTextAutosizingEnabled):
340         (WKPreferencesGetTextAutosizingEnabled):
341         * UIProcess/API/C/WKPreferences.h:
342         * WebProcess/WebPage/WebPage.cpp:
343         (WebKit::WebPage::updatePreferences):
344
345 2012-11-26  Pierre Rossi  <pierre.rossi@gmail.com>
346
347         [Qt] REGRESSION(r135575): It made all tests assert
348         https://bugs.webkit.org/show_bug.cgi?id=103169
349
350         Reviewed by Simon Hausmann.
351
352         This fixes another regression introduced in r135515:
353         initializeWebKitQt shouldn't implicitely call initializeWebCoreQt
354         since it can be called from WebKit2 to initialize QStyle for testing.
355         This would then lead to things such as PlatformStrategies being
356         initialized twice.
357
358         * qt/MainQt.cpp: No need to initialize anything if we're not using QStyle.
359         (WebKit):
360         (main):
361
362 2012-11-26  Huang Dongsung  <luxtella@company100.net>
363
364         REGRESSION(134142): ASSERT(!m_size.isZero()) hits in CoordinatedBackingStore::paintToTextureMapper().
365         https://bugs.webkit.org/show_bug.cgi?id=103217
366
367         Reviewed by Noam Rosenthal.
368
369         It is possible for CoordinatedBackingStore of directed composited image to not
370         have tiles, because CoordinatedImageBacking does not create tiles when the image
371         is invisible.
372
373         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
374         (WebKit::CoordinatedBackingStore::paintToTextureMapper):
375
376 2012-11-25  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
377
378         [WK2] TiledBackingStore: page contents is scaled wrongly
379         https://bugs.webkit.org/show_bug.cgi?id=103090
380
381         Reviewed by Kenneth Rohde Christiansen.
382
383         Before this change the page contents scaling in PageViewportController was
384         defined all the times by m_rawAttributes.initialScale. If initial scale had not
385         been specified in the viewport meta tag it was set to m_minimumScaleToFit inside
386         PageViewportController::didChangeViewportAttributes().
387
388         The problem was that m_minimumScaleToFit could have wrong value as contents size
389         might have not be updated by the time PageViewportController::didChangeViewportAttributes()
390         was invoked.
391
392         The solution is to use m_minimumScaleToFit for contents scaling if initial scale
393         is not specified in the viewport meta tag, as it is updated all the time. 
394         Also a flag m_initiallyFitToViewport is added to PageViewportController to detect
395         whether m_minimumScaleToFit should be used for scaling.
396
397         * UIProcess/PageViewportController.cpp:
398         (WebKit::PageViewportController::PageViewportController):
399         (WebKit::PageViewportController::didChangeContentsSize):
400         (WebKit::PageViewportController::pageTransitionViewportReady):
401         (WebKit::PageViewportController::didChangeViewportAttributes):
402         * UIProcess/PageViewportController.h:
403         (PageViewportController):
404
405 2012-11-24  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
406
407         [EFL][WK2] Stop the mess with DECLARE_EWK_VIEW_CALLBACK arg type definition
408         https://bugs.webkit.org/show_bug.cgi?id=103187
409
410         Reviewed by Kenneth Rohde Christiansen.
411
412         Now the client should pass to DECLARE_EWK_VIEW_CALLBACK macro exacly the 
413         same arg type s/he wants to have in the Ewk_View callback.
414
415         * UIProcess/API/efl/EwkViewCallbacks.h:
416         (EvasObjectHolder):
417         (EwkViewCallbacks::EvasObjectHolder::EvasObjectHolder):
418         (EwkViewCallbacks):
419
420 2012-11-24  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
421
422         [EFL][WK2] Check errors in EwkView callbacks usage at compile time
423         https://bugs.webkit.org/show_bug.cgi?id=103177
424
425         Reviewed by Kenneth Rohde Christiansen.
426
427         Errors in EwkView callbacks usage are now checked at compile time.
428
429         * UIProcess/API/efl/EwkViewCallbacks.h:
430         (CallBack):
431         (EwkViewCallbacks::CallBack::CallBack):
432         (EwkViewCallbacks::CallBack::call):
433
434 2012-11-23  Sheriff Bot  <webkit.review.bot@gmail.com>
435
436         Unreviewed, rolling out r135575.
437         http://trac.webkit.org/changeset/135575
438         https://bugs.webkit.org/show_bug.cgi?id=103169
439
440         It made all tests assert (Requested by Ossy on #webkit).
441
442         * qt/MainQt.cpp:
443         (WebKit):
444         (main):
445
446 2012-11-23  Alexis Menard  <alexis@webkit.org>
447
448         [CSS3 Backgrounds and Borders] Implement new CSS3 background-position parsing.
449         https://bugs.webkit.org/show_bug.cgi?id=102104
450
451         Reviewed by Julien Chaffraix.
452
453         Protect the new feature behind a feature flag.
454
455         * Configurations/FeatureDefines.xcconfig:
456
457 2012-11-23  Huang Dongsung  <luxtella@company100.net>
458
459         Coordinated Graphics: Match the behavior of selfOrAncestorHaveNonAffineTransforms() to its name.
460         https://bugs.webkit.org/show_bug.cgi?id=103097
461
462         Reviewed by Noam Rosenthal.
463
464         CoordinatedGraphicsLayer::selfOrAncestorHaveNonAffineTransforms() does
465         not check its ancestor. This patch makes this method check its ancestor
466         to match its name.
467
468         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
469         (WebCore::CoordinatedGraphicsLayer::selfOrAncestorHaveNonAffineTransforms):
470
471 2012-11-23  Huang Dongsung  <luxtella@company100.net>
472
473         Coordinated Graphics: LayerTreeRenderer::removeTile() does not remove tiles actually.
474         https://bugs.webkit.org/show_bug.cgi?id=103030
475
476         Reviewed by Noam Rosenthal.
477
478         LayerTreeRenderer::removeTile() must add a backing store into
479         m_backingStoresWithPendingBuffers. Otherwise, tiles are not removed.
480
481         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
482         (WebKit::LayerTreeRenderer::removeTile):
483
484 2012-11-23  Huang Dongsung  <luxtella@company100.net>
485
486         [TexMap] Remove dependency of TextureMapperLayer on GraphicsLayerTextureMapper.
487         https://bugs.webkit.org/show_bug.cgi?id=103046
488
489         Reviewed by Noam Rosenthal.
490
491         This patch makes GraphicsLayerTextureMapper create its own backing
492         store. However, LayerTreeRenderer also creates its own backing store. So
493         when LayerTreeRenderer uses GraphicsLayerTextureMapper,
494         LayerTreeRenderer needs GraphicsLayerTextureMapper to not create its own
495         backing store.
496
497         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
498         (WebKit::LayerTreeRenderer::createLayer):
499         (WebKit::LayerTreeRenderer::getBackingStore):
500
501 2012-11-23  Huang Dongsung  <luxtella@company100.net>
502
503         REGRESSION(r135486): ASSERT(isMainThread()) hit in LayerTreeRenderer::setActive(bool)
504         https://bugs.webkit.org/show_bug.cgi?id=103077
505
506         Reviewed by Noam Rosenthal.
507
508         Currently, the painting thread uses purgeGLResources() and setActive().
509         QQuickWebPage::updatePaintNode() indirectly calls both methods after
510         locking the main thread.
511
512         This patch changes two points.
513         1. Remove ASSERT(isMainThread()) in methods that the painting thread can
514         call.
515         2. Make purgeGLResources() and setActive() call methods of
516         LayerTreeCoordinatorProxy via dispatchOnMainThread().
517
518         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
519         (WebKit::LayerTreeRenderer::LayerTreeRenderer):
520         (WebKit::LayerTreeRenderer::renderNextFrame):
521         (WebKit::LayerTreeRenderer::purgeGLResources):
522         (WebKit):
523         (WebKit::LayerTreeRenderer::purgeBackingStores):
524         (WebKit::LayerTreeRenderer::setActive):
525         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
526         (LayerTreeRenderer):
527
528 2012-11-23  Christophe Dumez  <christophe.dumez@intel.com>
529
530         [EFL][WK2][AC] EwkViewImpl::transformToScreen() does not retrieve the Ecore_X_Window properly
531         https://bugs.webkit.org/show_bug.cgi?id=103133
532
533         Reviewed by Kenneth Rohde Christiansen.
534
535         If accelerated compositing is enabled, EwkViewImpl::transformToScreen() should
536         attempt to retrieve the Ecore_X_Window using ecore_evas_gl_x11_window_get() first
537         and only fall back to ecore_evas_software_x11_window_get().
538
539         * UIProcess/API/efl/EwkViewImpl.cpp:
540         (EwkViewImpl::transformToScreen):
541
542 2012-11-23  Wojciech Bielawski  <w.bielawski@samsung.com>
543
544         [WK2][WKTR] WebKitTestRunner needs eventSender.contextClick()
545         https://bugs.webkit.org/show_bug.cgi?id=86881
546
547         Reviewed by Kenneth Rohde Christiansen.
548
549         InjectedBundle API extended to retrieve contextMenu entries names.
550         WebContextMenu exteded with function to retrieve menu items.
551         This API is required by layout tests.
552         Common code in WebContextMenu.cpp moved to separate method menuItemsWithUserData().
553         Behaviour of dependend methods is unchanged.
554
555         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
556         (WKBundlePageGetContextMenuEntriesNames):
557         * WebProcess/InjectedBundle/API/c/WKBundlePage.h:
558         * WebProcess/WebPage/WebContextMenu.cpp:
559         (WebKit::WebContextMenu::items):
560         (WebKit):
561         * WebProcess/WebPage/WebContextMenu.h:
562         (WebContextMenu):
563
564 2012-11-22  Pierre Rossi  <pierre.rossi@gmail.com>
565
566         [Qt] Avoid initializing PlatformStrategies twice.
567
568         Rubber-stamped by Simon Hausmann.
569
570         This fixes another regression introduced in r135515:
571         initializeWebKitQt shouldn't implicitely call initializeWebCoreQt
572         since it can be called from WebKit2 to initialize QStyle for testing.
573         This would then lead to things such as PlatformStrategies being
574         initialized twice.
575
576         * qt/MainQt.cpp: No need to initialize anything if we're not using QStyle.
577         (WebKit):
578         (main):
579
580 2012-11-22  Carlos Garcia Campos  <cgarcia@igalia.com>
581
582         [GTK] Use custom private macros to define GObjects
583         https://bugs.webkit.org/show_bug.cgi?id=99705
584
585         Reviewed by Martin Robinson.
586
587         Add WEBKIT_DEFINE_TYPE macros, similar and compatible with
588         G_DEFINE_TYPE macros, to define GObject types. These macros also
589         define the init and finalize functions reducing the GObject
590         boilerplate and hiding the placement new syntax that causes some
591         confusion. The patch replaces the use of G_DEFINE_TYPE macros by
592         WEBKIT_DEFINE_TYPE ones and removes the init and finalize
593         implementations, moving custom code when needed to the private
594         struct constructor/destructor or constructed/dispose virtual
595         methods when appropriate.
596
597         * UIProcess/API/gtk/WebKitBackForwardList.cpp:
598         * UIProcess/API/gtk/WebKitBackForwardListItem.cpp:
599         (webkit_back_forward_list_item_class_init):
600         * UIProcess/API/gtk/WebKitContextMenu.cpp:
601         (webkitContextMenuDispose):
602         (webkit_context_menu_class_init):
603         * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
604         (_WebKitContextMenuItemPrivate::~_WebKitContextMenuItemPrivate):
605         (_WebKitContextMenuItemPrivate):
606         (webkit_context_menu_item_class_init):
607         * UIProcess/API/gtk/WebKitCookieManager.cpp:
608         (_WebKitCookieManagerPrivate::~_WebKitCookieManagerPrivate):
609         (_WebKitCookieManagerPrivate):
610         * UIProcess/API/gtk/WebKitDownload.cpp:
611         (webkit_download_class_init):
612         * UIProcess/API/gtk/WebKitFaviconDatabase.cpp:
613         (webkit_favicon_database_class_init):
614         * UIProcess/API/gtk/WebKitFileChooserRequest.cpp:
615         (webkitFileChooserRequestDispose):
616         (webkit_file_chooser_request_class_init):
617         * UIProcess/API/gtk/WebKitFindController.cpp:
618         (webkit_find_controller_class_init):
619         * UIProcess/API/gtk/WebKitFormSubmissionRequest.cpp:
620         (webkitFormSubmissionRequestDispose):
621         (webkit_form_submission_request_class_init):
622         * UIProcess/API/gtk/WebKitGeolocationPermissionRequest.cpp:
623         (webkitGeolocationPermissionRequestDispose):
624         (webkit_geolocation_permission_request_class_init):
625         * UIProcess/API/gtk/WebKitHitTestResult.cpp:
626         (webkit_hit_test_result_class_init):
627         * UIProcess/API/gtk/WebKitNavigationPolicyDecision.cpp:
628         (webkit_navigation_policy_decision_class_init):
629         * UIProcess/API/gtk/WebKitPlugin.cpp:
630         (_WebKitPluginPrivate::~_WebKitPluginPrivate):
631         (_WebKitPluginPrivate):
632         (webkit_plugin_class_init):
633         * UIProcess/API/gtk/WebKitPolicyDecision.cpp:
634         (webkitPolicyDecisionDispose):
635         (webkit_policy_decision_class_init):
636         (webkit_policy_decision_use):
637         (webkit_policy_decision_ignore):
638         (webkit_policy_decision_download):
639         * UIProcess/API/gtk/WebKitPrintOperation.cpp:
640         (_WebKitPrintOperationPrivate::~_WebKitPrintOperationPrivate):
641         (_WebKitPrintOperationPrivate):
642         (webkit_print_operation_class_init):
643         * UIProcess/API/gtk/WebKitPrivate.h:
644         * UIProcess/API/gtk/WebKitResponsePolicyDecision.cpp:
645         (webkit_response_policy_decision_class_init):
646         * UIProcess/API/gtk/WebKitSecurityManager.cpp:
647         (webkit_security_manager_class_init):
648         * UIProcess/API/gtk/WebKitSettings.cpp:
649         (_WebKitSettingsPrivate::_WebKitSettingsPrivate):
650         (_WebKitSettingsPrivate):
651         (webkit_settings_class_init):
652         * UIProcess/API/gtk/WebKitURIRequest.cpp:
653         (webkit_uri_request_class_init):
654         * UIProcess/API/gtk/WebKitURIResponse.cpp:
655         (webkit_uri_response_class_init):
656         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
657         (webkit_uri_scheme_request_class_init):
658         * UIProcess/API/gtk/WebKitWebContext.cpp:
659         * UIProcess/API/gtk/WebKitWebInspector.cpp:
660         (_WebKitWebInspectorPrivate::~_WebKitWebInspectorPrivate):
661         (_WebKitWebInspectorPrivate):
662         (webkit_web_inspector_class_init):
663         * UIProcess/API/gtk/WebKitWebResource.cpp:
664         (webkit_web_resource_class_init):
665         * UIProcess/API/gtk/WebKitWebView.cpp:
666         (_WebKitWebViewPrivate::~_WebKitWebViewPrivate):
667         (_WebKitWebViewPrivate):
668         (webkitWebViewConstructed):
669         (webkitWebViewDispose):
670         (webkit_web_view_class_init):
671         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
672         (_WebKitWebViewBasePrivate::_WebKitWebViewBasePrivate):
673         (_WebKitWebViewBasePrivate):
674         (_WebKitWebViewBasePrivate::~_WebKitWebViewBasePrivate):
675         (webkitWebViewBaseDispose):
676         (webkitWebViewBaseConstructed):
677         (webkit_web_view_base_class_init):
678         * UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp:
679         (webkit_web_view_base_accessible_class_init):
680         * UIProcess/API/gtk/WebKitWindowProperties.cpp:
681         (webkit_window_properties_class_init):
682
683 2012-11-22  KwangYong Choi  <ky0.choi@samsung.com>
684
685         [EFL][WK2] Buildfix when ENABLE_NETSCAPE_PLUGIN_API is disabled
686         https://bugs.webkit.org/show_bug.cgi?id=103044
687
688         Reviewed by Kentaro Hara.
689
690         enum ProcessType has PluginProcess only if ENABLE(PLUGIN_PROCESS) is enabled.
691         So, guard PluginProcess with ENABLE(PLUGIN_PROCESS).
692
693         * UIProcess/Launcher/efl/ProcessLauncherEfl.cpp:
694         (WebKit::ProcessLauncher::launchProcess):
695
696 2012-09-26  Gustavo Noronha Silva  <gns@gnome.org>
697
698         [GTK] Split SVG from WebCore to work-around make limitation
699         https://bugs.webkit.org/show_bug.cgi?id=97735
700
701         Reviewed by Carlos Garcia Campos.
702
703         Add a new libtool convenience library, libWebCoreSVG.la, to work-around
704         make limitation when linking libWebCore.
705
706         * GNUmakefile.am: link libWebCoreSVG.la into libwebkit2gtk.
707
708 2012-11-22  Simon Hausmann  <simon.hausmann@digia.com>, Pierre Rossi <pierre.rossi@digia.com>
709
710         [Qt] Separate QWidget dependant code into separate WebKitWidgets static library
711         https://bugs.webkit.org/show_bug.cgi?id=102800
712
713         Reviewed by Tor Arne Vestbø.
714
715         This patch separates code that needs to use QWidget related APIs in
716         WebKit/qt/WebCoreSupport and Api from code that doesn't. This means for
717         example FrameLoaderClientQt.cpp remains in the WebKit1 static library,
718         while qwebpage.cpp and qwebframe.cpp become part of the WebKitWidgets
719         static library. WebKit1 is compiled without QT += widgets and therefore
720         any widget related dependency has been moved "up" and out of WebKit1 into
721         the WebKitWidgets library.
722
723         Between the code in WebKit.a and WebKitWidgets.a new adapters and
724         interfaces have been introduced, such as QWebPageAdapter and
725         QWebFrameAdapter. QWebPageAdapter, when used from WebKit1, is a way to
726         call out into the API layer, implemented by QWebPage (QWebPagePrivate).
727         The other way around if QWebPage wants to access WebCore or
728         WebCoreSupport related functionality, it will go through
729         QWebPageAdapater (as base class). The separation in the direction up
730         into the API layer is complete with this patch, no code in WebKit1
731         depends on QtWidgets. The separation the other way around, code in the
732         API layer not using any WebCore types, is not complete yet.
733
734         Some classes such as QWebSettings, QWebElement or
735         DumpRenderTreeSupportQt remain in WebKit1. While they are API layer,
736         they do not depend on widget related Qt APIs and they make much more
737         use of WebCore internal APIs and therefore are easier to keep in
738         WebKit1.
739
740         In the future we plan to place a real shared library boundary between
741         WebKit1 and WebKitWidgets, by keeping the WebKit1 static library as
742         part of the QtWebKit shared library and by turning the WebKitWidgets
743         static library into a shared one.
744
745         * qt/MainQt.cpp:
746         (WebKit):
747         (main):
748
749 2012-11-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
750
751         [WK2][EFL] No need to remove surface before replacing
752         https://bugs.webkit.org/show_bug.cgi?id=103055
753
754         Rubberstamped by Simon Hausmann.
755
756         The surface is stored in a OwnPtr which automatically
757         frees the existing surface after replacing it with a new
758         one. For some reason, this also fixes resizing issues on
759         my Nvidia driver.
760
761         * UIProcess/API/efl/EwkViewImpl.cpp:
762         (EwkViewImpl::createGLSurface):
763         * UIProcess/API/efl/EwkViewImpl.h:
764         * UIProcess/API/efl/ewk_view.cpp:
765         (_ewk_view_smart_calculate):
766
767 2012-11-22  Christophe Dumez  <christophe.dumez@intel.com>
768
769         WebKitTestRunner needs layoutTestController.setCacheModel
770         https://bugs.webkit.org/show_bug.cgi?id=42684
771
772         Reviewed by Kenneth Rohde Christiansen.
773
774         Add Bundle C API for WebKitTestRunner to set the
775         cache model.
776
777         * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
778         (WKBundleSetCacheModel):
779         * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
780         * WebProcess/InjectedBundle/InjectedBundle.cpp:
781         (WebKit::InjectedBundle::setCacheModel):
782         (WebKit):
783         * WebProcess/InjectedBundle/InjectedBundle.h:
784         (InjectedBundle):
785         * WebProcess/WebProcess.h:
786         (WebProcess):
787
788 2012-11-22  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
789
790         REGRESSION(r135399): Wrong assertion causing an assertion failure: m_rawAttributes.initialScale > 0
791         https://bugs.webkit.org/show_bug.cgi?id=102971
792
793         Reviewed by Kenneth Rohde Christiansen.
794
795         m_rawAttributes.initialScale has to be initialized even if m_minimumScaleToFit hasn't changed
796         it's value.
797
798         * UIProcess/PageViewportController.cpp:
799         (WebKit::PageViewportController::didChangeViewportAttributes):
800
801 2012-11-22  Eunmi Lee  <eunmi15.lee@samsung.com>
802
803         [EFL][WK2] Correct the parameters of WebPlatformTouchPoint.
804         https://bugs.webkit.org/show_bug.cgi?id=102865
805
806         Reviewed by Kenneth Rohde Christiansen.
807
808         Set the screen position as a third parameter and contents position as
809         a fourth parameter of WebPlatformTouchPoint().
810
811         * Shared/efl/WebEventFactory.cpp:
812         (WebKit::WebEventFactory::createWebTouchEvent):
813
814 2012-11-22  Huang Dongsung  <luxtella@company100.net>
815
816         Coordinated Graphics: Remove an invisible TiledBackingStore of CoordinatedGraphicsLayer.
817         https://bugs.webkit.org/show_bug.cgi?id=102894
818
819         Reviewed by Kenneth Rohde Christiansen.
820
821         CoordinatedGraphicsLayer does not need to have a backing store
822         if (!drawsContent() || !contentsAreVisible() || m_size.isEmpty()).
823
824         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
825         (WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
826
827 2012-11-22  Huang Dongsung  <luxtella@company100.net>
828
829         Coordinated Graphics: refactor LayerTreeRenderer.
830         https://bugs.webkit.org/show_bug.cgi?id=103004
831
832         Reviewed by Noam Rosenthal.
833
834         This patch changes two subjects.
835         1. Add ASSERT(isMainThread()) in all methods that are called in the main thread.
836         In addition, make dispatchOnMainThread() use callOnMainThread(const Function<void()>&
837         function) instead of its own implementation.
838
839         2. Remove setAccelerationMode() because we don't use m_accelerationMode member
840         except for the setter.
841
842         * UIProcess/API/efl/EwkViewImpl.cpp:
843         (EwkViewImpl::createGLSurface):
844         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
845         (WebKit):
846         (WebKit::LayerTreeRenderer::dispatchOnMainThread):
847         (WebKit::LayerTreeRenderer::LayerTreeRenderer):
848         (WebKit::LayerTreeRenderer::animationFrameReady):
849         (WebKit::LayerTreeRenderer::updateViewport):
850         (WebKit::LayerTreeRenderer::renderNextFrame):
851         (WebKit::LayerTreeRenderer::purgeGLResources):
852         (WebKit::LayerTreeRenderer::detach):
853         (WebKit::LayerTreeRenderer::setActive):
854         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
855         (LayerTreeRenderer):
856         * UIProcess/efl/PageClientBase.cpp:
857         (WebKit::PageClientBase::createDrawingAreaProxy):
858
859 2012-11-21  Jinwoo Song  <jinwoo7.song@samsung.com>
860
861         [EFL][WK2] Use consistent class names in the clients
862         https://bugs.webkit.org/show_bug.cgi?id=102684
863
864         Reviewed by Gyuyoung Kim.
865
866         WebKit EFL classes do not use '_' since r135117 but '_' is still remained
867         in some clients classes. This patch removed the '_' to make class names
868         to be consistent.
869
870         * UIProcess/efl/ContextHistoryClientEfl.cpp:
871         (WebKit::ContextHistoryClientEfl::didNavigateWithNavigationData):
872         * UIProcess/efl/DownloadManagerEfl.cpp:
873         (WebKit::DownloadManagerEfl::didFail):
874         * UIProcess/efl/FormClientEfl.cpp:
875         (WebKit::FormClientEfl::willSubmitForm):
876         * UIProcess/efl/PageLoadClientEfl.cpp:
877         (WebKit::PageLoadClientEfl::didReceiveIntentForFrame):
878         (WebKit::PageLoadClientEfl::registerIntentServiceForFrame):
879         (WebKit::PageLoadClientEfl::didFailLoadWithErrorForFrame):
880         (WebKit::PageLoadClientEfl::didFailProvisionalLoadWithErrorForFrame):
881         (WebKit::PageLoadClientEfl::didReceiveAuthenticationChallengeInFrame):
882         * UIProcess/efl/PagePolicyClientEfl.cpp:
883         (WebKit::PagePolicyClientEfl::decidePolicyForNavigationAction):
884         (WebKit::PagePolicyClientEfl::decidePolicyForNewWindowAction):
885         * UIProcess/efl/PageUIClientEfl.cpp:
886         (WebKit::PageUIClientEfl::runOpenPanel):
887         * UIProcess/efl/RequestManagerClientEfl.cpp:
888         (WebKit::EwkUrlSchemeHandler::EwkUrlSchemeHandler):
889         (WebKit::RequestManagerClientEfl::didReceiveURIRequest):
890         (WebKit::RequestManagerClientEfl::registerURLSchemeHandler):
891         * UIProcess/efl/RequestManagerClientEfl.h:
892         (RequestManagerClientEfl):
893         * UIProcess/efl/ResourceLoadClientEfl.cpp:
894         (WebKit::ResourceLoadClientEfl::didInitiateLoadForResource):
895         (WebKit::ResourceLoadClientEfl::didSendRequestForResource):
896         (WebKit::ResourceLoadClientEfl::didReceiveResponseForResource):
897         (WebKit::ResourceLoadClientEfl::didFinishLoadForResource):
898         (WebKit::ResourceLoadClientEfl::didFailLoadForResource):
899         * UIProcess/efl/ResourceLoadClientEfl.h:
900         (ResourceLoadClientEfl):
901
902 2012-11-21  Jaehun Lim  <ljaehun.lim@samsung.com>
903
904         [EFL][WK2] Remove #include "ewk_view_private.h" in PageViewportControllerClientEfl.cpp
905         https://bugs.webkit.org/show_bug.cgi?id=102773
906
907         Reviewed by Gyuyoung Kim.
908
909         PageViewportControllerClientEfl.cpp doesn't need to include ewk_view_private.h.
910
911         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
912
913 2012-11-21  Huang Dongsung  <luxtella@company100.net>
914
915         Coordinated Graphics: refactor changing children code in CoordinatedGraphicsLayer.
916         https://bugs.webkit.org/show_bug.cgi?id=102896
917
918         Reviewed by Noam Rosenthal.
919
920         When changing children, we don't need to sync a layer state because
921         there is no more need to send the parent ID every time the layer tree
922         hierarchy changes. So this patch removes didChangeLayerState() in
923         methods which change children.
924
925         In addition, purgeBackingStores() does not need to call didChangeChildren()
926         because purgeBackingStores() does not change children.
927
928         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
929         (WebCore::CoordinatedGraphicsLayer::setChildren):
930         (WebCore::CoordinatedGraphicsLayer::addChild):
931         (WebCore::CoordinatedGraphicsLayer::addChildAtIndex):
932         (WebCore::CoordinatedGraphicsLayer::addChildAbove):
933         (WebCore::CoordinatedGraphicsLayer::addChildBelow):
934         (WebCore::CoordinatedGraphicsLayer::replaceChild):
935         (WebCore::CoordinatedGraphicsLayer::removeFromParent):
936         (WebCore::CoordinatedGraphicsLayer::purgeBackingStores):
937
938 2012-11-21  Huang Dongsung  <luxtella@company100.net>
939
940         REGRESSION(r135212): Fix crash due to an infinite rect.
941         https://bugs.webkit.org/show_bug.cgi?id=102891
942
943         Reviewed by Noam Rosenthal.
944
945         When CoordinatedGraphicsLayer has a 3D transform, tiledBackingStoreVisibleRect()
946         can calculate an infinite rect. However, TiledBackingStore cannot handle the
947         infinite rect. This patch clamps the infinite rect to avoid crash in
948         TiledBackingStore.
949
950         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
951         (WebCore::clampToContentsRectIfRectIsInfinite):
952         (WebCore):
953         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
954
955 2012-11-21  Allan Sandfeld Jensen  <allan.jensen@digia.com>
956
957         Disambiguate innerNodeFramePoint and mainFramePoint
958         https://bugs.webkit.org/show_bug.cgi?id=98139
959
960         Reviewed by Julien Chaffraix.
961
962         Switch to using HitTestResult::innerNodeFrame and HitTestResult::innerNodeFramePoint.
963
964         * WebProcess/WebPage/WebContextMenu.cpp:
965         (WebKit::WebContextMenu::show):
966         * WebProcess/WebPage/mac/WebPageMac.mm:
967         (WebKit::WebPage::characterIndexForPoint):
968
969 2012-11-21  Simon Hausmann  <simon.hausmann@digia.com>
970
971         Unreviewed Qt/Windows build fix.
972         https://bugs.webkit.org/show_bug.cgi?id=102787
973
974         Remove inclusion of QtQml, which drags in QtNetwork, which drags in qnetworksession.h, which
975         defines a member function called "interface". Since windows headers also define a pre-processor
976         macro called "interface", it has to do that. However we have now a dependency between combaseapi.h,
977         which #defines interface and is included earlier (before qnetworksession.h) and shlwapi.h, which _needs_
978         the interface macro and is included afterwards. Since this module-wide QtQml inclusion is unnecessary
979         and just slows down the build, this patch removes it.
980
981         * UIProcess/API/qt/qwebkittest_p.h:
982
983 2012-11-21  Huang Dongsung  <luxtella@company100.net>
984
985         Coordinated Graphics: refactor LayerTreeRenderer::syncRemoteContent().
986         https://bugs.webkit.org/show_bug.cgi?id=102900
987
988         Reviewed by Noam Rosenthal.
989
990         Currently, QQuickWebPage::updatePaintNode() calls
991         LayerTreeRenderer::syncRemoteContent() with locking the main thread.
992         syncRemoteContent() is heavy, so we should not call syncRemoteContent() in
993         updatePaintNode(). Calling syncRemoteContent() in the painting thread is
994         thread-safe because syncRemoteContent() does not access any data
995         structures, which the main thread use.
996
997         After this patch, syncRemoteContent() is used only internally, so
998         syncRemoteContent() becomes private.
999
1000         * UIProcess/API/efl/EwkViewImpl.cpp:
1001         (EwkViewImpl::displayTimerFired):
1002         * UIProcess/API/qt/qquickwebpage.cpp:
1003         (QQuickWebPage::updatePaintNode):
1004         * UIProcess/API/qt/raw/qrawwebview.cpp:
1005         (QRawWebView::paint):
1006         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
1007         (WebKit::LayerTreeRenderer::paintToCurrentGLContext):
1008         (WebKit::LayerTreeRenderer::ensureRootLayer):
1009         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
1010         (LayerTreeRenderer):
1011
1012 2012-11-21  Andras Becsi  <andras.becsi@digia.com>
1013
1014         [WK2] Viewport meta tag broken after r134801
1015         https://bugs.webkit.org/show_bug.cgi?id=102801
1016
1017         Reviewed by Kenneth Rohde Christiansen.
1018
1019         If the initial-scale attribute is not explicitly specified it is left -1 by the
1020         viewport meta algorithm and if the content is not scalable the min and max scales
1021         are restricted by restrictScaleFactorToInitialScaleIfNotUserScalable() which resulted
1022         in negative scales on the UI side.
1023         Make sure that the minimum scale to fit the viewport is calculated before restricting
1024         the scales and use this scale as the initial scale if no explicit initial scale was set.
1025
1026         * UIProcess/PageViewportController.cpp:
1027         (WebKit::PageViewportController::PageViewportController):
1028         (WebKit::PageViewportController::pageTransitionViewportReady):
1029         (WebKit::PageViewportController::didChangeViewportAttributes):
1030         (WebKit::PageViewportController::updateMinimumScaleToFit):
1031
1032 2012-11-21  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1033
1034         [EFL][WK2] Support Context Menu
1035         https://bugs.webkit.org/show_bug.cgi?id=96200
1036
1037         Reviewed by Laszlo Gombos.
1038
1039         This patch supports WK2 EFL's context menu as WK1 implementation because we can't use elementary in inside WebKit.
1040         Only basic functionalities of context menu are supported. Beside this implementation follows GTK's implementation.
1041         For example, ewk_context_menu_new, ewk_context_menu_item_append, ewk_context_menu_item_remove are supported.
1042
1043         In addition, ewk_defines.h file is added in order to support cross inclusion as GTK port.
1044
1045         * PlatformEfl.cmake:
1046         * UIProcess/API/efl/EWebKit2.h:
1047         * UIProcess/API/efl/EwkViewImpl.cpp:
1048         (EwkViewImpl::EwkViewImpl):
1049         (EwkViewImpl::showContextMenu):
1050         (EwkViewImpl::hideContextMenu):
1051         * UIProcess/API/efl/EwkViewImpl.h:
1052         (WebKit):
1053         (EwkViewImpl):
1054         * UIProcess/API/efl/ewk_context_menu.cpp: Added.
1055         (EwkContextMenu::EwkContextMenu):
1056         (EwkContextMenu::~EwkContextMenu):
1057         (EwkContextMenu::hide):
1058         (Ewk_Context_Menu::appendItem):
1059         (Ewk_Context_Menu::removeItem):
1060         (EwkContextMenu::contextMenuItemSelected):
1061         (ewk_context_menu_new):
1062         (ewk_context_menu_new_with_items):
1063         (ewk_context_menu_item_append):
1064         (ewk_context_menu_item_remove):
1065         (ewk_context_menu_hide):
1066         (ewk_context_menu_items_get):
1067         (ewk_context_menu_item_select):
1068         * UIProcess/API/efl/ewk_context_menu.h: Added.
1069         * UIProcess/API/efl/ewk_context_menu_item.cpp: Added.
1070         (EwkContextMenuItem::EwkContextMenuItem):
1071         (ewk_context_menu_item_new):
1072         (ewk_context_menu_item_new_with_submenu):
1073         (ewk_context_menu_item_type_get):
1074         (ewk_context_menu_item_type_set):
1075         (ewk_context_menu_item_action_get):
1076         (ewk_context_menu_item_action_set):
1077         (ewk_context_menu_item_title_get):
1078         (ewk_context_menu_item_title_set):
1079         (ewk_context_menu_item_checked_get):
1080         (ewk_context_menu_item_checked_set):
1081         (ewk_context_menu_item_enabled_get):
1082         (ewk_context_menu_item_enabled_set):
1083         * UIProcess/API/efl/ewk_context_menu_item.h: Added.
1084         * UIProcess/API/efl/ewk_context_menu_item_private.h: Added.
1085         (EwkContextMenuItem):
1086         (EwkContextMenuItem::create):
1087         (EwkContextMenuItem::action):
1088         (EwkContextMenuItem::setAction):
1089         (EwkContextMenuItem::title):
1090         (EwkContextMenuItem::setTitle):
1091         (EwkContextMenuItem::type):
1092         (EwkContextMenuItem::setType):
1093         (EwkContextMenuItem::checked):
1094         (EwkContextMenuItem::setChecked):
1095         (EwkContextMenuItem::enabled):
1096         (EwkContextMenuItem::setEnabled):
1097         * UIProcess/API/efl/ewk_context_menu_private.h: Added.
1098         (WebKit):
1099         (EwkContextMenu):
1100         (EwkContextMenu::create):
1101         (EwkContextMenu::items):
1102         * UIProcess/API/efl/ewk_defines.h: Added.
1103         * UIProcess/API/efl/ewk_view.h:
1104         * UIProcess/API/efl/tests/test_ewk2_context_menu.cpp: Added.
1105         (checkBasicContextMenuItem):
1106         (showContextMenu):
1107         (TEST_F):
1108         * UIProcess/efl/ContextMenuClientEfl.cpp: Added.
1109         (toContextClientEfl):
1110         (ContextMenuClientEfl::ContextMenuClientEfl):
1111         (ContextMenuClientEfl::getContextMenuFromProposedMenu):
1112         * UIProcess/efl/ContextMenuClientEfl.h: Added.
1113         (WebKit):
1114         (ContextMenuClientEfl):
1115         (WebKit::ContextMenuClientEfl::create):
1116         * UIProcess/efl/PageClientBase.cpp:
1117         (WebKit::PageClientBase::createContextMenuProxy):
1118         * UIProcess/efl/WebContextMenuProxyEfl.cpp: Added.
1119         (WebKit):
1120         (WebKit::WebContextMenuProxyEfl::WebContextMenuProxyEfl):
1121         (WebKit::WebContextMenuProxyEfl::~WebContextMenuProxyEfl):
1122         (WebKit::WebContextMenuProxyEfl::showContextMenu):
1123         (WebKit::WebContextMenuProxyEfl::hideContextMenu):
1124         (WebKit::WebContextMenuProxyEfl::contextMenuItemSelected):
1125         * UIProcess/efl/WebContextMenuProxyEfl.h: Added.
1126         (WebKit):
1127         (WebContextMenuProxyEfl):
1128         (WebKit::WebContextMenuProxyEfl::create):
1129
1130 2012-11-21  Jongseok Yang  <js45.yang@samsung.com>
1131
1132         [EFL][WK2] Rename ewk_view_setting_encoding_custom_XXX to ewk_view_custom_encoding_XXX
1133         https://bugs.webkit.org/show_bug.cgi?id=102867
1134
1135         Reviewed by Gyuyoung Kim.
1136
1137         Rename ewk_view_setting_encoding_custom_XXX to ewk_view_custom_encoding_XXX.
1138
1139         ewk_view_setting_encoding_custom_XXX APIs might be misunderstanded as the "setting" word
1140         because ewk_view_setting_encoding_custom_set triggers the "reload" operation.
1141         And ewk_view_setting_XXX is not correct because there is ewk_settings object for settings.
1142
1143         * UIProcess/API/efl/ewk_view.cpp:
1144         (ewk_view_encoding_custom_get):
1145         (ewk_view_encoding_custom_set):
1146         * UIProcess/API/efl/ewk_view.h:
1147         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1148         (TEST_F):
1149
1150 2012-11-20  Jinwoo Song  <jinwoo7.song@samsung.com>
1151
1152         [EFL][WK2] Remove unnecessary #include in API test
1153         https://bugs.webkit.org/show_bug.cgi?id=102674
1154
1155         Reviewed by Laszlo Gombos.
1156
1157         Removed duplicated header files from the API test cases.
1158         Now, EWK2UnitTestBase.h includes the basic header files, 
1159         so test cases may only include this one and add the addtional
1160         header files if necessary.
1161
1162         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
1163         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.h:
1164         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestMain.cpp:
1165         * UIProcess/API/efl/tests/test_ewk2_auth_request.cpp:
1166         * UIProcess/API/efl/tests/test_ewk2_back_forward_list.cpp:
1167         * UIProcess/API/efl/tests/test_ewk2_color_picker.cpp:
1168         * UIProcess/API/efl/tests/test_ewk2_context.cpp:
1169         * UIProcess/API/efl/tests/test_ewk2_context_history_callbacks.cpp:
1170         * UIProcess/API/efl/tests/test_ewk2_cookie_manager.cpp:
1171         * UIProcess/API/efl/tests/test_ewk2_database_manager.cpp:
1172         * UIProcess/API/efl/tests/test_ewk2_download_job.cpp:
1173         * UIProcess/API/efl/tests/test_ewk2_eina_shared_string.cpp:
1174         * UIProcess/API/efl/tests/test_ewk2_favicon_database.cpp:
1175         * UIProcess/API/efl/tests/test_ewk2_file_chooser_request.cpp:
1176         * UIProcess/API/efl/tests/test_ewk2_intents.cpp:
1177         * UIProcess/API/efl/tests/test_ewk2_object.cpp:
1178         * UIProcess/API/efl/tests/test_ewk2_popup_menu.cpp:
1179         * UIProcess/API/efl/tests/test_ewk2_refptr_evas_object.cpp:
1180         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
1181         * UIProcess/API/efl/tests/test_ewk2_storage_manager.cpp:
1182         * UIProcess/API/efl/tests/test_ewk2_text_checker.cpp:
1183         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
1184
1185 2012-11-19  Sam Weinig  <sam@webkit.org>
1186
1187         Simplify WebConnection by removing its underlying CoreIPC::Connection
1188         https://bugs.webkit.org/show_bug.cgi?id=102771
1189
1190         Reviewed by Anders Carlsson.
1191
1192         Instead of having WebConnection subclasses own the CoreIPC::Connection,
1193         move back to having the WebProcess and WebProcessProxy own it (and be
1194         its Connection::Client) and use the new MessageReceiver class to vend
1195         messages to the WebConnection.
1196
1197         * Shared/WebConnection.cpp:
1198         (WebKit::WebConnection::WebConnection):
1199         (WebKit::WebConnection::postMessage):
1200         (WebKit::WebConnection::didClose):
1201         (WebKit::WebConnection::didReceiveMessage):
1202         * Shared/WebConnection.h:
1203         Make WebConnection both a MessageReceiver and MessageSender
1204         and add virtual functions for derived classes to fill in.
1205
1206         * UIProcess/WebConnectionToWebProcess.cpp:
1207         (WebKit::WebConnectionToWebProcess::create):
1208         (WebKit::WebConnectionToWebProcess::WebConnectionToWebProcess):
1209         (WebKit::WebConnectionToWebProcess::invalidate):
1210         (WebKit::WebConnectionToWebProcess::decodeMessageBody):
1211         (WebKit::WebConnectionToWebProcess::connection):
1212         (WebKit::WebConnectionToWebProcess::destinationID):
1213         (WebKit::WebConnectionToWebProcess::hasValidConnection):
1214         * UIProcess/WebConnectionToWebProcess.h:
1215         * UIProcess/WebProcessProxy.cpp:
1216         (WebKit::WebProcessProxy::~WebProcessProxy):
1217         (WebKit::WebProcessProxy::fromConnection):
1218         (WebKit::WebProcessProxy::disconnect):
1219         (WebKit::WebProcessProxy::addMessageReceiver):
1220         (WebKit::WebProcessProxy::didClose):
1221         (WebKit::WebProcessProxy::didReceiveInvalidMessage):
1222         (WebKit::WebProcessProxy::didFinishLaunching):
1223         * UIProcess/WebProcessProxy.h:
1224         (WebKit::WebProcessProxy::connection):
1225         (WebProcessProxy):
1226         (WebKit::WebProcessProxy::webConnection):
1227         * WebProcess/WebConnectionToUIProcess.cpp:
1228         (WebKit::WebConnectionToUIProcess::create):
1229         (WebKit::WebConnectionToUIProcess::WebConnectionToUIProcess):
1230         (WebKit):
1231         (WebKit::WebConnectionToUIProcess::invalidate):
1232         (WebKit::WebConnectionToUIProcess::connection):
1233         (WebKit::WebConnectionToUIProcess::destinationID):
1234         (WebKit::WebConnectionToUIProcess::hasValidConnection):
1235         * WebProcess/WebConnectionToUIProcess.h:
1236         (WebConnectionToUIProcess):
1237         * WebProcess/WebProcess.cpp:
1238         (WebKit::WebProcess::initialize):
1239         (WebKit::WebProcess::terminate):
1240         * WebProcess/WebProcess.h:
1241         (WebKit::WebProcess::connection):
1242         (WebKit::WebProcess::webConnectionToUIProcess):
1243         Move the CoreIPC::Connection back to the processes.
1244
1245 2012-11-20  Jinwoo Song  <jinwoo7.song@samsung.com>
1246
1247         [EFL][WK2] Add Ewk_Window_Features API and related UI callbacks
1248         https://bugs.webkit.org/show_bug.cgi?id=99114
1249
1250         Reviewed by Gyuyoung Kim.
1251
1252         Added Ewk_Window_Features API so that we can create new windows
1253         with various window features such as location, size, toolbar, menubar,
1254         statusbar, locationbar, scrollbar, resizable, and fullscreen.
1255
1256         UI client callbacks related to window features also implemented
1257         so that it is possible to retrieve the window object property values.
1258
1259         * PlatformEfl.cmake:
1260         * UIProcess/API/efl/EWebKit2.h:
1261         * UIProcess/API/efl/EwkViewCallbacks.h:
1262         (EwkViewCallbacks):
1263         * UIProcess/API/efl/EwkViewImpl.cpp:
1264         (EwkViewImpl::windowFeatures):
1265         (EwkViewImpl::createNewPage):
1266         (EwkViewImpl::closePage):
1267         * UIProcess/API/efl/EwkViewImpl.h:
1268         (EwkViewImpl):
1269         * UIProcess/API/efl/ewk_view.h:
1270         * UIProcess/efl/PageUIClientEfl.cpp:
1271         (WebKit::PageUIClientEfl::createNewPage):
1272         (WebKit::PageUIClientEfl::toolbarsAreVisible):
1273         (WebKit):
1274         (WebKit::PageUIClientEfl::setToolbarsAreVisible):
1275         (WebKit::PageUIClientEfl::menuBarIsVisible):
1276         (WebKit::PageUIClientEfl::setMenuBarIsVisible):
1277         (WebKit::PageUIClientEfl::statusBarIsVisible):
1278         (WebKit::PageUIClientEfl::setStatusBarIsVisible):
1279         (WebKit::PageUIClientEfl::isResizable):
1280         (WebKit::PageUIClientEfl::setIsResizable):
1281         (WebKit::PageUIClientEfl::PageUIClientEfl):
1282         * UIProcess/efl/PageUIClientEfl.h:
1283         (PageUIClientEfl):
1284
1285 2012-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1286
1287         Unreviewed, rolling out r135295.
1288         http://trac.webkit.org/changeset/135295
1289         https://bugs.webkit.org/show_bug.cgi?id=102834
1290
1291         This patch causes assertion to some layout tests on chromium
1292         (Requested by jianli on #webkit).
1293
1294         * WebProcess/Plugins/PluginView.cpp:
1295         (WebKit::PluginView::performFrameLoadURLRequest):
1296         * WebProcess/WebPage/WebPage.cpp:
1297         (WebKit::WebPage::loadURLRequest):
1298         (WebKit::WebPage::loadData):
1299         (WebKit::WebPage::linkClicked):
1300
1301 2012-11-20  James Simonsen  <simonjam@chromium.org>
1302
1303         Consolidate FrameLoader::load() into one function taking a FrameLoadRequest
1304         https://bugs.webkit.org/show_bug.cgi?id=102151
1305
1306         Reviewed by Adam Barth.
1307
1308         * WebProcess/Plugins/PluginView.cpp:
1309         (WebKit::PluginView::performFrameLoadURLRequest):
1310         * WebProcess/WebPage/WebPage.cpp:
1311         (WebKit::WebPage::loadURLRequest):
1312         (WebKit::WebPage::loadData):
1313
1314 2012-11-20  peavo@outlook.com  <peavo@outlook.com>
1315
1316         WinCairo build fails to link.
1317         https://bugs.webkit.org/show_bug.cgi?id=102804
1318
1319         Reviewed by Alexey Proskuryakov.
1320
1321         * win/WebKit2CFLite.def:
1322
1323 2012-11-20  Thiago Marcos P. Santos  <thiago.santos@intel.com>
1324
1325         [WTR] WebKitTestRunner should be able to run tests using fixed layout
1326         https://bugs.webkit.org/show_bug.cgi?id=102517
1327
1328         Reviewed by Kenneth Rohde Christiansen.
1329
1330         Update EFL private API so we can create a view with fixed layout. We
1331         can keep this as private as I don't see a real life use case for it
1332         outside WTR and the WebInspector.
1333
1334         * UIProcess/API/C/efl/WKView.cpp:
1335         (WKViewCreate):
1336         (WKViewCreateWithFixedLayout):
1337         * UIProcess/API/C/efl/WKView.h:
1338         * UIProcess/API/efl/ewk_view.cpp:
1339         (ewk_view_base_add):
1340         * UIProcess/API/efl/ewk_view_private.h:
1341         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1342         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1343
1344 2012-11-20  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1345
1346         [Qt] PageViewportControllerClient::didChangeViewportAttributes called twice
1347         https://bugs.webkit.org/show_bug.cgi?id=102790
1348
1349         Reviewed by Kenneth Rohde Christiansen.
1350
1351         Change updateMinimumScaleToFit to no longer call PageViewportControllerClient::didChangeViewportAttributes,
1352         but instead return whether it has changed the minimumScaleToFit.
1353
1354         * UIProcess/PageViewportController.cpp:
1355         (WebKit::PageViewportController::didChangeContentsSize):
1356         (WebKit::PageViewportController::updateMinimumScaleToFit):
1357         * UIProcess/PageViewportController.h:
1358         (PageViewportController):
1359
1360 2012-11-20  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1361
1362         [Qt] No test of double-click to zoom out
1363         https://bugs.webkit.org/show_bug.cgi?id=102810
1364
1365         Reviewed by Kenneth Rohde Christiansen.
1366
1367         Adds tests of zoom-stack behaviour, the ability to restore previous zoom levels. It tests
1368         that zoom out always goes to lower zoom levels.
1369
1370         * UIProcess/API/qt/tests/qmltests/WebView/tst_doubleTapToZoom.qml:
1371
1372 2012-11-20  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1373
1374         [Qt] Large areas highlighted on touch
1375         https://bugs.webkit.org/show_bug.cgi?id=97216
1376
1377         Reviewed by Simon Hausmann.
1378
1379         Restrict highlighting of scripted event-handlers to inline elements only.
1380
1381         * WebProcess/WebPage/WebPage.cpp:
1382         (WebKit::WebPage::highlightPotentialActivation):
1383
1384 2012-11-20  Allan Sandfeld Jensen  <allan.jensen@digia.com>
1385
1386         [Qt] Zoom logic confused by page and pinch resize
1387         https://bugs.webkit.org/show_bug.cgi?id=102803
1388
1389         Reviewed by Kenneth Rohde Christiansen.
1390
1391         Clear the zoom-out stack after page resize, and ensure the zoom logic can still detect
1392         zoom-out and zoom-back when the zoom-out stack is empty.
1393
1394         * UIProcess/qt/PageViewportControllerClientQt.cpp:
1395         (WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):
1396         (WebKit::PageViewportControllerClientQt::clearRelativeZoomState):
1397         (WebKit::PageViewportControllerClientQt::setContentsScale):
1398         (WebKit::PageViewportControllerClientQt::pinchGestureStarted):
1399         (WebKit::PageViewportControllerClientQt::didChangeViewportAttributes):
1400         * UIProcess/qt/PageViewportControllerClientQt.h:
1401         (PageViewportControllerClientQt):
1402
1403 2012-11-19  KyungTae Kim  <ktf.kim@samsung.com>
1404
1405         [WK2] Unused parameters on CoordinatedGraphicsLayer.cpp
1406         https://bugs.webkit.org/show_bug.cgi?id=102760
1407
1408         Reviewed by Laszlo Gombos.
1409
1410         Because the 'platformLayer' parameter is not used when !USE(GRAPHICS_SURFACE),
1411         use UNUSED_PARAM macro to fix build warning -Wunused-parameter
1412
1413         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
1414         (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas):
1415
1416 2012-11-19  Huang Dongsung  <luxtella@company100.net>
1417
1418         Coordinated Graphics: Remove tiles of a layer when they are off the viewport.
1419         https://bugs.webkit.org/show_bug.cgi?id=102313
1420
1421         Reviewed by Noam Rosenthal.
1422
1423         Currently, we don't remove tiles of the layer with the special properties: a
1424         transform animation and non affine transform. If a page has a lot of layers with
1425         a transform animation, we will encounter OOM. So this patch removes the
1426         privilege of the layer.
1427
1428         There are two changes.
1429         1. computeTransformedVisibleRect() calculates a layer transform using the
1430         current local transform which a transform animation applied.
1431         2. tiledBackingStoreVisibleRect() calculates a visible
1432         rect of all layers, even if the layer includes the property: a transform
1433         animation or non affine transform.
1434
1435         Test: animations/animation-offscreen-to-onscreen.html
1436
1437         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
1438         (WebCore::CoordinatedGraphicsLayer::effectiveContentsScale):
1439         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
1440         (WebCore::CoordinatedGraphicsLayer::hasPendingVisibleChanges):
1441         (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
1442         (WebCore::CoordinatedGraphicsLayer::selfOrAncestorHasActiveTransformAnimation):
1443         (WebCore):
1444         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
1445         (CoordinatedGraphicsLayer):
1446
1447 2012-11-19  Huang Dongsung  <luxtella@company100.net>
1448
1449         Coordinated Graphics: Remove a texture if an direct composited image is off the viewport.
1450         https://bugs.webkit.org/show_bug.cgi?id=102449
1451
1452         Reviewed by Noam Rosenthal.
1453
1454         Currently, once uploading textures for composited images, Coordinated Graphics
1455         does not release the textures until all layers using images are destroyed.
1456
1457         This patch removes a texture if we don't need to render an image. This mechanism
1458         is similar how TiledBackingStore removes invisible tiles.
1459
1460         When all layers are invisible, we wait 3 seconds to remove the content
1461         of the image, because we want to prevent a transform animation from
1462         creating and destroying a texture over and over again.
1463
1464         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
1465         (WebKit::CoordinatedBackingStore::removeAllTiles):
1466         (WebKit):
1467         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h:
1468         (CoordinatedBackingStore):
1469         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
1470         (WebKit::LayerTreeCoordinatorProxy::clearImageBackingContents):
1471         (WebKit):
1472         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
1473         (LayerTreeCoordinatorProxy):
1474         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
1475         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
1476         (WebKit::LayerTreeRenderer::clearImageBackingContents):
1477         (WebKit):
1478         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
1479         (LayerTreeRenderer):
1480         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
1481         (WebCore::CoordinatedGraphicsLayer::syncImageBacking):
1482         (WebCore::CoordinatedGraphicsLayer::imageBackingVisible):
1483         (WebCore):
1484         (WebCore::CoordinatedGraphicsLayer::releaseImageBackingIfNeeded):
1485         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
1486         (CoordinatedGraphicsLayer):
1487         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.cpp:
1488         (WebKit::CoordinatedImageBacking::CoordinatedImageBacking):
1489         (WebKit::CoordinatedImageBacking::addHost):
1490         (WebKit::CoordinatedImageBacking::removeHost):
1491         (WebKit::CoordinatedImageBacking::update):
1492         (WebKit):
1493         (WebKit::CoordinatedImageBacking::updateVisibilityIfNeeded):
1494         (WebKit::CoordinatedImageBacking::clearContentsTimerFired):
1495         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.h:
1496         (Coordinator):
1497         (Host):
1498         (CoordinatedImageBacking):
1499         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
1500         (WebKit::LayerTreeCoordinator::clearImageBackingContents):
1501         (WebKit):
1502         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
1503         (LayerTreeCoordinator):
1504
1505 2012-11-19  Sheriff Bot  <webkit.review.bot@gmail.com>
1506
1507         Unreviewed, rolling out r135201.
1508         http://trac.webkit.org/changeset/135201
1509         https://bugs.webkit.org/show_bug.cgi?id=102725
1510
1511         Broke all non-Mac WK2 builds. (Requested by rakuco on
1512         #webkit).
1513
1514         * Shared/mac/PlatformCertificateInfo.h:
1515         * Shared/mac/PlatformCertificateInfo.mm:
1516         (WebKit):
1517         * WebKit2.xcodeproj/project.pbxproj:
1518         * WebProcess/Authentication/AuthenticationManager.cpp:
1519         * WebProcess/Authentication/AuthenticationManager.h:
1520         (AuthenticationManager):
1521         * WebProcess/Authentication/mac/AuthenticationManager.mac.mm: Copied from Source/WebKit2/Shared/mac/PlatformCertificateInfo.mm.
1522         (WebKit):
1523         (WebKit::AuthenticationManager::tryUsePlatformCertificateInfoForChallenge):
1524
1525 2012-11-19  Brady Eidson  <beidson@apple.com>
1526
1527         Move tryUsePlatformCertificateInfoForChallenge from AuthenticationManager to PlatformCertificateInfo.
1528         https://bugs.webkit.org/show_bug.cgi?id=102718
1529
1530         Reviewed by Sam Weinig.
1531
1532         Add the shared PlatformCertificateInfo version of the method:
1533         * Shared/mac/PlatformCertificateInfo.h:
1534         * Shared/mac/PlatformCertificateInfo.mm:
1535         (WebKit::tryUsePlatformCertificateInfoForChallenge):
1536
1537         Use the new shared version:
1538         * WebProcess/Authentication/AuthenticationManager.cpp:
1539
1540         Remove the old member version:
1541         * WebProcess/Authentication/AuthenticationManager.h:
1542         * WebProcess/Authentication/mac/AuthenticationManager.mac.mm: Removed.
1543         * WebKit2.xcodeproj/project.pbxproj:
1544
1545 2012-11-19  Huang Dongsung  <luxtella@company100.net>
1546
1547         Coordinated Graphics: refactor syncCanvas to handle the lifecycle clearly.
1548         https://bugs.webkit.org/show_bug.cgi?id=102664
1549
1550         Reviewed by Noam Rosenthal.
1551
1552         This patch makes sync canvas code handle the lifecycle of the canvas
1553         GraphicsSurface in the similar style to a directly image compositing and
1554         an update atlas code. This patch moves the canvas lifecycle handling
1555         code from LayerTreeRenderer to CoordinatedGraphicsLayer, because
1556         CoordinatedGraphicsLayer knows best when to create and remove the canvas
1557         GraphicsSurface.
1558
1559         After this patch, we can remove the canvas GraphicsSurface in UI Process as soon
1560         as the canvas platform layer is unset in Web Process.
1561
1562         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
1563         (WebKit::LayerTreeCoordinatorProxy::createCanvas):
1564         (WebKit):
1565         (WebKit::LayerTreeCoordinatorProxy::syncCanvas):
1566         (WebKit::LayerTreeCoordinatorProxy::destroyCanvas):
1567         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
1568         (LayerTreeCoordinatorProxy):
1569         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
1570         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
1571         (WebKit::LayerTreeRenderer::createCanvas):
1572         (WebKit):
1573         (WebKit::LayerTreeRenderer::syncCanvas):
1574         (WebKit::LayerTreeRenderer::destroyCanvas):
1575         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
1576         (LayerTreeRenderer):
1577         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
1578         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
1579         (WebCore::CoordinatedGraphicsLayer::setContentsNeedsDisplay):
1580         (WebCore::CoordinatedGraphicsLayer::setContentsToCanvas):
1581         (WebCore::CoordinatedGraphicsLayer::syncCanvas):
1582         (WebCore):
1583         (WebCore::CoordinatedGraphicsLayer::destroyCanvasIfNeeded):
1584         (WebCore::CoordinatedGraphicsLayer::createCanvasIfNeeded):
1585         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
1586         (CoordinatedGraphicsLayerClient):
1587         (CoordinatedGraphicsLayer):
1588         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
1589         (WebKit::LayerTreeCoordinator::createCanvas):
1590         (WebKit):
1591         (WebKit::LayerTreeCoordinator::syncCanvas):
1592         (WebKit::LayerTreeCoordinator::destroyCanvas):
1593         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
1594         (LayerTreeCoordinator):
1595
1596 2012-11-19  Brady Eidson  <beidson@apple.com>
1597
1598         Replace an unneeded #include with a forward declaration after r135179.
1599
1600         Reviewed by nobody, but suggested by Alexey Proskuryakov.
1601
1602         * WebProcess/Network/WebResourceLoader.h:
1603
1604 2012-11-19  Martin Robinson  <mrobinson@igalia.com>
1605
1606         [GTK] REGRESSION(r134955): Plugins are broken due to unresolved symbol in plugin process
1607         https://bugs.webkit.org/show_bug.cgi?id=102613
1608
1609         Unreviewed build fix.
1610
1611         * GNUmakefile.am: Fix the build after one of my previous patches introduced
1612         a link dependency on libsecret.
1613
1614 2012-11-19  Yael Aharon  <yael.aharon@intel.com>
1615
1616         [EFL][WK2] Web Inspector crashes if evas_gl is not available
1617         https://bugs.webkit.org/show_bug.cgi?id=102531
1618
1619         Reviewed by Kenneth Rohde Christiansen.
1620
1621         Teach Web Inspector to fallback gracefully to the software path when evas_gl engine is not available.
1622
1623         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1624         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1625
1626 2012-11-19  Brady Eidson  <beidson@apple.com>
1627
1628         Remove the source files for NetworkRequest from the repository.
1629         They were obsoleted and removed from the project file awhile ago, but I forgot to nuke the source.
1630
1631         Unreviewed.
1632
1633         * NetworkProcess/NetworkRequest.cpp: Removed.
1634         * NetworkProcess/NetworkRequest.h: Removed.
1635
1636 2012-11-19  Brady Eidson  <beidson@apple.com>
1637
1638         Add 64-bit specializations for atomicIncrement and atomicDecrement
1639         https://bugs.webkit.org/show_bug.cgi?id=102702
1640
1641         Reviewed by Eric Carlson.
1642
1643         Move away from the Darwin-specific OSAtomicIncrement64Barrier and use WTF::atomicIncrement instead.
1644
1645         * NetworkProcess/NetworkResourceLoader.cpp:
1646         (WebKit::generateWillSendRequestID): Adopt WTF::atomicIncrement.
1647         (WebKit::generateCanAuthenticateAgainstProtectionSpaceID): Ditto.
1648
1649         * WebProcess/mac/KeychainItemShimMethods.mm:
1650         (WebKit::generateSecKeychainItemRequestID): Ditto.
1651
1652         * WebProcess/mac/SecItemShimMethods.mm:
1653         (WebKit::generateSecItemRequestID): Ditto.
1654
1655 2012-11-19  Brady Eidson  <beidson@apple.com>
1656
1657         NetworkProcess Authentication.
1658         https://bugs.webkit.org/show_bug.cgi?id=102592
1659
1660         Reviewed by Alexey Proskuryakov.
1661
1662         This get's basic HTTP authentication working with the NetworkProcess by dispatching authentication
1663         related events to the WebProcess and relying on existing client APIs to answer them.
1664
1665         Implement ResourceHandleClient methods related to auth challenges and message them to the WebProcess.
1666         Also implement messaging back from the WebProcess to response to those auth challenges:
1667         * NetworkProcess/NetworkResourceLoader.cpp:
1668         (WebKit::willSendRequestResponseMap):
1669         (WebKit::NetworkResourceLoader::willSendRequest):
1670         (WebKit::NetworkResourceLoader::willSendRequestHandled):
1671         (WebKit::NetworkResourceLoader::shouldUseCredentialStorage):
1672         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge):
1673         (WebKit::NetworkResourceLoader::didCancelAuthenticationChallenge):
1674         (WebKit::NetworkResourceLoader::receivedCancellation):
1675         (WebKit::NetworkResourceLoader::receivedAuthenticationCredential):
1676         (WebKit::NetworkResourceLoader::receivedRequestToContinueWithoutAuthenticationCredential):
1677         (WebKit::NetworkResourceLoader::receivedAuthenticationCancellation):
1678         (WebKit::canAuthenticateAgainstProtectionSpaceResponseMap):
1679         (WebKit::generateCanAuthenticateAgainstProtectionSpaceID):
1680         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpace):
1681         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceHandled):
1682         * NetworkProcess/NetworkResourceLoader.h:
1683         * NetworkProcess/NetworkResourceLoader.messages.in:
1684
1685         Implement messaging to response to auth challenges from the NetworkProcess, and implement
1686         AuthenticationClient to response to auth responses from WebProcess clients:
1687         * WebProcess/Network/WebResourceLoader.cpp:
1688         (WebKit::WebResourceLoader::canAuthenticateAgainstProtectionSpace):
1689         (WebKit::WebResourceLoader::didReceiveAuthenticationChallenge):
1690         (WebKit::WebResourceLoader::didCancelAuthenticationChallenge):
1691         (WebKit::WebResourceLoader::receivedCredential):
1692         (WebKit::WebResourceLoader::receivedRequestToContinueWithoutCredential):
1693         (WebKit::WebResourceLoader::receivedCancellation):
1694         * WebProcess/Network/WebResourceLoader.h:
1695         (WebKit::WebResourceLoader::refAuthenticationClient):
1696         (WebKit::WebResourceLoader::derefAuthenticationClient):
1697         * WebProcess/Network/WebResourceLoader.messages.in:
1698
1699         Add a BlockingResponseMap for bool responses, which don't need OwnPtr trickery:
1700         * Shared/BlockingResponseMap.h:
1701         (BlockingBoolResponseMap::waitForResponse):
1702         (BlockingBoolResponseMap::didReceiveResponse):
1703
1704         Add "allowsStoredCredentials" to NetworkResourceLoadParameters so the NetworkProcess
1705         already has the answer when the question is asked:
1706         * Shared/Network/NetworkResourceLoadParameters.cpp:
1707         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
1708         (WebKit::NetworkResourceLoadParameters::encode):
1709         (WebKit::NetworkResourceLoadParameters::decode):
1710         * Shared/Network/NetworkResourceLoadParameters.h:
1711         (WebKit::NetworkResourceLoadParameters::allowStoredCredentials):
1712
1713         Grab the value for "allowsStoredCredentials" when scheduling the load in the NetworkProcess:
1714         * WebProcess/Network/WebResourceLoadScheduler.cpp:
1715         (WebKit::WebResourceLoadScheduler::scheduleLoad):
1716
1717         Add a FIXME for client certs:
1718         * WebProcess/Authentication/mac/AuthenticationManager.mac.mm:
1719         (WebKit::AuthenticationManager::tryUsePlatformCertificateInfoForChallenge):
1720
1721         Add a FIXME for downloads:
1722         * WebProcess/Downloads/mac/DownloadMac.mm:
1723
1724         Remove unused messaging related methods:
1725         * WebProcess/Network/NetworkProcessConnection.cpp:
1726         * WebProcess/Network/NetworkProcessConnection.h:
1727
1728 2012-11-19  Kihong Kwon  <kihong.kwon@samsung.com>
1729
1730         Add PROXIMITY_EVENTS feature
1731         https://bugs.webkit.org/show_bug.cgi?id=102658
1732
1733         Reviewed by Kentaro Hara.
1734
1735         Add PROXIMITY_EVENTS feature to xcode project for WebKit2.
1736
1737         * Configurations/FeatureDefines.xcconfig:
1738
1739 2012-11-19  Christophe Dumez  <christophe.dumez@intel.com>
1740
1741         [EFL][WK2] Fix possible crash in EwkViewImpl::displayTimerFired()
1742         https://bugs.webkit.org/show_bug.cgi?id=102682
1743
1744         Reviewed by Kenneth Rohde Christiansen.
1745
1746         Add NULL check for DrawingAreaProxy and LayerTreeCoordinatorProxy
1747         in displayTimerFired() to avoid crashing if those have already
1748         been destroyed by the time to timer is fired.
1749
1750         * UIProcess/API/efl/EwkViewImpl.cpp:
1751         (EwkViewImpl::layerTreeRenderer):
1752         (EwkViewImpl::displayTimerFired):
1753         (EwkViewImpl::createGLSurface):
1754         (EwkViewImpl::enterAcceleratedCompositingMode):
1755         * UIProcess/API/efl/EwkViewImpl.h:
1756         (WebKit):
1757         (EwkViewImpl):
1758
1759 2012-11-19  Christophe Dumez  <christophe.dumez@intel.com>
1760
1761         [WK2][WTR] Memory leak in TestController::initialize()
1762         https://bugs.webkit.org/show_bug.cgi?id=102616
1763
1764         Reviewed by Kenneth Rohde Christiansen.
1765
1766         Export a few additional WTF symbols for windows port.
1767
1768         * win/WebKit2.def:
1769
1770 2012-11-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1771
1772         [GTK] Test /webkit2/WebKitWebView/create-ready-close is failing after r134586
1773         https://bugs.webkit.org/show_bug.cgi?id=102668
1774
1775         Reviewed by Philippe Normand.
1776
1777         Check only that window properties match when creating a new window
1778         if the expected window properties has been set. Also remove a
1779         FIXME and actually check that x and y are equal to the expected
1780         one, now that the issue is fixed.
1781
1782         * UIProcess/API/gtk/tests/TestWebKitWebView.cpp:
1783
1784 2012-11-19  Balazs Kelemen  <kbalazs@webkit.org>
1785
1786         Unreviewed buildfix.
1787
1788         Fix -Wdelete-non-virtual-destructor error with gcc 4.7 after r135056.
1789
1790         * Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.h:
1791         (WebCustomFilterProgramProxy): This is a polymorphic derived class
1792         so the destructor should be virtual.
1793
1794 2012-11-19  Christophe Dumez  <christophe.dumez@intel.com>
1795
1796         [CG][WK2] Assertion in CoordinatedGraphicsLayer::setContentsToImage(WebCore::Image*)
1797         https://bugs.webkit.org/show_bug.cgi?id=102652
1798
1799         Reviewed by Kenneth Rohde Christiansen.
1800
1801         Handle null return of nativeImageForCurrentFrame similarly to Chromium
1802         port in r130610. This can happen if there is an error early in the
1803         decoding of an image.
1804
1805         Test: Already covered by compositing/images/truncated-direct-png-image.html
1806
1807         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
1808         (WebCore::CoordinatedGraphicsLayer::setContentsToImage):
1809
1810 2012-11-18  Jaehun Lim  <ljaehun.lim@samsung.com>
1811
1812         [EFL][WK2] Remove underscore characters in Ewk class names.
1813         https://bugs.webkit.org/show_bug.cgi?id=102641
1814
1815         Reviewed by Gyuyoung Kim.
1816
1817         WebKit EFL doesn't use '_' in C++ class names.
1818
1819         * UIProcess/API/efl/EwkViewCallbacks.h:
1820         * UIProcess/API/efl/EwkViewImpl.h:
1821         (EwkViewImpl::settings):
1822         (EwkViewImpl::backForwardList):
1823         (EwkViewImpl):
1824         * UIProcess/API/efl/ewk_auth_request.h:
1825         * UIProcess/API/efl/ewk_auth_request_private.h:
1826         * UIProcess/API/efl/ewk_back_forward_list.cpp:
1827         (EwkBackForwardList::EwkBackForwardList):
1828         (EwkBackForwardList::nextItem):
1829         (EwkBackForwardList::previousItem):
1830         (EwkBackForwardList::currentItem):
1831         (EwkBackForwardList::itemAt):
1832         (EwkBackForwardList::size):
1833         (EwkBackForwardList::backList):
1834         (EwkBackForwardList::forwardList):
1835         (EwkBackForwardList::getFromCacheOrCreate):
1836         (EwkBackForwardList::createEinaList):
1837         (EwkBackForwardList::update):
1838         * UIProcess/API/efl/ewk_back_forward_list.h:
1839         * UIProcess/API/efl/ewk_back_forward_list_item.h:
1840         * UIProcess/API/efl/ewk_back_forward_list_item_private.h:
1841         * UIProcess/API/efl/ewk_back_forward_list_private.h:
1842         (EwkBackForwardList::create):
1843         (EwkBackForwardList):
1844         * UIProcess/API/efl/ewk_color_picker.cpp:
1845         (EwkColorPicker::EwkColorPicker):
1846         (EwkColorPicker::setColor):
1847         (EwkColorPicker::color):
1848         * UIProcess/API/efl/ewk_color_picker.h:
1849         * UIProcess/API/efl/ewk_color_picker_private.h:
1850         (EwkColorPicker::create):
1851         (EwkColorPicker):
1852         * UIProcess/API/efl/ewk_context.h:
1853         * UIProcess/API/efl/ewk_context_private.h:
1854         * UIProcess/API/efl/ewk_cookie_manager.cpp:
1855         (EwkCookieManager::EwkCookieManager):
1856         (EwkCookieManager::~EwkCookieManager):
1857         (EwkCookieManager::setPersistentStorage):
1858         (EwkCookieManager::setHTTPAcceptPolicy):
1859         (EwkCookieManager::clearHostnameCookies):
1860         (EwkCookieManager::clearAllCookies):
1861         (EwkCookieManager::watchChanges):
1862         (EwkCookieManager::isWatchingForChanges):
1863         (EwkCookieManager::getHostNamesWithCookies):
1864         (EwkCookieManager::getHTTPAcceptPolicy):
1865         (EwkCookieManager::cookiesDidChange):
1866         * UIProcess/API/efl/ewk_cookie_manager.h:
1867         * UIProcess/API/efl/ewk_cookie_manager_private.h:
1868         (EwkCookieManager::create):
1869         (EwkCookieManager):
1870         * UIProcess/API/efl/ewk_database_manager.cpp:
1871         (EwkDatabaseManager::EwkDatabaseManager):
1872         (EwkDatabaseManager::getDatabaseOrigins):
1873         (EwkDatabaseManager::createOriginList):
1874         * UIProcess/API/efl/ewk_database_manager.h:
1875         * UIProcess/API/efl/ewk_database_manager_private.h:
1876         (EwkDatabaseManager::create):
1877         (EwkDatabaseManager):
1878         * UIProcess/API/efl/ewk_download_job.h:
1879         * UIProcess/API/efl/ewk_download_job_private.h:
1880         * UIProcess/API/efl/ewk_error.cpp:
1881         (EwkError::EwkError):
1882         (EwkError::url):
1883         (EwkError::description):
1884         (EwkError::domain):
1885         (EwkError::errorCode):
1886         (EwkError::isCancellation):
1887         * UIProcess/API/efl/ewk_error.h:
1888         * UIProcess/API/efl/ewk_error_private.h:
1889         (EwkError::create):
1890         (EwkError):
1891         * UIProcess/API/efl/ewk_favicon_database.cpp:
1892         (EwkFaviconDatabase::EwkFaviconDatabase):
1893         (EwkFaviconDatabase::~EwkFaviconDatabase):
1894         (EwkFaviconDatabase::iconURLForPageURL):
1895         (EwkFaviconDatabase::watchChanges):
1896         (EwkFaviconDatabase::unwatchChanges):
1897         (EwkFaviconDatabase::iconForPageURL):
1898         (EwkFaviconDatabase::didChangeIconForPageURL):
1899         (EwkFaviconDatabase::getIconSurfaceSynchronously):
1900         (EwkFaviconDatabase::iconDataReadyForPageURL):
1901         * UIProcess/API/efl/ewk_favicon_database.h:
1902         * UIProcess/API/efl/ewk_favicon_database_private.h:
1903         (EwkFaviconDatabase::create):
1904         (EwkFaviconDatabase):
1905         * UIProcess/API/efl/ewk_file_chooser_request.h:
1906         * UIProcess/API/efl/ewk_file_chooser_request_private.h:
1907         * UIProcess/API/efl/ewk_form_submission_request.h:
1908         * UIProcess/API/efl/ewk_form_submission_request_private.h:
1909         * UIProcess/API/efl/ewk_intent.h:
1910         * UIProcess/API/efl/ewk_intent_private.h:
1911         * UIProcess/API/efl/ewk_intent_service.h:
1912         * UIProcess/API/efl/ewk_intent_service_private.h:
1913         * UIProcess/API/efl/ewk_navigation_data.h:
1914         * UIProcess/API/efl/ewk_navigation_data_private.h:
1915         * UIProcess/API/efl/ewk_navigation_policy_decision.h:
1916         * UIProcess/API/efl/ewk_navigation_policy_decision_private.h:
1917         * UIProcess/API/efl/ewk_object.h:
1918         * UIProcess/API/efl/ewk_object_private.h:
1919         (EwkObject::~EwkObject):
1920         (ewk_object_is_of_type):
1921         (ewk_object_cast_check):
1922         (ewk_object_cast):
1923         * UIProcess/API/efl/ewk_popup_menu.cpp:
1924         (EwkPopupMenu::EwkPopupMenu):
1925         (EwkPopupMenu::~EwkPopupMenu):
1926         (EwkPopupMenu::close):
1927         (EwkPopupMenu::items):
1928         (EwkPopupMenu::selectedIndex):
1929         (EwkPopupMenu::setSelectedIndex):
1930         * UIProcess/API/efl/ewk_popup_menu.h:
1931         * UIProcess/API/efl/ewk_popup_menu_item.cpp:
1932         (EwkPopupMenuItem::EwkPopupMenuItem):
1933         (EwkPopupMenuItem::type):
1934         (EwkPopupMenuItem::textDirection):
1935         (EwkPopupMenuItem::text):
1936         (EwkPopupMenuItem::tooltipText):
1937         (EwkPopupMenuItem::accessibilityText):
1938         (EwkPopupMenuItem::hasTextDirectionOverride):
1939         (EwkPopupMenuItem::isEnabled):
1940         (EwkPopupMenuItem::isLabel):
1941         (EwkPopupMenuItem::isSelected):
1942         * UIProcess/API/efl/ewk_popup_menu_item.h:
1943         * UIProcess/API/efl/ewk_popup_menu_item_private.h:
1944         (EwkPopupMenuItem::create):
1945         (EwkPopupMenuItem):
1946         * UIProcess/API/efl/ewk_popup_menu_private.h:
1947         (EwkPopupMenu::create):
1948         (EwkPopupMenu):
1949         * UIProcess/API/efl/ewk_resource.h:
1950         * UIProcess/API/efl/ewk_resource_private.h:
1951         * UIProcess/API/efl/ewk_security_origin.h:
1952         * UIProcess/API/efl/ewk_security_origin_private.h:
1953         * UIProcess/API/efl/ewk_settings.cpp:
1954         (EwkSettings::preferences):
1955         * UIProcess/API/efl/ewk_settings.h:
1956         * UIProcess/API/efl/ewk_settings_private.h:
1957         (EwkSettings::create):
1958         (EwkSettings::EwkSettings):
1959         * UIProcess/API/efl/ewk_storage_manager.cpp:
1960         (EwkStorageManager::EwkStorageManager):
1961         (EwkStorageManager::getStorageOrigins):
1962         (EwkStorageManager::createOriginList):
1963         * UIProcess/API/efl/ewk_storage_manager.h:
1964         * UIProcess/API/efl/ewk_storage_manager_private.h:
1965         (EwkStorageManager::create):
1966         (EwkStorageManager):
1967         * UIProcess/API/efl/ewk_url_request.h:
1968         * UIProcess/API/efl/ewk_url_request_private.h:
1969         * UIProcess/API/efl/ewk_url_response.h:
1970         * UIProcess/API/efl/ewk_url_response_private.h:
1971         * UIProcess/API/efl/ewk_url_scheme_request.h:
1972         * UIProcess/API/efl/ewk_url_scheme_request_private.h:
1973         * UIProcess/API/efl/tests/test_ewk2_object.cpp:
1974         (TEST_F):
1975
1976 2012-11-18  Yael Aharon  <yael.aharon@intel.com>
1977
1978         [EFL][WK2] Wrong transform when using software path.
1979         https://bugs.webkit.org/show_bug.cgi?id=102549
1980
1981         Reviewed by Kenneth Rohde Christiansen.
1982
1983         When using the software path, our transform is not correct and results 
1984         in drawing the wrong part of the page. This becomes more obvious after scrolling.
1985
1986         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1987         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1988
1989 2012-11-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1990
1991         [WK2] REGRESSION: After web process crash a new web process is created for every existing page
1992         https://bugs.webkit.org/show_bug.cgi?id=102520
1993
1994         Reviewed by Alexey Proskuryakov.
1995
1996         When process model is SharedSecondaryProcess a new shared process
1997         should be created instead of a new process per page.
1998
1999         * UIProcess/WebContext.cpp:
2000         (WebKit::WebContext::ensureSharedWebProcess): Ensure a shared web
2001         process and return it.
2002         (WebKit::WebContext::createWebPage): Update to change in
2003         ensureSharedWebProcess() that returns the shared web process now.
2004         * UIProcess/WebContext.h:
2005         (WebContext): Remove relaunchProcessIfNecessary().
2006         (WebKit::WebContext::sendToAllProcessesRelaunchingThemIfNecessary):
2007         Use ensureSharedWebProcess() instead of relaunchProcessIfNecessary().
2008         * UIProcess/WebPageProxy.cpp:
2009         (WebKit::WebPageProxy::reattachToWebProcess): Ensure a shared web
2010         process for SharedSecondaryProcess model or create a new web
2011         process for multi-process models.
2012
2013 2012-11-17  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
2014
2015         Remove 8-bit related assertion from NetscapePluginModuleX11.
2016         https://bugs.webkit.org/show_bug.cgi?id=102588
2017
2018         Reviewed by Andreas Kling.
2019
2020         Follow-up to r135043: since String::fromUTF8() is not guaranteed
2021         to give us a 16-bit string, the assertion in
2022         truncateToSingleLine() will fail in that case.
2023
2024         This should make the EFL WK2 Debug bot stop failing all
2025         plugin-related tests because "WebKit Test Plugin" is returned as
2026         an 8-bit string.
2027
2028         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2029         (WebKit::truncateToSingleLine):
2030
2031 2012-11-17  Alexandru Chiculita  <achicu@adobe.com>
2032
2033         [Texmap][CSS Shaders] Reuse the precompiled shader for custom filters in TextureMapperGL
2034         https://bugs.webkit.org/show_bug.cgi?id=101801
2035
2036         Reviewed by Noam Rosenthal.
2037
2038         Changed the encoding code for ValidatedCustomFilterOperation to only encode the ID of the program.
2039         LayerTreeCoordinator makes sure to send the programs in full before the encoder runs.
2040         LayerTreeRenderer will maintain a HashMap from these IDs to the real CustomFilterProgram.
2041         The UI process will also receive a message from the WebProcess when the shader is no longer in needed.
2042         LayerTreeRenderer calls the TextureMapper's removeCachedCustomFilterProgram to notify
2043         about the removed CustomFilterProgram.
2044
2045         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2046         (CoreIPC::::encode):
2047         (CoreIPC::::decode):
2048         (CoreIPC):
2049         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
2050         (WebCore):
2051         * Shared/CoordinatedGraphics/WebCustomFilterOperation.h: Added.
2052         (WebCore):
2053         (WebCustomFilterOperation):
2054         (WebCore::WebCustomFilterOperation::create):
2055         (WebCore::WebCustomFilterOperation::programID):
2056         (WebCore::WebCustomFilterOperation::WebCustomFilterOperation):
2057         * Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.h:
2058         (WebKit::WebCustomFilterProgramProxy::create):
2059         (WebKit::WebCustomFilterProgramProxy::WebCustomFilterProgramProxy):
2060         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
2061         (WebKit):
2062         (WebKit::LayerTreeCoordinatorProxy::removeCustomFilterProgram):
2063         (WebKit::LayerTreeCoordinatorProxy::createCustomFilterProgram):
2064         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
2065         (LayerTreeCoordinatorProxy):
2066         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
2067         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2068         (WebKit::LayerTreeRenderer::setLayerFilters):
2069         (WebKit):
2070         (WebKit::LayerTreeRenderer::injectCachedCustomFilterPrograms):
2071         (WebKit::LayerTreeRenderer::createCustomFilterProgram):
2072         (WebKit::LayerTreeRenderer::removeCustomFilterProgram):
2073         (WebKit::LayerTreeRenderer::setLayerAnimations):
2074         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2075         (WebCore):
2076         (LayerTreeRenderer):
2077         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
2078         (WebKit::LayerTreeCoordinator::checkCustomFilterProgramProxies):
2079         (WebKit::LayerTreeCoordinator::removeCustomFilterProgramProxy):
2080         (WebKit::LayerTreeCoordinator::setLayerAnimations):
2081
2082 2012-11-17  Brady Eidson  <beidson@apple.com>
2083
2084         Add an integer identifier field to AuthenticationChallengeBase.
2085         https://bugs.webkit.org/show_bug.cgi?id=102593
2086
2087         Reviewed by Darin Adler.
2088
2089         Properly encode/decode the identifier when sending the challenge over CoreIPC.
2090
2091         * Shared/WebCoreArgumentCoders.cpp:
2092         (CoreIPC::::encode):
2093         (CoreIPC::::decode):
2094
2095 2012-11-17  Balazs Kelemen  <kbalazs@webkit.org>
2096
2097         8bit-unaware String usage in NetscapePluginModuleX11.cpp
2098         https://bugs.webkit.org/show_bug.cgi?id=102482
2099
2100         Reviewed by Michael Saboff.
2101
2102         String::fromUTF8 is not guaranteed to give a 16 bit string.
2103
2104         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
2105         (WebKit::truncateToSingleLine): Do an explicit 16 bit conversion.
2106
2107 2012-11-16  Jaehun Lim  <ljaehun.lim@samsung.com>
2108
2109         [EFL][WK2] Remove unnecessary #include statemtns
2110         https://bugs.webkit.org/show_bug.cgi?id=102577
2111
2112         Reviewed by Anders Carlsson.
2113
2114         ewk_*_private.h doesn't need to include RefCounted.h after Ewk_Object refactoring.
2115
2116         * UIProcess/API/efl/ewk_auth_request_private.h:
2117         * UIProcess/API/efl/ewk_database_manager.cpp:
2118         * UIProcess/API/efl/ewk_file_chooser_request_private.h:
2119         * UIProcess/API/efl/ewk_form_submission_request_private.h:
2120         * UIProcess/API/efl/ewk_navigation_data_private.h:
2121         * UIProcess/API/efl/ewk_resource_private.h:
2122         * UIProcess/API/efl/ewk_storage_manager.cpp:
2123
2124 2012-11-16  Sam Weinig  <weinig@apple.com>
2125
2126         Fix the windows build.
2127
2128         * WebProcess/Cookies/cf/WebCookieManagerCFNet.cpp:
2129         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy):
2130         (WebKit::WebCookieManager::platformGetHTTPCookieAcceptPolicy):
2131         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2132         (WebKit::InjectedBundle::setPrivateBrowsingEnabled):
2133         (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession):
2134         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2135         (WebKit::WebPlatformStrategies::defaultCookieStorage):
2136         * WebProcess/WebCoreSupport/win/WebFrameNetworkingContext.h:
2137         (WebFrameNetworkingContext):
2138         * WebProcess/WebPage/WebPage.cpp:
2139         (WebKit::WebPage::updatePreferences):
2140         * WebProcess/WebPage/win/WebPageWin.cpp:
2141         (WebKit::cachedResponseForURL):
2142         * WebProcess/WebProcess.cpp:
2143         (WebKit::WebProcess::initializeWebProcess):
2144         * WebProcess/win/WebProcessWin.cpp:
2145         (WebKit::WebProcess::platformSetCacheModel):
2146         (WebKit::WebProcess::platformClearResourceCaches):
2147         (WebKit::WebProcess::platformInitializeWebProcess):
2148
2149 2012-11-16  Alec Flett  <alecflett@chromium.org>
2150
2151         Add tests for explicit serialization values
2152         https://bugs.webkit.org/show_bug.cgi?id=96818
2153
2154         Reviewed by Adam Barth.
2155
2156         Add exports for SerializedScriptValue changes.
2157
2158         * win/WebKit2.def:
2159         * win/WebKit2CFLite.def:
2160
2161 2012-11-16  Kiran Muppala  <cmuppala@apple.com>
2162
2163         Set task priority of WebKit2 processes to zero on Mac
2164         https://bugs.webkit.org/show_bug.cgi?id=102567
2165
2166         Reviewed by Mark Rowe.
2167
2168         Explicitly set task priority of WebKit2 processes to zero, to
2169         override automatic priority determination by the system.
2170
2171         * Shared/ChildProcess.cpp:
2172         (WebKit::ChildProcess::ChildProcess): Add call to platformInitialize() and
2173         move MAC specific call to disableProcessSuppression to platformInitialize.
2174         (WebKit::ChildProcess::platformInitialize): Dummy for non MAC platforms.
2175         * Shared/ChildProcess.h:
2176         * Shared/mac/ChildProcessMac.mm:
2177         (WebKit::ChildProcess::platformInitialize): Add call to setpriority().
2178
2179 2012-11-16  Brady Eidson  <beidson@apple.com>
2180
2181         Move resource loader messaging from NetworkConnectionToWebProcess directly to NetworkResourceLoader
2182         https://bugs.webkit.org/show_bug.cgi?id=102570
2183
2184         Reviewed by Alexey Proskuryakov.
2185
2186         This patch adds the ability for WebResourceLoader to message NetworkResourceLoader directly.
2187
2188         This further cements the 1-to-1 relationship between the two classes and makes it easy to add/change
2189         loader related messaging going forward.
2190
2191         Build/infrastructure stuff:
2192         * Platform/CoreIPC/MessageID.h:
2193         * WebKit2.xcodeproj/project.pbxproj:
2194         * DerivedSources.make:
2195
2196         Remove the WillSendRequestHandled message, and forward NetworkResourceLoader messages on to the correct object:
2197         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
2198         (WebKit::NetworkConnectionToWebProcess::didReceiveMessage):
2199         * NetworkProcess/NetworkConnectionToWebProcess.h:
2200         * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
2201
2202         Hang on to a master map of identifiers to NetworkResourceLoaders:
2203         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2204         (WebKit::NetworkResourceLoadScheduler::scheduleResourceLoad):
2205         (WebKit::NetworkResourceLoadScheduler::removeLoadIdentifier):
2206         (WebKit::NetworkResourceLoadScheduler::networkResourceLoaderForIdentifier):
2207         * NetworkProcess/NetworkResourceLoadScheduler.h:
2208
2209         Change the way "willSendRequestHandled" comes in to be a direct message:
2210         * NetworkProcess/NetworkResourceLoader.cpp:
2211         (WebKit::NetworkResourceLoader::willSendRequest):
2212         (WebKit::NetworkResourceLoader::willSendRequestHandled):
2213         * NetworkProcess/NetworkResourceLoader.h:
2214         * NetworkProcess/NetworkResourceLoader.messages.in:
2215
2216         Make WebResourceLoader a MessageSender:
2217         * WebProcess/Network/WebResourceLoader.cpp:
2218         (WebKit::WebResourceLoader::connection):
2219         (WebKit::WebResourceLoader::destinationID):
2220         (WebKit::WebResourceLoader::willSendRequest): Use MessageSender abilities to message the NetworkResourceLoader.
2221         * WebProcess/Network/WebResourceLoader.h:
2222
2223 2012-11-16  Tony Chang  <tony@chromium.org>
2224
2225         Remove ENABLE_CSS_HIERARCHIES since it's no longer in use
2226         https://bugs.webkit.org/show_bug.cgi?id=102554
2227
2228         Reviewed by Andreas Kling.
2229
2230         As mentioned in https://bugs.webkit.org/show_bug.cgi?id=79939#c41 ,
2231         we're going to revist this feature once additional vendor support is
2232         achieved.
2233
2234         * Configurations/FeatureDefines.xcconfig:
2235
2236 2012-11-16  Brent Fulgham  <bfulgham@webkit.org>
2237
2238         [WinCairo] Build correction after r134960.
2239
2240         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:  Stub out
2241         calls to CFNetwork-based implementation.
2242
2243 2012-11-16  Martin Robinson  <mrobinson@igalia.com>
2244
2245         Move authentication dialog to the UIProcess
2246
2247         [GTK] [WebKit2] Move GtkAuthenticationDialog to the UIProcess
2248         https://bugs.webkit.org/show_bug.cgi?id=101843
2249
2250         Reviewed by Gustavo Noronha Silva.
2251
2252         Move the use of GtkAuthenticationDialog to the UIProcess along with the rest of
2253         the GTK+ widgets. This will allow us to to embed the dialog into the WebView
2254         in the future and to test authentication with the WebKit2 C API.
2255
2256         * GNUmakefile.list.am: Add the new class to the source list and remove the
2257         GTK+-only WebFrameLoader implementation file.
2258         * UIProcess/API/gtk/WebKit2GtkAuthenticationDialog.cpp: Added. A subclass of GtkAuthenticationDialog
2259         which uses the WebKit2 classes to do the UIProcess-side authentication.
2260         * UIProcess/API/gtk/WebKit2GtkAuthenticationDialog.h: Added.
2261         * UIProcess/API/gtk/WebKitLoaderClient.cpp: Add a callback for didReceiveAuthenticationChallengeInFrame.
2262         (didReceiveAuthenticationChallengeInFrame): Added.
2263         (attachLoaderClientToView): Use the new callback.
2264         * UIProcess/Authentication/AuthenticationChallengeProxy.h:
2265         (WebKit::AuthenticationChallengeProxy::core): Add this getter for the WebCore class.
2266         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2267         (WebKit::WebFrameLoaderClient::dispatchDidReceiveAuthenticationChallenge): Share the implementation
2268         again.
2269         * WebProcess/WebCoreSupport/gtk/WebFrameLoaderClientGtk.cpp: Removed.
2270
2271 2012-11-15  Alexey Proskuryakov  <ap@apple.com>
2272
2273         Private Browsing is a per-page setting that sets a global value
2274         https://bugs.webkit.org/show_bug.cgi?id=67870
2275
2276         Reviewed by Sam Weinig.
2277
2278         * NetworkProcess/mac/RemoteNetworkingContext.h: Added storageSession().
2279
2280         * NetworkProcess/mac/RemoteNetworkingContext.mm:
2281         (WebKit::RemoteNetworkingContext::storageSession): Just always fall back to default
2282         so far.
2283
2284         * WebKit2.xcodeproj/project.pbxproj: Added WebPlatformStrategiesMac.mm for strategy
2285         code that uses Objective C.
2286
2287         * WebProcess/Cookies/mac/WebCookieManagerMac.mm:
2288         (WebKit::WebCookieManager::platformSetHTTPCookieAcceptPolicy): Use WebFrameNetworkingContext
2289         instead of hardcoding access to sessiosn here.
2290
2291         * WebProcess/InjectedBundle/InjectedBundle.cpp:
2292         (WebKit::InjectedBundle::setPrivateBrowsingEnabled): Create and destroy private
2293         browsing session as appropriate.
2294         (WebKit::InjectedBundle::switchNetworkLoaderToNewTestingSession): Use WebFrameNetworkingContext
2295         instead of hardcoding access to sessiosn here.
2296
2297         * WebProcess/WebCoreSupport/WebPlatformStrategies.h:
2298         * WebProcess/WebCoreSupport/mac/WebPlatformStrategiesMac.mm: Added.
2299         (WebKit::WebPlatformStrategies::defaultCookieStorage):
2300         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
2301         (WebKit::WebPlatformStrategies::defaultCookieStorage):
2302         Implemented defaultCookieStorage() through WebFrameNetworkingContext.
2303
2304         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.h:
2305         * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm:
2306         Moved code for dealing with global contexts here from WebCore.
2307
2308         * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::updatePreferences):
2309         Create a global private session when any page enters private browsing, and
2310         delete it when any page exits private browsing. This is handling a preference
2311         change, so all pages get it once.
2312
2313         * WebProcess/WebPage/mac/WebPageMac.mm:
2314         (WebKit::WebPage::platformHasLocalDataForURL): Use main frame's context.
2315         (WebKit::cachedResponseForURL): Ditto.
2316
2317         * WebProcess/WebProcess.cpp: (WebKit::WebProcess::initializeWebProcess): Updated
2318         to talk to WebFrameNetworkingContext instead of ResourceHandle for global session.
2319
2320 2012-11-16  Viatcheslav Ostapenko  <v.ostapenko@samsung.com>
2321
2322         [EFL][WK2] White flicker when scrolling big pages with dark background on slower hardware.
2323         https://bugs.webkit.org/show_bug.cgi?id=102000
2324
2325         Reviewed by Kenneth Rohde Christiansen.
2326
2327         Add matching of view background color to the page background. This helps to reduce 
2328         visibility of flicker during scrolling/scaling/repainting where page tiles are not
2329         ready. View background color matching is disabled by default and can be enabled 
2330         with new API function ewk_view_draws_page_background_set .
2331         View background color can interfere with semi-transparent pages and should be
2332         disabled by default.
2333         Upstreaming changes by Youngtaeck Song(youngtaeck.song@samsung.com).
2334
2335         * UIProcess/API/efl/EwkViewImpl.cpp:
2336         (EwkViewImpl::EwkViewImpl):
2337         (EwkViewImpl::displayTimerFired):
2338         * UIProcess/API/efl/EwkViewImpl.h:
2339         (EwkViewImpl::setDrawsBackground):
2340         (EwkViewImpl):
2341         * UIProcess/API/efl/ewk_view.cpp:
2342         (ewk_view_draws_page_background_set):
2343         * UIProcess/API/efl/ewk_view.h:
2344         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
2345         (WebKit::LayerTreeCoordinatorProxy::setBackgroundColor):
2346         (WebKit):
2347         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
2348         (LayerTreeCoordinatorProxy):
2349         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
2350         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2351         (WebKit::LayerTreeRenderer::LayerTreeRenderer):
2352         (WebKit::LayerTreeRenderer::paintToCurrentGLContext):
2353         (WebKit::LayerTreeRenderer::paintToGraphicsContext):
2354         (WebKit::LayerTreeRenderer::setBackgroundColor):
2355         (WebKit):
2356         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2357         (LayerTreeRenderer):
2358         (WebKit::LayerTreeRenderer::setDrawsBackground):
2359         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
2360         (WebKit::LayerTreeCoordinator::setBackgroundColor):
2361         (WebKit):
2362         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
2363         (LayerTreeCoordinator):
2364         * WebProcess/WebPage/LayerTreeHost.h:
2365         (WebKit::LayerTreeHost::setBackgroundColor):
2366         * WebProcess/WebPage/WebPage.cpp:
2367         (WebKit::WebPage::WebPage):
2368         (WebKit::WebPage::mainFrameDidLayout):
2369         * WebProcess/WebPage/WebPage.h:
2370         (WebPage):
2371
2372 2012-11-16  Krzysztof Czech  <k.czech@samsung.com>
2373
2374         [WK2][GTK][EFL] Share WebKit2-GTK's WebProcess Accessibility implementation with other WebKit ports.
2375         https://bugs.webkit.org/show_bug.cgi?id=101748
2376
2377         Reviewed by Martin Robinson.
2378
2379         Remove and rename files related to Accessibility from WebPage/gtk to WebPage/atk.
2380
2381         * GNUmakefile.am:
2382         * GNUmakefile.list.am:
2383         * WebProcess/WebPage/atk/WebPageAccessibilityObject.h: Renamed from Source/WebKit2/WebProcess/WebPage/gtk/WebPageAccessibilityObject.h.
2384         (WebKit):
2385         (_WebPageAccessibilityObject):
2386         (_WebPageAccessibilityObjectClass):
2387         * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/gtk/WebPageAccessibilityObject.cpp.
2388         (accessibilityRootObjectWrapper):
2389         (webPageAccessibilityObjectInitialize):
2390         (webPageAccessibilityObjectGetIndexInParent):
2391         (webPageAccessibilityObjectGetNChildren):
2392         (webPageAccessibilityObjectRefChild):
2393         (web_page_accessibility_object_init):
2394         (web_page_accessibility_object_class_init):
2395         (webPageAccessibilityObjectNew):
2396         (webPageAccessibilityObjectRefresh):
2397
2398 2012-11-16  Alexandru Chiculita  <achicu@adobe.com>
2399
2400         [Texmap][CSS Shaders] Make the CustomFilterValidatedProgram maintain the platform compiled program
2401         https://bugs.webkit.org/show_bug.cgi?id=102414
2402
2403         Reviewed by Noam Rosenthal.
2404
2405         This is the first part of shader caching implementation for the Custom Filters in WK2 LayerTreeCoordinator.
2406         In this patch it will just make the LayerTreeCoordinator knowledgeable about the life-time
2407         of the custom filter programs. It can allocate IDs for the filters and it also gets a callback when the
2408         filters are not needed anymore.
2409
2410         The UI process is still recreating the shader every time, but https://bugs.webkit.org/show_bug.cgi?id=101801
2411         will fix that and try to reuse existing custom filters.
2412
2413         * CMakeLists.txt:
2414         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2415         (CoreIPC::::encode):
2416         * Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.cpp: Added.
2417         (WebKit):
2418         (WebKit::WebCustomFilterProgramProxy::~WebCustomFilterProgramProxy):
2419         * Shared/CoordinatedGraphics/WebCustomFilterProgramProxy.h: Added.
2420         (WebKit):
2421         (WebCustomFilterProgramProxyClient):
2422         (WebCustomFilterProgramProxy):
2423         (WebKit::WebCustomFilterProgramProxy::create):
2424         (WebKit::WebCustomFilterProgramProxy::id):
2425         (WebKit::WebCustomFilterProgramProxy::refFromValidatedProgram):
2426         (WebKit::WebCustomFilterProgramProxy::derefFromValidatedProgram):
2427         (WebKit::WebCustomFilterProgramProxy::setClient):
2428         (WebKit::WebCustomFilterProgramProxy::client):
2429         (WebKit::WebCustomFilterProgramProxy::WebCustomFilterProgramProxy):
2430         * Target.pri:
2431         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
2432         (WebKit::LayerTreeCoordinator::~LayerTreeCoordinator):
2433         (WebKit::LayerTreeCoordinator::syncLayerFilters):
2434         (WebKit):
2435         (WebKit::LayerTreeCoordinator::checkCustomFilterProgramProxies):
2436         (WebKit::LayerTreeCoordinator::removeCustomFilterProgramProxy):
2437         (WebKit::LayerTreeCoordinator::disconnectCustomFilterPrograms):
2438         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
2439         (LayerTreeCoordinator):
2440
2441 2012-11-16  Peter Gal  <galpeter@inf.u-szeged.hu>
2442
2443         [Qt][Mac] Fix the build after r124873
2444         https://bugs.webkit.org/show_bug.cgi?id=102475
2445
2446         Reviewed by Noam Rosenthal.
2447
2448         Change the CoordinatedImageBackingID typedef from uintptr_t to uint64_t.
2449
2450         * Shared/WebLayerTreeInfo.h:
2451         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
2452
2453 2012-11-16  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
2454
2455         [EFL][WK2] Unset the tooltip when the web process has crashed
2456         https://bugs.webkit.org/show_bug.cgi?id=102232
2457
2458         Reviewed by Gyuyoung Kim.
2459
2460         Emit 'tooltip,text,unset' signal to unset the tooltip
2461         when the web process has crashed.
2462
2463         * UIProcess/efl/PageClientBase.cpp:
2464         (WebKit::PageClientBase::processDidCrash):
2465
2466 2012-11-16  Helder Correia  <helder.correia@nokia.com>
2467
2468         [CoordGfx] Follow coding style on explicit constructors
2469         https://bugs.webkit.org/show_bug.cgi?id=102451
2470
2471         Reviewed by Noam Rosenthal.
2472
2473         Use the explicit keyword on single argument constructors.
2474
2475         No new tests needed.
2476
2477         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h:
2478         (WebKit::CoordinatedBackingStoreTile::CoordinatedBackingStoreTile):
2479         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.h:
2480         (CoordinatedTileBackend):
2481
2482 2012-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2483
2484         Unreviewed, rolling out r134908.
2485         http://trac.webkit.org/changeset/134908
2486         https://bugs.webkit.org/show_bug.cgi?id=102473
2487
2488         Broke the Apple Windows Debug build. (Requested by dydx on
2489         #webkit).
2490
2491         * win/WebKit2.def:
2492         * win/WebKit2CFLite.def:
2493
2494 2012-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2495
2496         Unreviewed, rolling out r134913.
2497         http://trac.webkit.org/changeset/134913
2498         https://bugs.webkit.org/show_bug.cgi?id=102472
2499
2500         Incorrect fix. (Requested by dydx on #webkit).
2501
2502         * win/WebKit2.def:
2503         * win/WebKit2CFLite.def:
2504
2505 2012-11-16  Daniel Bates  <dbates@webkit.org>
2506
2507         Attempt to fix the Apple Windows Debug build after http://trac.webkit.org/changeset/134908
2508         (https://bugs.webkit.org/show_bug.cgi?id=102354).
2509
2510         Add symbol.
2511
2512         * win/WebKit2.def:
2513         * win/WebKit2CFLite.def:
2514
2515 2012-11-16  KyungTae Kim  <ktf.kim@samsung.com>
2516
2517         [WK2] Bug on ASSERT code in CoordinatedBackingStore.cpp
2518         https://bugs.webkit.org/show_bug.cgi?id=102465
2519
2520         Reviewed by Noam Rosenthal.
2521
2522         The ASSERT code should be fixed because the 'operator>=' is not defined for WebCore::IntSize.
2523
2524         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
2525         (WebKit::CoordinatedBackingStoreTile::swapBuffers):
2526
2527 2012-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2528
2529         Unreviewed, rolling out r134865.
2530         http://trac.webkit.org/changeset/134865
2531         https://bugs.webkit.org/show_bug.cgi?id=102466
2532
2533         Broke the Apple Windows Debug build. (Requested by dydx on
2534         #webkit).
2535
2536         * win/WebKit2.def:
2537         * win/WebKit2CFLite.def:
2538
2539 2012-11-16  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
2540
2541         Avoid copying of ViewportArguments in computeViewportAttributes function
2542         https://bugs.webkit.org/show_bug.cgi?id=102354
2543
2544         Reviewed by Kenneth Rohde Christiansen.
2545
2546         Update exported symbols.
2547
2548         * win/WebKit2.def:
2549         * win/WebKit2CFLite.def:
2550
2551 2012-11-15  Huang Dongsung  <luxtella@company100.net>
2552
2553         Coordinated Graphics: Refactor code related to directly composited images.
2554         https://bugs.webkit.org/show_bug.cgi?id=101023
2555
2556         Reviewed by Noam Rosenthal.
2557
2558         Internal Review by Gwang Yoon Hwang and Jae Hyun Park.
2559
2560         Currently, LayerTreeCoordinator manages composited images using
2561         ShareableBitmap. This patch introduces CoordinatedImageBacking which
2562         plays a role in managing composited images. CoordinatedImageBacking makes us
2563         gather code related to a directly composited image into a single class.
2564
2565         We create only one CoordinatedImageBacking per image. For example, in the leaves
2566         demo, we create only 3 textures of leaves.
2567
2568         * CMakeLists.txt:
2569         * Shared/WebLayerTreeInfo.h:
2570         (WebKit::WebLayerInfo::WebLayerInfo):
2571         (WebLayerInfo):
2572         * Target.pri:
2573         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
2574         (WebKit::CoordinatedBackingStoreTile::swapBuffers):
2575         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp:
2576         (WebKit::LayerTreeCoordinatorProxy::createImageBacking):
2577         (WebKit::LayerTreeCoordinatorProxy::updateImageBacking):
2578         (WebKit):
2579         (WebKit::LayerTreeCoordinatorProxy::removeImageBacking):
2580         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h:
2581         (LayerTreeCoordinatorProxy):
2582         * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in:
2583         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
2584         (WebKit::LayerTreeRenderer::setLayerState):
2585         (WebKit::LayerTreeRenderer::createImageBacking):
2586         (WebKit::LayerTreeRenderer::updateImageBacking):
2587         (WebKit::LayerTreeRenderer::removeImageBacking):
2588         (WebKit):
2589         (WebKit::LayerTreeRenderer::assignImageBackingToLayer):
2590         (WebKit::LayerTreeRenderer::removeReleasedImageBackingsIfNeeded):
2591         (WebKit::LayerTreeRenderer::flushLayerChanges):
2592         (WebKit::LayerTreeRenderer::purgeGLResources):
2593         * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h:
2594         (LayerTreeRenderer):
2595         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
2596         (WebCore::CoordinatedGraphicsLayer::setContentsToImage):
2597         (WebCore::CoordinatedGraphicsLayer::syncImageBacking):
2598         (WebCore::CoordinatedGraphicsLayer::releaseImageBackingIfNeeded):
2599         (WebCore::CoordinatedGraphicsLayer::beginContentUpdate):
2600         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
2601         (CoordinatedGraphicsLayerClient):
2602         (CoordinatedGraphicsLayer):
2603         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.cpp: Added.
2604         (WebKit):
2605         (WebKit::CoordinatedImageBacking::getCoordinatedImageBackingID):
2606         (WebKit::CoordinatedImageBacking::create):
2607         (WebKit::CoordinatedImageBacking::CoordinatedImageBacking):
2608         (WebKit::CoordinatedImageBacking::~CoordinatedImageBacking):
2609         (WebKit::CoordinatedImageBacking::addLayerClient):
2610         (WebKit::CoordinatedImageBacking::removeLayerClient):
2611         (WebKit::CoordinatedImageBacking::markDirty):
2612         (WebKit::CoordinatedImageBacking::update):
2613         (WebKit::CoordinatedImageBacking::releaseSurfaceIfNeeded):
2614         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedImageBacking.h: Added.
2615         (WebCore):
2616         (WebKit):
2617         (CoordinatedImageBacking):
2618         (Coordinator):
2619         (WebKit::CoordinatedImageBacking::id):
2620         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
2621         (WebKit::LayerTreeCoordinator::flushPendingLayerChanges):
2622         (WebKit::LayerTreeCoordinator::createImageBackingIfNeeded):
2623         (WebKit::LayerTreeCoordinator::createImageBacking):
2624         (WebKit::LayerTreeCoordinator::updateImageBacking):
2625         (WebKit::LayerTreeCoordinator::removeImageBacking):
2626         (WebKit::LayerTreeCoordinator::flushPendingImageBackingChanges):
2627         (WebKit::LayerTreeCoordinator::purgeBackingStores):
2628         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h:
2629         (LayerTreeCoordinator):
2630
2631 2012-11-15  Huang Dongsung  <luxtella@company100.net>
2632
2633         Coordinated Graphics: A Minor optimization of calculating transforms in CoordinagedGraphicsLayer.
2634         https://bugs.webkit.org/show_bug.cgi?id=102309
2635
2636         We calculate an inverse transform each tiledBackingStoreVisibleRect() call by
2637         a TiledBackingStore and every tiles.
2638         This patch caches the inverse transform to reuse it.
2639
2640         Reviewed by Noam Rosenthal.
2641
2642         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
2643         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
2644         (WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
2645         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
2646         (CoordinatedGraphicsLayer):
2647
2648 2012-11-15  Alec Flett  <alecflett@chromium.org>
2649
2650         Add tests for explicit serialization values
2651         https://bugs.webkit.org/show_bug.cgi?id=96818
2652
2653         Reviewed by Adam Barth.
2654
2655         Add exports for SerializedScriptValue changes.
2656
2657         * win/WebKit2.def:
2658         * win/WebKit2CFLite.def:
2659
2660 2012-11-15  Gustavo Noronha Silva  <gns@gnome.org>
2661
2662         [GTK] Split WebCore/platform into a separate library
2663         https://bugs.webkit.org/show_bug.cgi?id=94435
2664
2665         Reviewed by Martin Robinson.
2666
2667         More people have been reporting problems when linking WebCore because
2668         the command line limit is being exceeded. Splitting WebCore a bit more
2669         is in order.
2670
2671         * GNUmakefile.am: link libWebCorePlatform into libwebkit2gtk
2672
2673 2012-11-15  Anders Carlsson  <andersca@apple.com>
2674
2675         Consolidate four accelerated compositing WKView methods into a single method
2676         https://bugs.webkit.org/show_bug.cgi?id=102419
2677
2678         Reviewed by Andreas Kling.
2679
2680         Add a single -[WKView _setAcceleratedCompositingModeRootLayer:] method and have
2681         the existing PageClientImpl member functions call it. Also, add a new
2682         PageClient member function, setAcceleratedCompositingRootLayer.
2683
2684         * UIProcess/API/mac/PageClientImpl.h:
2685         * UIProcess/API/mac/PageClientImpl.mm:
2686         (WebKit::PageClientImpl::enterAcceleratedCompositingMode):
2687         (WebKit::PageClientImpl::exitAcceleratedCompositingMode):
2688         (WebKit::PageClientImpl::updateAcceleratedCompositingMode):
2689         (WebKit::PageClientImpl::setAcceleratedCompositingRootLayer):
2690         * UIProcess/API/mac/WKView.mm:
2691         (-[WKView _processDidCrash]):
2692         (-[WKView _setAcceleratedCompositingModeRootLayer:]):
2693         * UIProcess/API/mac/WKViewInternal.h:
2694         * UIProcess/PageClient.h:
2695         * UIProcess/WebPageProxy.h:
2696         * UIProcess/mac/RemoteLayerTreeHost.mm:
2697         (WebKit::RemoteLayerTreeHost::commit):
2698         * UIProcess/mac/WebPageProxyMac.mm:
2699         (WebKit::WebPageProxy::setAcceleratedCompositingRootLayer):
2700
2701 2012-11-15  Rick Byers  <rbyers@chromium.org>
2702
2703         No tests for changing mouse cursors
2704         https://bugs.webkit.org/show_bug.cgi?id=100550
2705
2706         Reviewed by Brent Fulgham.
2707
2708         Add necessary exports for Internals::getCurrentCursorInfo
2709
2710         * win/WebKit2.def:
2711         * win/WebKit2CFLite.def:
2712
2713 2012-11-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2714
2715         Remove initiallyFitToViewport attribute
2716         https://bugs.webkit.org/show_bug.cgi?id=102392
2717
2718         Reviewed by Noam Rosenthal.
2719
2720         Remove the initiallyFitToViewport which shouldn't have been
2721         added in the first place. We now reset userScalable to auto (-1)
2722         in case it was not explicitly set by the web author.
2723
2724         Same behavior, covered by existing tests.
2725
2726         * UIProcess/PageViewportController.cpp:
2727         (WebKit::PageViewportController::PageViewportController):
2728         (WebKit::PageViewportController::pageTransitionViewportReady):
2729         * WebProcess/WebPage/WebPage.cpp:
2730         (WebKit::WebPage::sendViewportAttributesChanged):
2731
2732 2012-11-15  Balazs Kelemen  <kbalazs@webkit.org>
2733
2734         Coordinated Graphics: support the "freeze animations" API
2735         https://bugs.webkit.org/show_bug.cgi?id=100703
2736
2737         Reviewed by Noam Rosenthal.
2738
2739         Implement suspendAnimations and resumeAnimations in CoordinatedGraphicsLayer.
2740
2741         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
2742         (WebCore::CoordinatedGraphicsLayer::suspendAnimations):
2743         (WebCore):
2744         (WebCore::CoordinatedGraphicsLayer::resumeAnimations):
2745         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
2746         (CoordinatedGraphicsLayer):
2747
2748 2012-11-15  Yuni Jeong  <yhnet.jung@samsung.com>
2749
2750         [EFL][WK2] Add APIs to get/set whether scripts can open new windows.
2751         https://bugs.webkit.org/show_bug.cgi?id=102054
2752
2753         Reviewed by Gyuyoung Kim.
2754
2755         Added setting APIs make it possible to allow or prevent scripts from opening new windows automatically.
2756
2757         * UIProcess/API/efl/ewk_settings.cpp:
2758         (ewk_settings_scripts_can_open_windows_set):
2759         (ewk_settings_scripts_can_open_windows_get):
2760         * UIProcess/API/efl/ewk_settings.h:
2761         * UIProcess/API/efl/tests/test_ewk2_settings.cpp:
2762         (TEST_F):
2763
2764 2012-11-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2765
2766         Unreviewed, rolling out r134691, r134703, r134715, r134716,
2767         and r134733.
2768         http://trac.webkit.org/changeset/134691
2769         http://trac.webkit.org/changeset/134703
2770         http://trac.webkit.org/changeset/134715
2771         http://trac.webkit.org/changeset/134716
2772         http://trac.webkit.org/changeset/134733
2773         https://bugs.webkit.org/show_bug.cgi?id=102342
2774
2775         "Broke the Apple Windows Debug and GTK builds." (Requested by
2776         dydx on #webkit).
2777
2778         * win/WebKit2.def:
2779         * win/WebKit2CFLite.def:
2780
2781 2012-11-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2782
2783         Unreviewed, rolling out r134741.
2784         http://trac.webkit.org/changeset/134741
2785         https://bugs.webkit.org/show_bug.cgi?id=102337
2786
2787         "Change is incorrect." (Requested by dydx on #webkit).
2788
2789         * win/WebKit2.def:
2790         * win/WebKit2CFLite.def:
2791
2792 2012-11-14  Daniel Bates  <dbates@webkit.org>
2793
2794         Attempt to fix the Apple Windows Debug and GTK builds after <http://trac.webkit.org/changeset/134691>
2795         (https://bugs.webkit.org/show_bug.cgi?id=96818)
2796
2797         Export symbols of the form:
2798         ?deserializeBuffer@Internals@WebCore[...]
2799         ?serializeObject@Internals@WebCore[...]
2800
2801         * win/WebKit2.def:
2802         * win/WebKit2CFLite.def:
2803
2804 2012-11-14  Alec Flett  <alecflett@chromium.org>
2805
2806         Fix windows build exports (again)
2807         https://bugs.webkit.org/show_bug.cgi?id=102324
2808
2809         Unreviewed windows-only build fix.
2810
2811         Add one more export that was causing unit tests to fail to link.
2812
2813         * win/WebKit2.def:
2814         * win/WebKit2CFLite.def:
2815
2816 2012-11-14  Brent Fulgham  <bfulgham@webkit.org>
2817
2818         [WinCairo] Build correction after r134703.
2819
2820         * win/WebKit2CFLite.def: Add exports to CFLite version of
2821         Windows build to match Alec's last update.
2822
2823 2012-11-14  Alec Flett  <alecflett@chromium.org>
2824
2825         Fix Windows exports for TestWebKit
2826         https://bugs.webkit.org/show_bug.cgi?id=102302
2827
2828         Unreviewed, fixing Safari Win build.
2829
2830         Add missing exports.
2831
2832         * win/WebKit2.def:
2833
2834 2012-11-14  Huang Dongsung  <luxtella@company100.net>
2835
2836         Coordinated Graphics: Remove unused members and methods in CoordinatedGraphicsLayer.
2837         https://bugs.webkit.org/show_bug.cgi?id=102172
2838
2839         Reviewed by Noam Rosenthal.
2840
2841         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
2842         (CoordinatedGraphicsLayer):
2843
2844 2012-11-14  Brady Eidson  <beidson@apple.com>
2845
2846         Move loading responsibility out of WebResourceLoadScheduler into a new WebResourceLoader
2847         https://bugs.webkit.org/show_bug.cgi?id=102259
2848
2849         Reviewed by Alexey Proskuryakov.
2850
2851         Add a new WebResourceLoader message class which allows NetworkResourceLoader to message
2852         WebResourceLoaders directly.
2853
2854         Consolidate the NetworkProcessConnection and WebResourceLoadScheduler messaging responsibilities
2855         directly into WebResourceLoader.
2856
2857         Build-system infrastructure stuff:
2858         * DerivedSources.make:
2859         * Platform/CoreIPC/MessageID.h:
2860         * WebKit2.xcodeproj/project.pbxproj:
2861
2862         Message directly to WebResourceLoader instead of NetworkProcessConnection:
2863         * NetworkProcess/NetworkResourceLoader.cpp:
2864         (WebKit::NetworkResourceLoader::connection):
2865         (WebKit::NetworkResourceLoader::didReceiveResponse):
2866         (WebKit::NetworkResourceLoader::didReceiveData):
2867         (WebKit::NetworkResourceLoader::didFinishLoading):
2868         (WebKit::NetworkResourceLoader::didFail):
2869         (WebKit::NetworkResourceLoader::willSendRequest):
2870         * NetworkProcess/NetworkResourceLoader.h:
2871         (WebKit::NetworkResourceLoader::destinationID):
2872
2873         For now handle the only relevant message class which is the WebResourceLoader class:
2874         * WebProcess/Network/NetworkProcessConnection.cpp:
2875         (WebKit::NetworkProcessConnection::didReceiveMessage):
2876         * WebProcess/Network/NetworkProcessConnection.h:
2877         * WebProcess/Network/NetworkProcessConnection.messages.in:
2878
2879         Allow access to WebResourceLoaders by identifier:
2880         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2881         * WebProcess/Network/WebResourceLoadScheduler.h:
2882         (WebKit::WebResourceLoadScheduler::webResourceLoaderForIdentifier):
2883
2884         Directly handle resource loading messages instead of having WebResourceLoadScheduler do it:
2885         * WebProcess/Network/WebResourceLoader.cpp:
2886         (WebKit::WebResourceLoader::willSendRequest):
2887         (WebKit::WebResourceLoader::didReceiveResponse):
2888         (WebKit::WebResourceLoader::didReceiveData):
2889         (WebKit::WebResourceLoader::didFinishResourceLoad):
2890         (WebKit::WebResourceLoader::didFailResourceLoad):
2891         (WebKit::WebResourceLoader::didReceiveResource):
2892         * WebProcess/Network/WebResourceLoader.h:
2893         * WebProcess/Network/WebResourceLoader.messages.in:
2894
2895 2012-11-14  Andy Estes  <aestes@apple.com>
2896
2897         Fix the Lion build after r134681.
2898
2899         * WebProcess/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm:
2900
2901 2012-11-08  Andy Estes  <aestes@apple.com>
2902
2903         [WebKit2] Need API in UIProcess to enable loading of custom protocols
2904         https://bugs.webkit.org/show_bug.cgi?id=101674
2905
2906         Reviewed by Brady Eidson.
2907
2908         Enable clients of WebKit2 to implement NSURLProtocol subclasses to
2909         control the loading of resources with schemes that WebKit2 cannot
2910         handle natively. Since loading happens in a different process, we
2911         accomplish this by registering a global NSURLProtocol in the web
2912         process and proxying NSURLProtocol and NSURLProtocolClient calls to
2913         the client's NSURLProtocol in the UI process.
2914
2915         * DerivedSources.make: Addded new .messages.in files.
2916         * Platform/CoreIPC/MessageID.h:
2917         * Shared/WebProcessCreationParameters.cpp: Added the list of supported schemes.
2918         (WebKit::WebProcessCreationParameters::encode):
2919         (WebKit::WebProcessCreationParameters::decode):
2920         * Shared/WebProcessCreationParameters.h:
2921         * UIProcess/API/mac/WKBrowsingContextController.h:
2922         * UIProcess/API/mac/WKBrowsingContextController.mm:
2923         (+[WKBrowsingContextController registerSchemeForCustomProtocol:]):
2924         Added a class method where a client can register a scheme that it supports.
2925         (+[WKBrowsingContextController unregisterSchemeForCustomProtocol:]):
2926         Added a class method where a client can unregister a scheme that it no longer supports.
2927         (+[WKBrowsingContextController customSchemes]):
2928         * UIProcess/API/mac/WKBrowsingContextControllerInternal.h:
2929         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.h: Added.
2930         * UIProcess/Network/CustomProtocols/CustomProtocolManagerProxy.messages.in: Added.
2931         * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm: Added.
2932
2933         Implemented an NSURLConnectionDelegate that proxies messages to the
2934         equivalent NSURLProtocolClient in the web process:
2935         (-[WKCustomProtocolLoader initWithCustomProtocolManagerProxy:customProtocolID:request:connection:]):
2936         (-[WKCustomProtocolLoader dealloc]):
2937         (-[WKCustomProtocolLoader connection:didFailWithError:]):
2938         (-[WKCustomProtocolLoader connection:willCacheResponse:]):
2939         (-[WKCustomProtocolLoader connection:didReceiveResponse:]):
2940         (-[WKCustomProtocolLoader connection:didReceiveData:]):
2941         (-[WKCustomProtocolLoader connection:willSendRequest:redirectResponse:]):
2942         (-[WKCustomProtocolLoader connectionDidFinishLoading:]):
2943
2944         Implemented a proxy that recieves -startLoading and -stopLoading
2945         messages from the NSURLProtocol in the web process and starts an
2946         NSURLConnection in the UI process, which will instantiate the client's NSURLProtocol:
2947         (WebKit::CustomProtocolManagerProxy::CustomProtocolManagerProxy):
2948         (WebKit::CustomProtocolManagerProxy::didReceiveMessage):
2949         (WebKit::CustomProtocolManagerProxy::startLoading):
2950         (WebKit::CustomProtocolManagerProxy::stopLoading):
2951
2952         * UIProcess/WebContext.h: Declared strings that store names of
2953         NSNotifications used for scheme registration in the UI process.
2954         * UIProcess/WebProcessProxy.cpp:
2955         (WebKit::WebProcessProxy::WebProcessProxy):
2956         (WebKit::WebProcessProxy::didReceiveMessage): Forwarded messages to the
2957         CustomProtocolManagerProxy.
2958         * UIProcess/WebProcessProxy.h:
2959         * UIProcess/mac/WebContextMac.mm:
2960         (WebKit::WebContext::platformInitializeWebProcess): Added the currently
2961         registered schemes to the WebProcessCreationParameters and register
2962         NSNotification observers for new scheme registration that forwards to
2963         the context's web processes.
2964         * WebKit2.xcodeproj/project.pbxproj:
2965         * WebKit2Prefix.h: Enabled the CUSTOM_PROTOCOLS macro for the Mac.
2966         * WebProcess/Network/CustomProtocols/CustomProtocolManager.h: Added.
2967         * WebProcess/Network/CustomProtocols/CustomProtocolManager.messages.in: Added.
2968         * WebProcess/Network/CustomProtocols/mac/CustomProtocolManagerMac.mm: Added.
2969         (generateCustomProtocolID): Generate a per-WebProcess unique ID.
2970
2971         Implemented a global NSURLProtocol that claims to support all schemes
2972         registered in the UI process. When NSURLConnection calls -startLoading
2973         and -stopLoading, we forward these messages to the client's NSURLProtocol
2974         in the UI process:
2975         (+[WKCustomProtocol canInitWithRequest:]):
2976         (+[WKCustomProtocol canonicalRequestForRequest:]):
2977         (+[WKCustomProtocol requestIsCacheEquivalent:toRequest:]):
2978         (-[WKCustomProtocol initWithRequest:cachedResponse:client:]):
2979         (-[WKCustomProtocol startLoading]):
2980         (-[WKCustomProtocol stopLoading]):
2981
2982         Implemented a manager that receives NSURLConnectionDelegate messages
2983         forwarded from the UI process and passes them to the global NSURLProtocol's NSURLProtocolClient:
2984         (WebKit::CustomProtocolManager::shared):
2985         (WebKit::CustomProtocolManager::registerCustomProtocolClass):
2986         (WebKit::CustomProtocolManager::addCustomProtocol):
2987         (WebKit::CustomProtocolManager::removeCustomProtocol):
2988         (WebKit::CustomProtocolManager::registerScheme):
2989         (WebKit::CustomProtocolManager::unregisterScheme):
2990         (WebKit::CustomProtocolManager::supportsScheme):
2991         (WebKit::CustomProtocolManager::didReceiveMessage):
2992         (WebKit::CustomProtocolManager::didFailWithError):
2993         (WebKit::CustomProtocolManager::didLoadData):
2994         (WebKit::CustomProtocolManager::didReceiveResponse):
2995         (WebKit::CustomProtocolManager::didFinishLoading):
2996         (WebKit::CustomProtocolManager::protocolForID):
2997
2998         * WebProcess/WebProcess.cpp:
2999         (WebKit::WebProcess::didReceiveMessage): Forwarded messages to the
3000         shared CustomProtocolManager.
3001         (WebKit::WebProcess::registerSchemeForCustomProtocol): Register a
3002         scheme received from the UI process.
3003         (WebKit::WebProcess::unregisterSchemeForCustomProtocol): Unregister a
3004         scheme received from the UI process.
3005         * WebProcess/WebProcess.h:
3006         * WebProcess/WebProcess.messages.in: Declared messages for passing
3007         supported schemes from the UI process the web process.
3008         * WebProcess/mac/WebProcessMac.mm:
3009         (WebKit::WebProcess::platformInitializeWebProcess): Register the
3010         schemes contained in the WebProcessCreationParameters.
3011
3012 2012-11-14  Helder Correia  <helder.correia@nokia.com>
3013
3014         [TexMap][Cairo] Accelerated compositing debug visuals
3015         https://bugs.webkit.org/show_bug.cgi?id=101883
3016
3017         Reviewed by Kenneth Rohde Christiansen.
3018
3019         No new tests, just introducing a debug feature.
3020
3021         Add a Cairo implementation to complement the patch from bug 90116
3022         (http://trac.webkit.org/changeset/122275).
3023
3024         For this feature to be enabled, the environment variable
3025         WEBKIT_SHOW_COMPOSITING_DEBUG_VISUALS must be set to 1. Once enabled,
3026         both repaint counters and tile borders will be painted.
3027
3028         A Cairo-specific drawRepaintCounter() implementation was added to
3029         TextureMapperGL. A cairo_surface_t is used as scratch buffer to paint
3030         the counters. It is then uploaded to a BitmapTexture acquired
3031         from the pool and finally draw by TextureMapper. The actual compositing
3032         happens inside LayerBackingStore::paintToTextureMapper(). Each
3033         LayerBackingStoreTile has a repaint counter which gets incremented in
3034         LayerBackingStore::updateTile().
3035
3036         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
3037         (WebKit::shouldShowTileDebugVisuals):
3038
3039 2012-11-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
3040
3041         Coordinated Graphics: Rename m_CoordinatedGraphicsLayerClient to m_coordinator
3042         https://bugs.webkit.org/show_bug.cgi?id=102133
3043
3044         Renamed m_CoordinatedGraphicsLayerClient to m_coordinator.
3045         Also, there is no need for calling setCoordinator every time the tree changes,
3046         since we can call it once when the layer is created, now that LayerTreeCoordinator
3047         is the GraphicsLayerFactory.
3048
3049         Reviewed by Kenneth Rohde Christiansen
3050
3051         No change in functionality.
3052
3053         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3054         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3055         (WebCore::CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer):
3056         (WebCore::CoordinatedGraphicsLayer::setChildren):
3057         (WebCore::CoordinatedGraphicsLayer::addChild):
3058         (WebCore::CoordinatedGraphicsLayer::addChildAtIndex):
3059         (WebCore::CoordinatedGraphicsLayer::addChildAbove):
3060         (WebCore::CoordinatedGraphicsLayer::addChildBelow):
3061         (WebCore::CoordinatedGraphicsLayer::replaceChild):
3062         (WebCore::CoordinatedGraphicsLayer::setContentsToImage):
3063         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
3064         (WebCore::CoordinatedGraphicsLayer::setReplicatedByLayer):
3065         (WebCore::CoordinatedGraphicsLayer::flushCompositingState):
3066         (WebCore::CoordinatedGraphicsLayer::syncChildren):
3067         (WebCore::CoordinatedGraphicsLayer::syncFilters):
3068         (WebCore::CoordinatedGraphicsLayer::syncLayerState):
3069         (WebCore::CoordinatedGraphicsLayer::syncAnimations):
3070         (WebCore::CoordinatedGraphicsLayer::syncCanvas):
3071         (WebCore::CoordinatedGraphicsLayer::ensureImageBackingStore):
3072         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreUpdatesAllowed):
3073         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
3074         (WebCore::CoordinatedGraphicsLayer::beginContentUpdate):
3075         (WebCore::CoordinatedGraphicsLayer::createTile):
3076         (WebCore::CoordinatedGraphicsLayer::updateTile):
3077         (WebCore::CoordinatedGraphicsLayer::removeTile):
3078         (WebCore::CoordinatedGraphicsLayer::purgeBackingStores):
3079         (WebCore::CoordinatedGraphicsLayer::setCoordinator):
3080         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3081         (CoordinatedGraphicsLayer):
3082         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
3083         (WebKit::LayerTreeCoordinator::~LayerTreeCoordinator):
3084         (WebKit::LayerTreeCoordinator::LayerTreeCoordinator):
3085         (WebKit::LayerTreeCoordinator::paintContents):
3086
3087 2012-11-14  Anders Carlsson  <andersca@apple.com>
3088
3089         More steps towards actually hosting layers in the UI process
3090         https://bugs.webkit.org/show_bug.cgi?id=102275
3091
3092         Reviewed by Andreas Kling.
3093
3094         * Shared/mac/RemoteLayerTreeTransaction.h:
3095         (WebKit::RemoteLayerTreeTransaction::rootLayerID):
3096         Add a getter for the root layer ID.
3097
3098         * UIProcess/mac/RemoteLayerTreeHost.h:
3099         (RemoteLayerTreeHost):
3100         Add root layer member variable. Make the RemoteLayerTreeHost class a GraphicsLayerClient.
3101
3102         * UIProcess/mac/RemoteLayerTreeHost.mm:
3103         (WebKit::RemoteLayerTreeHost::RemoteLayerTreeHost):
3104         Initialize the root layer to null.
3105
3106         (WebKit::RemoteLayerTreeHost::notifyAnimationStarted):
3107         (WebKit::RemoteLayerTreeHost::notifyFlushRequired):
3108         (WebKit::RemoteLayerTreeHost::paintContents):
3109         Add empty stubs.
3110
3111         (WebKit::RemoteLayerTreeHost::commit):
3112         Try to get the root layer.
3113
3114         (WebKit::RemoteLayerTreeHost::getOrCreateLayer):
3115         Look up the layer with the given ID in the m_layers hash table and create it if it doesn't exist.
3116
3117 2012-11-14  Brady Eidson  <beidson@apple.com>
3118
3119         Fix the Production build after r134640 broke it.
3120
3121         * WebProcess/Network/WebResourceLoader.h:
3122         (WebKit::WebResourceLoader::resourceLoadIdentifier): Use the un-used.
3123
3124 2012-11-14  Tim Horton  <timothy_horton@apple.com>
3125
3126         PDFPlugin should make use of PDFKit's fluid zooming
3127         https://bugs.webkit.org/show_bug.cgi?id=101962
3128         <rdar://problem/12555229>
3129
3130         Reviewed by Anders Carlsson.
3131
3132         Expose the notion of a frame that handles page scale gestures via WebFrame and to the bundle via WKBundleFrame.
3133         The only frames that will purport to handle page scale gestures are those which contain PluginDocuments
3134         backed by PDFPlugin, for now. Also, allow PDFKit to do its own fluid zooming animation.
3135
3136         * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
3137         (WKBundleFrameHandlesPageScaleGesture): Provide WKBundleFrameHandlesPageScaleGesture to
3138         inform the injected bundle whether or not the frame handles scaling itself.
3139         * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: Add WKBundleFrameHandlesPageScaleGesture.
3140         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3141         (WebKit::PDFPlugin::geometryDidChange): Allow PDFKit to use its fluid zooming instead of changing
3142         the scale factor immediately.
3143         * WebProcess/WebPage/WebFrame.cpp:
3144         (WebKit::WebFrame::handlesPageScaleGesture): For now, the only frames that handle page scale
3145         gestures themselves are plugins that purport to handle page scale changes themselves (i.e. only PDFPlugin).
3146         * WebProcess/WebPage/WebFrame.h:
3147         (WebFrame):
3148
3149 2012-11-14  Tim Horton  <timothy_horton@apple.com>
3150
3151         PDFPlugin should support downloading PDFs
3152         https://bugs.webkit.org/show_bug.cgi?id=102152
3153         <rdar://problem/12555313>
3154
3155         Reviewed by Alexey Proskuryakov.
3156
3157         Clicking on the "Download PDF" HUD button should download the current
3158         PDF to the Downloads folder.
3159
3160         * UIProcess/WebPageProxy.cpp:
3161         (WebKit::WebPageProxy::savePDFToFileInDownloadsFolder): Added. Save the
3162         PDF data to disk, in the Downloads folder. This will only save files with
3163         the .pdf extension, and of MIME type "application/pdf".
3164         * UIProcess/WebPageProxy.h:
3165         (WebPageProxy): Add savePDFToFileInDownloadsFolder.
3166         * UIProcess/WebPageProxy.messages.in: Add savePDFToFileInDownloadsFolder.
3167         * WebProcess/Plugins/PDF/PDFPlugin.h:
3168         (PDFPlugin): Add saveToPDF().
3169         * WebProcess/Plugins/PDF/PDFPlugin.mm:
3170         (-[WKPDFLayerControllerDelegate saveToPDF]): Forward saveToPDF delegate callback to PDFPlugin.
3171         (WebKit::PDFPlugin::saveToPDF): Hand WebPageProxy the raw data for the
3172         current PDF, which it will save to the Downloads folder. We receive
3173         the suggested filename during loading.
3174         * WebProcess/Plugins/PDF/SimplePDFPlugin.h:
3175         (WebKit::SimplePDFPlugin::suggestedFilename): Expose a getter for suggestedFilename.
3176         * WebProcess/Plugins/PDF/SimplePDFPlugin.mm:
3177         (WebKit::SimplePDFPlugin::pluginInfo): Add a missing space after an operator.
3178
3179 2012-11-14  Brady Eidson  <beidson@apple.com>
3180
3181         Part of "Move loading responsibility out of WebResourceLoadScheduler into a new WebResourceLoader"
3182         https://bugs.webkit.org/show_bug.cgi?id=102259
3183
3184         Reviewed by Alexey Proskuryakov.
3185
3186         WebResourceLoadScheduler has taken on too many responsibilities that shouldn't belong to it.
3187
3188         We should create a WebResourceLoader that will eventually act as an intermediary between
3189         WebCore::ResourceLoader and NetworkResourceLoader.
3190
3191         This patch is prep-work: It adds a new skeleton class to the WebProcess.
3192
3193         * WebKit2.xcodeproj/project.pbxproj:
3194
3195         Add the new WebResourceLoader class which is a very thin skeleton for now:
3196         * WebProcess/Network/WebResourceLoader.cpp: Added.
3197         (WebKit::WebResourceLoader::create):
3198         (WebKit::WebResourceLoader::WebResourceLoader):
3199         (WebKit::WebResourceLoader::~WebResourceLoader):
3200         * WebProcess/Network/WebResourceLoader.h: Added.
3201         (WebKit::WebResourceLoader::coreLoader):
3202
3203         Adapt WebResourceLoadScheduler to use this new class where appropriate:
3204         * WebProcess/Network/WebResourceLoadScheduler.cpp:
3205         (WebKit::WebResourceLoadScheduler::scheduleLoad):
3206         (WebKit::WebResourceLoadScheduler::addMainResourceLoad):
3207         (WebKit::WebResourceLoadScheduler::remove):
3208         (WebKit::WebResourceLoadScheduler::willSendRequest):
3209         (WebKit::WebResourceLoadScheduler::didReceiveResponse):
3210         (WebKit::WebResourceLoadScheduler::didReceiveData):
3211         (WebKit::WebResourceLoadScheduler::didFinishResourceLoad):
3212         (WebKit::WebResourceLoadScheduler::didReceiveResource):
3213         (WebKit::WebResourceLoadScheduler::didFailResourceLoad):
3214         * WebProcess/Network/WebResourceLoadScheduler.h:
3215
3216
3217 2012-11-14  Brady Eidson  <beidson@apple.com>
3218
3219         Deliver data from NetworkProcess to resources progressively.
3220         https://bugs.webkit.org/show_bug.cgi?id=102171
3221
3222         Reviewed by Alexey Proskuryakov.
3223
3224         Instead of buffering up the data for an entire resource and delivering it in one chunk, we need
3225         to deliver data progressively.
3226
3227         This allows progressive parsing of textual resources and progressive rendering of images,
3228         as well as allows endless multipart resources (e.g., multipart jpegs) to work at all.
3229
3230         * NetworkProcess/NetworkResourceLoader.cpp:
3231         (WebKit::NetworkResourceLoader::didReceiveData): Don't buffer data locally (for now) but rather
3232           pass it straight through to the WebProcess.
3233         (WebKit::NetworkResourceLoader::didFinishLoading): Only notify didFinishLoading instead of
3234           delivering a chunk of buffered data.
3235         (WebKit::NetworkResourceLoader::didFail):
3236         * NetworkProcess/NetworkResourceLoader.h:
3237
3238         * WebProcess/Network/NetworkProcessConnection.cpp:
3239         (WebKit::NetworkProcessConnection::didReceiveData): Pass through towards ResourceLoader.
3240         (WebKit::NetworkProcessConnection::didFinishResourceLoad):
3241         (WebKit::NetworkProcessConnection::didFailResourceLoad):
3242         * WebProcess/Network/NetworkProcessConnection.h:
3243         * WebProcess/Network/NetworkProcessConnection.messages.in:
3244
3245         * WebProcess/Network/WebResourceLoadScheduler.cpp:
3246         (WebKit::WebResourceLoadScheduler::didReceiveData): Hand this chunk of data to the ResourceLoader directly.
3247         (WebKit::WebResourceLoadScheduler::didFinishResourceLoad):
3248         * WebProcess/Network/WebResourceLoadScheduler.h:
3249
3250 2012-11-14  Anton Obzhirov  <a.obzhirov@samsung.com>
3251
3252         Add platform implementation of remote web inspector server for GTK port.
3253         https://bugs.webkit.org/show_bug.cgi?id=88094 
3254
3255         Reviewed by Gustavo Noronha Silva.
3256
3257         The platform implementation is based on GSocket API (WebInspectorServerGtk.cpp and WebSocketServerGtk.cpp).
3258         The server listens on port 2999 by default. IP address of the server can be set
3259         in WEBKIT_INSPECTOR_SERVER (for example export WEBKIT_INSPECTOR_SERVER="192.168.124.130:2999").
3260         The server is started during WebKit context initialization.
3261         Once a page is loaded insector server can be accessed via other WebKit based browser.
3262         New WebKit API gtk tests have beed added.
3263         inspectorPageIndex.html has been moved to new location to share the file between GTK and Qt ports.
3264
3265         Test: test-page-list, test-remote-debugging-message, test-open-debugging-session
3266
3267         * GNUmakefile.am:
3268         * GNUmakefile.list.am:
3269         * Platform/Logging.cpp:
3270         (WebKit):
3271         (WebKit::getChannelFromName):
3272         (WebKit::initializeLogChannelsIfNecessary):
3273         * Platform/Logging.h:
3274         (WebKit):
3275         * UIProcess/API/gtk/tests/GNUmakefile.am:
3276         * UIProcess/API/gtk/tests/InspectorTestServer.cpp: Added.
3277         (loadChangedCallback):
3278         (main):
3279         * UIProcess/API/gtk/tests/TestInspectorServer.cpp: Added.
3280         (stopTestServer):
3281         (sigAbortHandler):
3282         (testServerMonitorThreadFunc):
3283         (startTestServerMonitor):
3284         (startTestServer):
3285         (testInspectorServerPageList):
3286         (testRemoteDebuggingMessage):
3287         (openRemoteDebuggingSession):
3288         (beforeAll):
3289         (afterAll):
3290         * UIProcess/InspectorServer/WebInspectorServer.h:
3291         (WebInspectorServer):
3292         * UIProcess/InspectorServer/WebSocketServer.h:
3293         (WebSocketServer):
3294         * UIProcess/InspectorServer/WebSocketServerConnection.cpp:
3295         (WebKit::WebSocketServerConnection::WebSocketServerConnection):
3296         (WebKit::WebSocketServerConnection::shutdownNow):
3297         (WebKit::WebSocketServerConnection::shutdownAfterSendOrNow):
3298         (WebKit::WebSocketServerConnection::didCloseSocketStream):
3299         (WebKit::WebSocketServerConnection::didReceiveSocketStreamData):
3300         (WebKit):
3301         (WebKit::WebSocketServerConnection::didUpdateBufferedAmount):
3302         * UIProcess/InspectorServer/WebSocketServerConnection.h:
3303         (WebSocketServerConnection):
3304         * UIProcess/InspectorServer/front-end: Added.
3305         * UIProcess/InspectorServer/front-end/inspectorPageIndex.html: Added.
3306         * UIProcess/InspectorServer/gtk: Added.
3307         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp: Added.
3308         (WebKit):
3309         (WebKit::WebInspectorServer::platformResourceForPath):
3310         (WebKit::WebInspectorServer::buildPageList):
3311         * UIProcess/InspectorServer/gtk/WebSocketServerGtk.cpp: Added.
3312         (WebKit):
3313         (WebKit::connectionCallback):
3314         (WebKit::WebSocketServer::platformInitialize):
3315         (WebKit::WebSocketServer::platformListen):
3316         (WebKit::WebSocketServer::platformClose):
3317         * UIProcess/gtk/WebContextGtk.cpp:
3318         (WebKit::initInspectorServer):
3319         (WebKit):
3320         (WebKit::WebContext::platformInitializeWebProcess):
3321         * WebKit2.qrc:
3322         * config.h:
3323         * qt/Resources/inspectorPageIndex.html: Removed.
3324
3325 2012-11-14  Christophe Dumez  <christophe.dumez@intel.com>
3326
3327         [EFL][WK2][AC] Print out warning if we fallback back to software mode
3328         https://bugs.webkit.org/show_bug.cgi?id=102188
3329
3330         Reviewed by Kenneth Rohde Christiansen.
3331
3332         Print out a warning if accelerated compositing is enabled but the
3333         implementation is falling back to software mode for some reason.
3334
3335         * UIProcess/API/efl/EwkViewImpl.cpp:
3336         (EwkViewImpl::createGLSurface):
3337
3338 2012-11-14  Sheriff Bot  <webkit.review.bot@gmail.com>
3339
3340         Unreviewed, rolling out r134531.
3341         http://trac.webkit.org/changeset/134531
3342         https://bugs.webkit.org/show_bug.cgi?id=102193
3343
3344         Makes >70 tests crash on EFL and Qt bots. (Requested by drott
3345         on #webkit).
3346
3347         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3348         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3349         (WebCore::CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer):
3350         (WebCore::CoordinatedGraphicsLayer::setChildren):
3351         (WebCore::CoordinatedGraphicsLayer::addChild):
3352         (WebCore::CoordinatedGraphicsLayer::addChildAtIndex):
3353         (WebCore::CoordinatedGraphicsLayer::addChildAbove):
3354         (WebCore::CoordinatedGraphicsLayer::addChildBelow):
3355         (WebCore::CoordinatedGraphicsLayer::replaceChild):
3356         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
3357         (WebCore::CoordinatedGraphicsLayer::setReplicatedByLayer):
3358         (WebCore::CoordinatedGraphicsLayer::flushCompositingState):
3359         (WebCore::CoordinatedGraphicsLayer::syncChildren):
3360         (WebCore::CoordinatedGraphicsLayer::syncFilters):
3361         (WebCore::CoordinatedGraphicsLayer::syncImageBacking):
3362         (WebCore::CoordinatedGraphicsLayer::syncLayerState):
3363         (WebCore::CoordinatedGraphicsLayer::syncAnimations):
3364         (WebCore::CoordinatedGraphicsLayer::syncCanvas):
3365         (WebCore::CoordinatedGraphicsLayer::releaseImageBackingIfNeeded):
3366         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreUpdatesAllowed):
3367         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
3368         (WebCore::CoordinatedGraphicsLayer::beginContentUpdate):
3369         (WebCore::CoordinatedGraphicsLayer::createTile):
3370         (WebCore::CoordinatedGraphicsLayer::updateTile):
3371         (WebCore::CoordinatedGraphicsLayer::removeTile):
3372         (WebCore::CoordinatedGraphicsLayer::setCoordinatedGraphicsLayerClient):
3373         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3374         (CoordinatedGraphicsLayer):
3375         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
3376         (WebKit::LayerTreeCoordinator::~LayerTreeCoordinator):
3377         (WebKit::LayerTreeCoordinator::LayerTreeCoordinator):
3378         (WebKit::LayerTreeCoordinator::createGraphicsLayer):
3379
3380 2012-11-13  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3381
3382         [EFL][WK2] Add a button parameter to mouseClick, mouseDown, mouseUp functions
3383         https://bugs.webkit.org/show_bug.cgi?id=102065
3384
3385         Reviewed by Laszlo Gombos.
3386
3387         mouseClick(), mouseDown() and mouseUp() test functions are only able to test a left button of mouse now.
3388         However, EFL API test framwork needs to test various mouse buttons. For example, context menu test needs
3389         to simulate a right mouse button. So, button type parameter needs to be added for it.
3390
3391         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp:
3392         (EWK2UnitTest::EWK2UnitTestBase::mouseClick):
3393         (EWK2UnitTest::EWK2UnitTestBase::mouseDown):
3394         (EWK2UnitTest::EWK2UnitTestBase::mouseUp):
3395         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
3396         (EWK2UnitTestBase):
3397
3398 2012-11-13  Yael Aharon  <yael.aharon@intel.com>
3399
3400         [EFL][WK2] New window size should consult the window attributes
3401         https://bugs.webkit.org/show_bug.cgi?id=102122
3402
3403         Reviewed by Kenneth Rohde Christiansen.
3404
3405         Pass the size that was specified in window.open to the embedder.
3406
3407         * UIProcess/API/efl/EwkViewImpl.cpp:
3408         (EwkViewImpl::createNewPage):
3409         * UIProcess/API/efl/EwkViewImpl.h:
3410         (EwkViewImpl):
3411         * UIProcess/API/efl/ewk_view.h:
3412         * UIProcess/efl/PageUIClientEfl.cpp:
3413         (WebKit::PageUIClientEfl::createNewPage):
3414
3415 2012-11-13  No'am Rosenthal  <noam.rosenthal@nokia.com>
3416
3417         Coordinated Graphics: Rename m_CoordinatedGraphicsLayerClient to m_coordinator
3418         https://bugs.webkit.org/show_bug.cgi?id=102133
3419
3420         Renamed m_CoordinatedGraphicsLayerClient to m_coordinator.
3421         Also, there is no need for calling setCoordinator every time the tree changes,
3422         since we can call it once when the layer is created, now that LayerTreeCoordinator
3423         is the GraphicsLayerFactory.
3424
3425         Reviewed by Kenneth Rohde Christiansen.
3426
3427         No change in functionality.
3428
3429         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
3430         (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
3431         (WebCore::CoordinatedGraphicsLayer::~CoordinatedGraphicsLayer):
3432         (WebCore::CoordinatedGraphicsLayer::setChildren):
3433         (WebCore::CoordinatedGraphicsLayer::addChild):
3434         (WebCore::CoordinatedGraphicsLayer::addChildAtIndex):
3435         (WebCore::CoordinatedGraphicsLayer::addChildAbove):
3436         (WebCore::CoordinatedGraphicsLayer::addChildBelow):
3437         (WebCore::CoordinatedGraphicsLayer::replaceChild):
3438         (WebCore::CoordinatedGraphicsLayer::setContentsToImage):
3439         (WebCore::CoordinatedGraphicsLayer::setMaskLayer):
3440         (WebCore::CoordinatedGraphicsLayer::setReplicatedByLayer):
3441         (WebCore::CoordinatedGraphicsLayer::flushCompositingState):
3442         (WebCore::CoordinatedGraphicsLayer::syncChildren):
3443         (WebCore::CoordinatedGraphicsLayer::syncFilters):
3444         (WebCore::CoordinatedGraphicsLayer::syncLayerState):
3445         (WebCore::CoordinatedGraphicsLayer::syncAnimations):
3446         (WebCore::CoordinatedGraphicsLayer::syncCanvas):
3447         (WebCore::CoordinatedGraphicsLayer::ensureImageBackingStore):
3448         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreUpdatesAllowed):
3449         (WebCore::CoordinatedGraphicsLayer::tiledBackingStoreVisibleRect):
3450         (WebCore::CoordinatedGraphicsLayer::beginContentUpdate):
3451         (WebCore::CoordinatedGraphicsLayer::createTile):
3452         (WebCore::CoordinatedGraphicsLayer::updateTile):
3453         (WebCore::CoordinatedGraphicsLayer::removeTile):
3454         (WebCore::CoordinatedGraphicsLayer::purgeBackingStores):
3455         (WebCore::CoordinatedGraphicsLayer::setCoordinator):
3456         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
3457         (CoordinatedGraphicsLayer):
3458         * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
3459         (WebKit::LayerTreeCoordinator::~LayerTreeCoordinator):
3460         (WebKit::LayerTreeCoordinator::LayerTreeCoordinator):
3461         (WebKit::LayerTreeCoordinator::paintContents):
3462
3463 2012-11-13  Brady Eidson  <beidson@apple.com>
3464
3465         REGRESSION(r134328) - ASSERT(isMainThread()) when subresources redirect in the NetworkProcessPass through
3466         https://bugs.webkit.org/show_bug.cgi?id=102167
3467
3468         Reviewed by Simon Fraser.
3469
3470         willSendRequest comes in on a background thread but we need to do HostRecord accounting on the main thread.
3471
3472         So we'll just dispatch the receivedRedirect call to the main thread RunLoop.
3473
3474         * NetworkProcess/NetworkResourceLoader.cpp:
3475         (WebKit::NetworkResourceLoader::willSendRequest):
3476
3477 2012-11-13  Timothy Hatcher  <timothy@apple.com>