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