Remove unused warning in WebPageOverlay
[WebKit-https.git] / Source / WebKit2 / ChangeLog
1 2014-10-06  Vivek Galatage  <vivek.vg@samsung.com>
2
3         Remove unused warning in WebPageOverlay
4         https://bugs.webkit.org/show_bug.cgi?id=137444
5
6         Reviewed by Darin Adler.
7
8         Commenting the unused parameter to supress the warning.
9
10         * WebProcess/WebPage/WebPageOverlay.h:
11         (WebKit::WebPageOverlay::Client::copyAccessibilityAttributeStringValueForPoint):
12         (WebKit::WebPageOverlay::Client::copyAccessibilityAttributeBoolValueForPoint):
13
14 2014-10-06  Ada Chan  <adachan@apple.com>
15
16         Call WKPageUIClient::isPlayingAudioDidChange() whenever audio starts/stops playing on a page.
17         https://bugs.webkit.org/show_bug.cgi?id=137050
18
19         Reviewed by Anders Carlsson.
20
21         Implement WebChromeClient::isPlayingAudioDidChange() which sends the new isPlayingAudio state
22         over to the UI process. WebPageProxy caches the isPlayingAudio state, and when that changes,
23         it calls WKPageUIClient::isPlayingAudioDidChange().
24
25         * UIProcess/API/APIUIClient.h:
26         (API::UIClient::isPlayingAudioDidChange):
27         * UIProcess/API/C/WKPage.cpp:
28         (WKPageSetPageUIClient):
29         * UIProcess/WebPageProxy.cpp:
30         (WebKit::WebPageProxy::WebPageProxy):
31         (WebKit::WebPageProxy::isPlayingAudioDidChange):
32         * UIProcess/WebPageProxy.h:
33         (WebKit::WebPageProxy::isPlayingAudio):
34         * UIProcess/WebPageProxy.messages.in:
35         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
36         (WebKit::WebChromeClient::isPlayingAudioDidChange):
37         * WebProcess/WebCoreSupport/WebChromeClient.h:
38
39 2014-10-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
40
41         [EFL] Restore previous scroll position using restoreViewState()
42         https://bugs.webkit.org/show_bug.cgi?id=136999
43
44         Reviewed by Benjamin Poulain.
45
46         There are duplicating code paths to restore previous scroll position and scale factor in
47         HistoryController::restoreScrollPositionAndViewState. EFL port has processed the two code paths.
48         It causes wrong rendering update or scroll position change when previous page's scroll position
49         is restored. Thus EFL port begins to use restoreViewState() to restore scroll position and scale factor.
50         This patch is first step to support it.
51
52         Additionally EFL port has supported to use ScrollingCoordinatorCoordinatedGraphics::requestScrollPositionUpdate()
53         since r173785. So EFL port can use the requestScrollPositionUpdate() to restore scroll position on previous page
54         instead of delegatedScrollRequested(). However setScrollPosition() can't be used there for now, because iOS port
55         should call it when delegatesScrolling is disabled. On the other hand, EFL port supports it only when delegatesScrolling
56         is enabled.
57
58         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
59         (WebKit::WebFrameLoaderClient::saveViewStateToItem):
60         Move iOS saveViewStateToItem() to common place in order to share iOS implementation with EFL port.
61
62         (WebKit::WebFrameLoaderClient::restoreViewState):
63         EFL begins to share restoreViewState() of iOS, thus move iOS restoreViewState() to common place.
64
65         * WebProcess/WebCoreSupport/ios/WebFrameLoaderClientIOS.mm:
66         (WebKit::WebFrameLoaderClient::saveViewStateToItem): Deleted.
67         (WebKit::WebFrameLoaderClient::restoreViewState): Deleted.
68         * WebProcess/WebPage/WebPage.h:
69         * WebProcess/WebPage/efl/WebPageEfl.cpp:
70         (WebKit::WebPage::restorePageState):
71         Call scalePage() to update previous scaleFactor and scrollPosition of historyItem both to WebProcess and UIProcess.
72
73         (WebKit::WebPage::savePageState):
74
75 2014-10-06  Chris Dumez  <cdumez@apple.com>
76
77         [Mac] We are spending too much time serializing ProtectionSpace objects
78         https://bugs.webkit.org/show_bug.cgi?id=137367
79
80         Reviewed by Dan Bernstein.
81
82         When profiling the load of nytimes.com, I noticed that we were spending
83         a lot of CPU time serializing ProtectionSpace objects (in particular
84         the NSURLProtectionSpace platform data):
85         - 5.6% of CPU time for Network Process
86         - 2.5% of CPU time for WebProcess
87
88         Serializing an NSURLProtectionSpace seems to be costly due to server
89         trust verification. We do this for every sub-resource load over HTTPS
90         due to the canAuthenticateAgainstProtectionSpace() callback for server
91         trust validation, from the NetworkProcess to the WebProcess and then to
92         the UIProcess.
93
94         This patch adds a WKContextSetCanHandleHTTPSServerTrustEvaluation(bool)
95         WK2 private API that the client can call to indicate that it cannot
96         handle HTTPS server trust evaluation and that it is thus unnecessary to
97         call the canAuthenticateAgainstProtectionSpace() callback for such
98         evaluations. This reduces the amount of IPC between the process and
99         thus the number of times we have to serialize the ProtectionSpace.
100
101         In the case of the nytimes.com load, there is no longer any
102         ProtectionSpace serialization happening as
103         canAuthenticateAgainstProtectionSpace() was only called for HTTPS
104         server trust evaluation.
105
106         * NetworkProcess/NetworkProcess.cpp:
107         (WebKit::NetworkProcess::NetworkProcess):
108         (WebKit::NetworkProcess::initializeNetworkProcess):
109         (WebKit::NetworkProcess::setCanHandleHTTPSServerTrustEvaluation):
110         * NetworkProcess/NetworkProcess.h:
111         (WebKit::NetworkProcess::canHandleHTTPSServerTrustEvaluation):
112         * NetworkProcess/NetworkProcess.messages.in:
113         * NetworkProcess/NetworkResourceLoader.cpp:
114         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceAsync):
115         * Shared/Network/NetworkProcessCreationParameters.cpp:
116         (WebKit::NetworkProcessCreationParameters::encode):
117         (WebKit::NetworkProcessCreationParameters::decode):
118         * Shared/Network/NetworkProcessCreationParameters.h:
119         * UIProcess/API/C/WKContext.cpp:
120         (WKContextSetCanHandleHTTPSServerTrustEvaluation):
121         * UIProcess/API/C/WKContextPrivate.h:
122         * UIProcess/API/Cocoa/WKProcessPool.mm:
123         (-[WKProcessPool _setCanHandleHTTPSServerTrustEvaluation:]):
124         * UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
125         * UIProcess/WebContext.cpp:
126         (WebKit::WebContext::WebContext):
127         (WebKit::WebContext::ensureNetworkProcess):
128         (WebKit::WebContext::setCanHandleHTTPSServerTrustEvaluation):
129         * UIProcess/WebContext.h:
130
131 2014-10-06  Simon Fraser  <simon.fraser@apple.com>
132
133         Don't attempt to paint into zero-sized backing store
134         https://bugs.webkit.org/show_bug.cgi?id=137465
135
136         Reviewed by Tim Horton.
137         
138         Page scale could cause the backing store for a small composited element to become empty,
139         in which case we'd try to allocate, and paint into a graphics context with no surface
140         behind it.
141         
142         Fix by bailing from RemoteLayerBackingStore::display() when checking the backing store
143         size after accounting for scale.
144
145         * Shared/mac/RemoteLayerBackingStore.h:
146         * Shared/mac/RemoteLayerBackingStore.mm:
147         (WebKit::RemoteLayerBackingStore::backingStoreSize):
148         (WebKit::RemoteLayerBackingStore::swapToValidFrontBuffer):
149         (WebKit::RemoteLayerBackingStore::display):
150
151 2014-10-06  Christophe Dumez  <cdumez@apple.com>
152
153         Use is<>() / downcast<>() for ScrollingTree subclasses
154         https://bugs.webkit.org/show_bug.cgi?id=137449
155
156         Reviewed by Ryosuke Niwa.
157
158         Use is<>() / downcast<>() for ScrollingTree subclasses.
159
160         * UIProcess/Scrolling/RemoteScrollingTree.h:
161         * WebProcess/WebPage/EventDispatcher.cpp:
162         (WebKit::EventDispatcher::addScrollingTreeForPage):
163
164 2014-10-05  Christophe Dumez  <cdumez@apple.com>
165
166         Use is<>() / downcast<>() for ScrollingCoordinator / ScrollingStateNode subclasses
167         https://bugs.webkit.org/show_bug.cgi?id=137440
168
169         Reviewed by Ryosuke Niwa.
170
171         Use is<>() / downcast<>() for ScrollingCoordinator / ScrollingStateNode subclasses.
172
173         * Shared/Scrolling/RemoteScrollingCoordinatorTransaction.cpp:
174         (WebKit::encodeNodeAndDescendants):
175         (WebKit::RemoteScrollingCoordinatorTransaction::decode):
176         (WebKit::RemoteScrollingTreeTextStream::dump):
177         * UIProcess/Scrolling/RemoteScrollingCoordinatorProxy.cpp:
178         (WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers):
179         * UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:
180         (WebKit::ScrollingTreeOverflowScrollingNodeIOS::updateBeforeChildren):
181         (WebKit::ScrollingTreeOverflowScrollingNodeIOS::updateAfterChildren):
182         * UIProcess/ios/RemoteScrollingCoordinatorProxyIOS.mm:
183         (WebKit::RemoteScrollingCoordinatorProxy::connectStateNodeLayers):
184         * WebProcess/Scrolling/RemoteScrollingCoordinator.h:
185         * WebProcess/WebPage/EventDispatcher.cpp:
186         (WebKit::EventDispatcher::addScrollingTreeForPage):
187         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
188         (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
189         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
190         (WebKit::TiledCoreAnimationDrawingArea::updatePreferences):
191
192 2014-10-05  Ryuan Choi  <ryuan.choi@gmail.com>
193
194         [EFL] Introduce EWebKit_Extension
195         https://bugs.webkit.org/show_bug.cgi?id=134921
196
197         Reviewed by Gyuyoung Kim.
198
199         EWebKit2 does not provide the functionality to extend WebProcess.
200         Although there is ewk_context_new_with_injected_bundle_path() in ewebkit2 APIs,
201         application developers can not make bundle object without touching WK APIs
202         which ewebkit2 does not expose.
203
204         This patch introduces EWebKit_Extension, basic structure for the extension of WebProcess.
205
206         * PlatformEfl.cmake:
207         Added files for the EWebKit_Extension and install them properly.
208         * UIProcess/API/efl/ewk_context.cpp:
209         (EwkContext::EwkContext):
210         (bundlePathForExtension):
211         (EwkContext::create):
212         (EwkContext::getInjectedBundleInitializationUserData):
213         (EwkContext::setMessageFromInjectedBundleCallback):
214         (ewk_context_new_with_extensions_path):
215         Deleted because ewebkit2 does not have a way to make injected bundle.
216         Instead, Ewk_Extension will cover the same functionalities.
217         (ewk_context_new_with_injected_bundle_path): Deleted.
218         * UIProcess/API/efl/ewk_context.h:
219         * UIProcess/API/efl/ewk_context_private.h:
220         (EwkContext::extensionsPath):
221         * UIProcess/API/efl/tests/InjectedBundle/injected_bundle_sample.cpp: Removed.
222         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp:
223         (EWK2UnitTest::EWK2UnitTestEnvironment::extensionSample):
224         (EWK2UnitTest::EWK2UnitTestEnvironment::injectedBundleSample): Renamed injectedBundleSample to extensionSample.
225         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.h:
226         * UIProcess/API/efl/tests/extensions/extension_sample.cpp: Copied from Source/WebKit2/UIProcess/API/efl/tests/InjectedBundle/injected_bundle_sample.cpp.
227         * UIProcess/API/efl/tests/test_ewk2_context.cpp: Renamed ewk_context_new_with_injected_bundle_path to ewk_context_new_with_extensions_path.
228         (TEST_F):
229         * WebProcess/InjectedBundle/API/efl/EWebKit_Extension.h: Added.
230         * WebProcess/InjectedBundle/API/efl/ewk_extension.cpp: Added.
231         (EwkExtension::append):
232         (EwkExtension::remove):
233         (ewk_extension_client_add):
234         (ewk_extension_client_del):
235         * WebProcess/InjectedBundle/API/efl/ewk_extension.h: Added.
236         * WebProcess/InjectedBundle/API/efl/ewk_extension_private.h: Added.
237         (EwkExtension::EwkExtension):
238         (EwkExtension::~EwkExtension):
239         * WebProcess/efl/ExtensionManagerEfl.cpp: Added.
240         (WebKit::ExtensionManagerEfl::shared):
241         (WebKit::ExtensionManagerEfl::ExtensionManagerEfl):
242         (WebKit::ExtensionManagerEfl::initialize):
243         * WebProcess/efl/ExtensionManagerEfl.h: Added.
244         * WebProcess/efl/WebInjectedBundleMainEfl.cpp: Added.
245         (WKBundleInitialize):
246         * efl/ewebkit2-extension.pc.in: Added.
247
248 2014-10-05  Lorenzo Tilve  <ltilve@igalia.com>
249
250         [GTK] Fix build when DRAG_SUPPORT is disabled
251         https://bugs.webkit.org/show_bug.cgi?id=137361
252
253         Reviewed by Carlos Garcia Campos.
254
255         Flag out unbuildable code without DRAG_SUPPORT.
256
257         * Shared/gtk/ArgumentCodersGtk.cpp:
258         * Shared/gtk/ArgumentCodersGtk.h:
259         * UIProcess/API/gtk/PageClientImpl.cpp:
260         * UIProcess/API/gtk/PageClientImpl.h:
261         * UIProcess/API/gtk/WebKitWebViewBase.cpp:
262         (webkitWebViewBaseConstructed):
263         * UIProcess/PageClient.h:
264
265 2014-10-05  Carlos Garcia Campos  <cgarcia@igalia.com>
266
267         [GTK] The new web inspector can't be docked again once undocked
268         https://bugs.webkit.org/show_bug.cgi?id=121544
269
270         Reviewed by Martin Robinson.
271
272         Use a GtkHeaderBar for the inspector window to add dock buttons
273         when building with GTK+ >= 3.10.
274
275         * UIProcess/WebInspectorProxy.cpp:
276         (WebKit::WebInspectorProxy::WebInspectorProxy):
277         * UIProcess/WebInspectorProxy.h:
278         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
279         (WebKit::WebInspectorProxy::dockButtonClicked):
280         (WebKit::WebInspectorProxy::createInspectorWindow):
281         (WebKit::WebInspectorProxy::updateInspectorWindowTitle):
282         (WebKit::WebInspectorProxy::platformInspectedURLChanged):
283         (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged):
284
285 2014-10-04  Carlos Garcia Campos  <cgarcia@igalia.com>
286
287         Unreviewed. Add missing inspector files to compilation.
288
289         * PlatformGTK.cmake: Add javascript sources in
290         WebInspectorUI/UserInterface/External/Esprima to the list of
291         inspector files.
292
293 2014-10-03  Anders Carlsson  <andersca@apple.com>
294
295         Remove a workaround for a bug that's been fixed
296         https://bugs.webkit.org/show_bug.cgi?id=137411
297
298         Reviewed by Dan Bernstein.
299
300         * mac/rewrite-availability-macros.sh:
301
302 2014-10-03  Jer Noble  <jer.noble@apple.com>
303
304         Revert an accidental change introduced by r173318.
305
306         Rubber-stamped by Tim Horton.
307
308         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
309         (WebKit::TiledCoreAnimationDrawingArea::suspendPainting):
310         (WebKit::TiledCoreAnimationDrawingArea::resumePainting):
311
312 2014-10-03  Tim Horton  <timothy_horton@apple.com>
313
314         WKWebView snapshot of Daring Fireball has the wrong color in the obscured inset
315         https://bugs.webkit.org/show_bug.cgi?id=137383
316         <rdar://problem/18535439>
317
318         Reviewed by Sam Weinig.
319
320         * WebProcess/WebPage/WebPage.cpp:
321         (WebKit::WebPage::snapshotAtSize):
322         Use documentBackgroundColor instead of baseBackgroundColor if backgroundShouldExtendBeyondPage is set.
323
324 2014-10-03  Andy Estes  <aestes@apple.com>
325
326         [iOS] Highlight clicked links in WKPDFView
327         https://bugs.webkit.org/show_bug.cgi?id=137400
328
329         Reviewed by Tim Horton.
330
331         Show a _UIHighlightView on top of clicked links for 200 ms before starting the navigation. This matches the behavior of UIWebPDFView.
332
333         * UIProcess/ios/WKPDFView.mm:
334         (-[WKPDFView _createHighlightViewWithFrame:]): Created a _UIHighlightView with a color and border radius matching the values used by UIWebPDFView.
335         (-[WKPDFView annotation:wasTouchedAtPoint:controller:]): Displayed the highlight, then removed it after the navigation began.
336
337 2014-10-03  Csaba Osztrogonác  <ossy@webkit.org>
338
339         [GTK] URTBF after r174231.
340
341         * WebProcess/InjectedBundle/API/gtk/WebKitWebPage.cpp:
342         (webkit_web_page_get_dom_document):
343         * WebProcess/WebPage/DrawingAreaImpl.cpp:
344         (WebKit::DrawingAreaImpl::didInstallPageOverlay): Deleted.
345         (WebKit::DrawingAreaImpl::didUninstallPageOverlay): Deleted.
346         (WebKit::DrawingAreaImpl::setPageOverlayNeedsDisplay): Deleted.
347         (WebKit::DrawingAreaImpl::setPageOverlayOpacity): Deleted.
348         * WebProcess/WebPage/DrawingAreaImpl.h:
349         * WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:
350         (WebKit::LayerTreeHostGtk::createPageOverlayLayer):
351         (WebKit::LayerTreeHostGtk::destroyPageOverlayLayer):
352         (WebKit::LayerTreeHostGtk::didInstallPageOverlay): Deleted.
353         (WebKit::LayerTreeHostGtk::didUninstallPageOverlay): Deleted.
354         (WebKit::LayerTreeHostGtk::setPageOverlayNeedsDisplay): Deleted.
355         * WebProcess/WebPage/gtk/LayerTreeHostGtk.h:
356
357 2014-10-03  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
358
359         [EFL] Fix build break since r174231 and r174256
360         https://bugs.webkit.org/show_bug.cgi?id=137384
361
362         Unreviewed, EFL build fix.
363
364         r174231 and r174256 didn't consider EFL port and CoordinatedGraphics area.
365
366         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedDrawingArea.cpp:
367         (WebKit::CoordinatedDrawingArea::mainFrameContentSizeChanged):
368         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
369         (WebKit::CoordinatedLayerTreeHost::setRootCompositingLayer):
370         (WebKit::CoordinatedLayerTreeHost::didFlushRootLayer):
371         (WebKit::CoordinatedLayerTreeHost::deviceOrPageScaleFactorChanged):
372         * WebProcess/WebPage/TapHighlightController.cpp:
373         (WebKit::TapHighlightController::highlight):
374         (WebKit::TapHighlightController::hideHighlight):
375         * WebProcess/WebPage/TapHighlightController.h: Add WebCore:: namespace prefix to PageOverlay argument type.
376
377 2014-10-02  Csaba Osztrogonác  <ossy@webkit.org>
378
379         URTBF after r174231 to fix non Apple builds.
380
381         * WebProcess/WebPage/WebPage.h:
382
383 2014-10-02  Andy Estes  <aestes@apple.com>
384
385         [iOS] Create an SPI wrapper for _UIHighlightView and use it in WKContentView
386         https://bugs.webkit.org/show_bug.cgi?id=137370
387
388         Reviewed by Tim Horton.
389
390         * UIProcess/ios/WKContentViewInteraction.mm: Included <WebCore/_UIHighlightViewSPI.h> instead of <UIKit/_UIHighlightView.h>.
391
392 2014-10-02  Andy Estes  <aestes@apple.com>
393
394         Fix the iOS build.
395
396         * WebProcess/WebPage/ios/WebPageIOS.mm:
397         (WebKit::WebPage::blurAssistedNode):
398         (WebKit::WebPage::setAssistedNodeValue):
399         (WebKit::WebPage::setAssistedNodeValueAsNumber):
400         (WebKit::WebPage::setAssistedNodeSelectedIndex):
401
402 2014-10-02  Andy Estes  <aestes@apple.com>
403
404         [iOS] Teach WKPDFView to navigate to pageNumber links
405         https://bugs.webkit.org/show_bug.cgi?id=137358
406
407         Reviewed by Tim Horton.
408
409         Treat PDF pageNumber annotations as if they were fragment navigations in an HTML document. For a given page
410         number N, create a fragment called "#pageN" and tell WebKit to navigate to it. By doing this we create history
411         entries for each pageNumber navigation and allow for proper back/forward. When navigating to a page, reset to
412         the initial scale factor and scroll to the beginning of the Nth page.
413
414         * UIProcess/API/Cocoa/WKWebView.mm:
415         (-[WKWebView _zoomToPoint:atScale:animated:]): Added an animated parameter. If animated is NO, use a duration of 0.
416         (-[WKWebView _zoomToRect:atScale:origin:animated:]): Added an animated parameter and passed it to _zoomToPoint:atScale:animated:.
417         (-[WKWebView _zoomOutWithOrigin:animated:]): Ditto.
418         (-[WKWebView _zoomToRect:withOrigin:fitEntireRect:minimumScale:maximumScale:minimumScrollDistance:]): Called _zoomToRect:atScale:origin:animated:,
419         setting animated to YES.
420         (-[WKWebView _didSameDocumentNavigationForMainFrame:]): Called web_didSameDocumentNavigation: on _customContentView.
421         (-[WKWebView _zoomToPoint:atScale:]): Deleted.
422         (-[WKWebView _zoomToRect:atScale:origin:]): Deleted.
423         (-[WKWebView _zoomOutWithOrigin:]): Deleted.
424         * UIProcess/API/Cocoa/WKWebViewInternal.h:
425         * UIProcess/Cocoa/WKWebViewContentProvider.h:
426         * UIProcess/ios/PageClientImplIOS.mm:
427         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame): Called _didSameDocumentNavigationForMainFrame on m_webView.
428         * UIProcess/ios/WKContentView.mm:
429         (-[WKContentView _zoomOutWithOrigin:]): Called _zoomOutWithOrigin:animated: on m_webView, setting animated to YES.
430         * UIProcess/ios/WKPDFPageNumberIndicator.h:
431         * UIProcess/ios/WKPDFPageNumberIndicator.mm:
432         (-[WKPDFPageNumberIndicator hide]): Added a method to hide the page number indicator.
433         * UIProcess/ios/WKPDFView.mm:
434         (-[WKPDFView web_setContentProviderData:suggestedFilename:]): Added a FIXME for restoring scroll position and page scale when loading from the back/forward list.
435         (-[WKPDFView scrollViewDidScroll:]): Stopped showing the page number indicator if a same-document navigation is occurring (to match UIWebPDFView).
436         (-[WKPDFView _updatePageNumberIndicator]): Ditto.
437         (-[WKPDFView web_didSameDocumentNavigation:]):
438         (-[WKPDFView _resetZoomAnimated:]): For same-document navigations of type kWKSameDocumentNavigationSessionStatePop, extracted the page index from the URL fragment
439         identifier, hid the page number indicator, reset the zoom (without an animation to match UIWebPDFView), and scrolled to the beginning of the given page.
440         (-[WKPDFView resetZoom:]): Called _resetZoomAnimated:, setting animated to YES.
441         (-[WKPDFView annotation:wasTouchedAtPoint:controller:]): If there is a non-zero pageNumber in the link annotation, construct a "#pageN" fragment and navigate to it.
442
443 2014-10-02  Tim Horton  <timothy_horton@apple.com>
444
445         Move PageOverlay[Controller] to WebCore
446         https://bugs.webkit.org/show_bug.cgi?id=137164
447         <rdar://problem/18508258>
448
449         Reviewed by Anders Carlsson.
450
451         * CMakeLists.txt:
452         * WebKit2.xcodeproj/project.pbxproj:
453         Make the appropriate build system changes.
454
455         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
456         Make WKBundlePageOverlayRef map to WebPageOverlay instead of PageOverlay.
457
458         * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
459         (WKBundlePageInstallPageOverlay):
460         (WKBundlePageUninstallPageOverlay):
461         (WKBundlePageInstallPageOverlayWithAnimation):
462         (WKBundlePageUninstallPageOverlayWithAnimation):
463         Forward PageOverlay installation/uninstallation to WebCore.
464
465         * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp:
466         (WKBundlePageOverlayGetTypeID):
467         (WKBundlePageOverlayCreate):
468         (WKBundlePageOverlaySetAccessibilityClient):
469         Use WebPageOverlay instead of PageOverlay, and references instead of pointers.
470         We forward client callbacks through from PageOverlay::Client to WebPageOverlay::Client.
471
472         (PageOverlayClientImpl::copyAccessibilityAttributeValue):
473         (PageOverlayClientImpl::copyAccessibilityAttributeNames):
474         Convert from wtf types to WebKit2 types.
475
476         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
477         (WebKit::WebChromeClient::graphicsLayerFactory):
478         If we don't have a drawing area, don't dereference it!
479
480         (WebKit::WebChromeClient::attachViewOverlayGraphicsLayer):
481         Forward attachViewOverlayGraphicsLayer to the DrawingArea.
482
483         * WebProcess/WebCoreSupport/WebChromeClient.h:
484
485         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
486         * WebProcess/WebCoreSupport/WebInspectorClient.h:
487         * WebProcess/WebPage/FindController.cpp:
488         * WebProcess/WebPage/FindController.h:
489         * WebProcess/WebPage/ios/FindControllerIOS.mm:
490         * WebProcess/WebPage/ios/FindIndicatorOverlayClientIOS.h:
491         * WebProcess/WebPage/mac/ServicesOverlayController.mm:
492         * WebProcess/WebPage/ServicesOverlayController.h:
493         Mechanical changes to adopt to the fact that PageOverlay is in WebCore now.
494
495         * WebProcess/WebPage/LayerTreeHost.h:
496         * WebProcess/WebPage/WebPage.cpp:
497         * WebProcess/WebPage/WebPage.h:
498         Remove support for WebKit2-based page overlays.
499         Return MainFrame instead of Frame from mainFrame().
500
501         * WebProcess/WebPage/WebPageOverlay.cpp: Added.
502         * WebProcess/WebPage/WebPageOverlay.h: Added.
503         (WebKit::WebPageOverlay::create):
504         (WebKit::WebPageOverlay::WebPageOverlay):
505         (WebKit::WebPageOverlay::~WebPageOverlay):
506         (WebKit::WebPageOverlay::setNeedsDisplay):
507         (WebKit::WebPageOverlay::clear):
508         (WebKit::WebPageOverlay::pageOverlayDestroyed):
509         (WebKit::WebPageOverlay::willMoveToPage):
510         (WebKit::WebPageOverlay::didMoveToPage):
511         (WebKit::WebPageOverlay::drawRect):
512         (WebKit::WebPageOverlay::mouseEvent):
513         (WebKit::WebPageOverlay::didScrollFrame):
514         (WebKit::WebPageOverlay::copyAccessibilityAttributeStringValueForPoint):
515         (WebKit::WebPageOverlay::copyAccessibilityAttributeBoolValueForPoint):
516         (WebKit::WebPageOverlay::copyAccessibilityAttributeNames):
517         WebPageOverlay exists to be our API object, but forwards everything
518         to its WebCore::PageOverlay, and implements WebCore::PageOverlay::Client, and
519         forwards client callbacks to its WebPageOverlay::Client (which
520         WKBundlePageOverlay implements).
521
522         * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm:
523         (-[WKAccessibilityWebPageObject accessibilityParameterizedAttributeNames]):
524         (-[WKAccessibilityWebPageObject accessibilityAttributeValue:forParameter:]):
525         Forward the three AX properties that PageOverlays are ever queried for
526         to the appropriate PageOverlayController function.
527         
528         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
529         * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
530         (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
531         (WebKit::RemoteLayerTreeDrawingArea::updateRootLayers):
532         Factor updateRootLayers out of setRootCompositingLayer.
533
534         (WebKit::RemoteLayerTreeDrawingArea::attachViewOverlayGraphicsLayer):
535         If we attach/detach the view-relative page overlay root layer,
536         reattach the root compositing layer's children.
537
538         (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
539         Ditto for the root compositing layer.
540
541         (WebKit::RemoteLayerTreeDrawingArea::updateScrolledExposedRect):
542         (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
543         (WebKit::RemoteLayerTreeDrawingArea::mainFrameContentSizeChanged):
544         Informing PageOverlayController of exposed rect/document size changes is now
545         WebCore's job.
546
547         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
548         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
549         (WebKit::TiledCoreAnimationDrawingArea::TiledCoreAnimationDrawingArea):
550         (WebKit::TiledCoreAnimationDrawingArea::updateRootLayers):
551         Factor updateRootLayers out of setRootCompositingLayer.
552
553         (WebKit::TiledCoreAnimationDrawingArea::attachViewOverlayGraphicsLayer):
554         (WebKit::TiledCoreAnimationDrawingArea::setRootCompositingLayer):
555         Make use of updateRootLayers when we attach/detach root compositing layer/view overlay layer.
556
557         (WebKit::TiledCoreAnimationDrawingArea::mainFrameContentSizeChanged):
558         (WebKit::TiledCoreAnimationDrawingArea::flushLayers):
559         (WebKit::TiledCoreAnimationDrawingArea::updateScrolledExposedRect):
560         Informing PageOverlayController of exposed rect/document size changes is now
561         WebCore's job.
562
563         * WebProcess/WebPage/DrawingArea.h:
564         (WebKit::DrawingArea::attachViewOverlayGraphicsLayer):
565
566         * Shared/WebRenderLayer.cpp:
567         * Shared/WebRenderObject.cpp:
568         * WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
569         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
570         * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
571         * WebProcess/WebProcess.cpp:
572         Include MainFrame.h because WebPage::mainFrame returns a MainFrame now.
573
574 2014-10-02  Jeff Miller  <jeffm@apple.com>
575
576         WKDownloadCopyRequest() returns 0 until the download starts
577         https://bugs.webkit.org/show_bug.cgi?id=137322
578
579         Reviewed by Anders Carlsson.
580
581         The m_request ivar in DownloadProxy was only being initialized when didStart() was called after the
582         download starts. Since clients have access to the ResourceRequest when the DownloadProxy is created,
583         there's no reason not to pass that along to DownloadProxy::create() so it can be returned if
584         WKDownloadCopyRequest() is called before didStart().
585
586         * UIProcess/Downloads/DownloadProxy.cpp:
587         (WebKit::DownloadProxy::create):
588         Add ResourceRequest parameter, and pass it to DownloadProxy constructor.
589
590         (WebKit::DownloadProxy::DownloadProxy):
591         Initialize m_request.
592
593         * UIProcess/Downloads/DownloadProxy.h:
594         Add ResourceRequest parameter to create() and constructor.
595
596         * UIProcess/Downloads/DownloadProxyMap.cpp:
597         (WebKit::DownloadProxyMap::createDownloadProxy):
598         Add ResourceRequest parameter and pass it to DownloadProxy::create().
599
600         * UIProcess/Downloads/DownloadProxyMap.h:
601         Add ResourceRequest parameter to createDownloadProxy().
602
603         * UIProcess/Network/NetworkProcessProxy.cpp:
604         (WebKit::NetworkProcessProxy::createDownloadProxy):
605         Add ResourceRequest parameter and pass it to DownloadProxy::create().
606
607         * UIProcess/Network/NetworkProcessProxy.h:
608         Add ResourceRequest parameter to createDownloadProxy().
609
610         * UIProcess/WebContext.cpp:
611         (WebKit::WebContext::download):
612         Pass ResourceRequest to createDownloadProxy().
613
614         (WebKit::WebContext::createDownloadProxy):
615         Add ResourceRequest parameter and pass it to createDownloadProxy() functions.
616
617         * UIProcess/WebContext.h:
618         Add ResourceRequest parameter to createDownloadProxy().
619
620         * UIProcess/WebPageProxy.cpp:
621         (WebKit::WebPageProxy::receivedPolicyDecision):
622         Pass m_decidePolicyForResponseRequest to WebContext::createDownloadProxy().
623
624         * UIProcess/WebProcessProxy.cpp:
625         (WebKit::WebProcessProxy::createDownloadProxy):
626         Add ResourceRequest parameter and pass it to DownloadProxyMap::create().
627
628         * UIProcess/WebProcessProxy.h:
629         Add ResourceRequest parameter to createDownloadProxy().
630
631 2014-10-01  Christophe Dumez  <cdumez@apple.com>
632
633         Have is<>(T*) function do a null check on the pointer argument
634         https://bugs.webkit.org/show_bug.cgi?id=137333
635
636         Reviewed by Gavin Barraclough.
637
638         Have is<>(T*) function do a null check on the argument instead of a
639         simple assertion. This makes sense for 2 reasons:
640         1. It is more consistent with downcast<>(T*), which will succeed even
641            if the argument is a nullptr.
642         2. It simplifies the code a bit as it gets rid of a lot of explicit
643            null checks.
644
645         * Shared/WebRenderObject.cpp:
646         (WebKit::WebRenderObject::WebRenderObject):
647         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
648         (WebKit::InjectedBundleHitTestResult::mediaType):
649         * WebProcess/Plugins/PluginView.cpp:
650         (WebKit::PluginView::handleEvent):
651         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
652         (WebKit::WebChromeClient::focusedElementChanged):
653         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
654         (WebKit::WebEditorClient::textFieldDidBeginEditing):
655         (WebKit::WebEditorClient::textFieldDidEndEditing):
656         (WebKit::WebEditorClient::textDidChangeInTextField):
657         (WebKit::WebEditorClient::textDidChangeInTextArea):
658         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
659         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
660         * WebProcess/WebPage/WebFrame.cpp:
661         (WebKit::WebFrame::containsAnyFormElements):
662         (WebKit::WebFrame::containsAnyFormControls):
663         * WebProcess/WebPage/WebPage.cpp:
664         (WebKit::WebPage::pdfDocumentForPrintingFrame):
665         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
666         * WebProcess/WebPage/ios/WebPageIOS.mm:
667         (WebKit::WebPage::blurAssistedNode):
668         (WebKit::WebPage::setAssistedNodeValue):
669         (WebKit::WebPage::setAssistedNodeValueAsNumber):
670         (WebKit::WebPage::setAssistedNodeSelectedIndex):
671         (WebKit::WebPage::getPositionInformation):
672         (WebKit::WebPage::performActionOnElement):
673         (WebKit::isAssistableNode):
674         (WebKit::WebPage::getAssistedNodeInformation):
675
676 2014-10-02  Daniel Bates  <dabates@apple.com>
677
678         Clean up: Move XPC forward declarations in JavaScriptCore to WTF SPI wrapper header
679         https://bugs.webkit.org/show_bug.cgi?id=137277
680
681         Reviewed by Alexey Proskuryakov.
682
683         Use wtf/spi/darwin/XPCSPI.h instead of including the corresponding XPC headers/
684         forward declaring XPC functions.
685
686         * Platform/IPC/Connection.h:
687         * Platform/IPC/mac/ConnectionMac.mm:
688         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
689         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
690         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
691
692 2014-10-02  Ryuan Choi  <ryuan.choi@gmail.com>
693
694         [EFL][WK2] test_ewk2_view is failed
695         https://bugs.webkit.org/show_bug.cgi?id=132983
696
697         Reviewed by Gyuyoung Kim.
698
699         Enable test_ewk2_view because test cases of test_ewk2_view are passed except
700         for few tests related to device_pixel_ratio.
701         This patch adds macro guard for ailed test case to CAIRO_SURFACE_SET_DEVICE_SCALE macro.
702         In addition, fixed some warnings while building with test_ewk2_view.
703
704         * PlatformEfl.cmake: Enables test_ewk2_view.
705         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.cpp: Added const keyword for argument to fix the warnings.
706         (EWK2UnitTest::EWK2UnitTestBase::keyDown):
707         (EWK2UnitTest::EWK2UnitTestBase::keyUp):
708         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestBase.h:
709         * UIProcess/API/efl/tests/test_ewk2_view.cpp:
710         (TEST_F):
711
712 2014-10-02  JinYoung Hur  <hurims@gmail.com>
713
714         Minor bug in UIClient::exceededDatabaseQuota()
715         https://bugs.webkit.org/show_bug.cgi?id=137213
716
717         Reviewed by Anders Carlsson.
718
719         Make sure not to call the completion handler twice if exceededDatabaseQuota is null.
720
721         * UIProcess/API/C/WKPage.cpp:
722         (WKPageSetPageUIClient):
723
724 2014-10-01  Mark Rowe  <mrowe@apple.com>
725
726         <https://webkit.org/b/137308> WebKit should build on OS X Yosemite for external users
727
728         Reviewed by Dan Bernstein.
729
730         * Configurations/DebugRelease.xcconfig: Use libWebKitSystemInterfaceYosemite.a on Yosemite.
731
732 2014-10-01  Commit Queue  <commit-queue@webkit.org>
733
734         Unreviewed, rolling out r174180, r174183, and r174186.
735         https://bugs.webkit.org/show_bug.cgi?id=137320
736
737         Broke the Mac MountainLion build. Will investigate offline.
738         (Requested by dydz on #webkit).
739
740         Reverted changesets:
741
742         "Clean up: Move XPC forward declarations in JavaScriptCore to
743         WTF SPI wrapper header"
744         https://bugs.webkit.org/show_bug.cgi?id=137277
745         http://trac.webkit.org/changeset/174180
746
747         "Attempt to fix the build after
748         <https://trac.webkit.org/changeset/174180>"
749         https://bugs.webkit.org/show_bug.cgi?id=137277
750         http://trac.webkit.org/changeset/174183
751
752         "Another attempt to fix the Mac build after
753         <https://trac.webkit.org/changeset/174180>"
754         https://bugs.webkit.org/show_bug.cgi?id=137277
755         http://trac.webkit.org/changeset/174186
756
757 2014-10-01  Daniel Bates  <dabates@apple.com>
758
759         Clean up: Move XPC forward declarations in JavaScriptCore to WTF SPI wrapper header
760         https://bugs.webkit.org/show_bug.cgi?id=137277
761
762         Reviewed by Alexey Proskuryakov.
763
764         Use wtf/spi/darwin/XPCSPI.h instead of including the corresponding XPC headers/
765         forward declaring XPC functions.
766
767         * Platform/IPC/Connection.h:
768         * Platform/IPC/mac/ConnectionMac.mm:
769         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
770         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
771         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
772
773 2014-10-01  Christophe Dumez  <cdumez@apple.com>
774
775         Use is<>() / downcast<>() for Event classes
776         https://bugs.webkit.org/show_bug.cgi?id=137284
777
778         Reviewed by Andreas Kling.
779
780         Use is<>() / downcast<>() for Event classes.
781
782         * WebProcess/Plugins/PluginView.cpp:
783         (WebKit::PluginView::handleEvent):
784
785 2014-10-01  Joseph Pecoraro  <pecoraro@apple.com>
786
787         [iOS] <select> with <optgroup> may change initial selected option when assisted
788         https://bugs.webkit.org/show_bug.cgi?id=137261
789
790         Reviewed by Enrica Casucci.
791
792         The initial assignemnt of _singleSelectionIndex was calculating the
793         item index (ignoring groups) instead of the row index (affected by
794         groups!). Thus if there was N groups we would select the row N
795         before the real selection.
796
797         Also avoid this entirely if this is a multiple selection picker.
798         This logic is only needed for single selection with groups.
799
800         * UIProcess/ios/forms/WKFormSelectPicker.mm:
801         (-[WKMultipleSelectPicker initWithView:]):
802
803 2014-09-30  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
804
805         [EFL] Rename TEST_THEME_DIR macro
806         https://bugs.webkit.org/show_bug.cgi?id=137244
807
808         Reviewed by Csaba Osztrogonác.
809
810         TEST_THEME_DIR is to get a path for default theme though, it has used TEST_ prefix.
811         DEFAULT_THEME_DIR is better than it.
812
813         * UIProcess/API/efl/tests/UnitTestUtils/EWK2UnitTestEnvironment.cpp:
814         (EWK2UnitTest::EWK2UnitTestEnvironment::defaultTheme):
815         (EWK2UnitTest::EWK2UnitTestEnvironment::pathForTheme):
816         * UIProcess/efl/WebInspectorProxyEfl.cpp:
817         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
818
819 2014-09-30  Christophe Dumez  <cdumez@apple.com>
820
821         Generalize is<>() / downcast<>() support to all types
822         https://bugs.webkit.org/show_bug.cgi?id=137243
823
824         Reviewed by Benjamin Poulain.
825
826         Generalize is<>() / downcast<>() support to all types, not just Nodes.
827
828         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm:
829         (-[WKDOMDocument createElement:]):
830         (-[WKDOMDocument createTextNode:]):
831         (-[WKDOMDocument body]):
832         * WebProcess/InjectedBundle/API/mac/WKDOMText.mm:
833         (-[WKDOMText data]):
834         (-[WKDOMText setData:]):
835
836 2014-09-30  Chris Dumez  <cdumez@apple.com>
837
838         Use is<>() / downcast<>() for Element
839         https://bugs.webkit.org/show_bug.cgi?id=137241
840
841         Reviewed by Andreas Kling.
842
843         Use is<>() / downcast<>() for Element instead of isElementNode() /
844         toElement().
845
846         * Shared/WebRenderObject.cpp:
847         (WebKit::WebRenderObject::WebRenderObject):
848         * WebProcess/InjectedBundle/API/mac/WKDOMElement.mm:
849         (-[WKDOMElement hasAttribute:]):
850         (-[WKDOMElement getAttribute:]):
851         (-[WKDOMElement setAttribute:value:]):
852         (-[WKDOMElement tagName]):
853         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
854         (WebKit::InjectedBundleNodeHandle::elementBounds):
855         * WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp:
856         (WebKit::InjectedBundleHitTestResult::mediaType):
857         * WebProcess/WebPage/ios/WebPageIOS.mm:
858         (WebKit::WebPage::sendTapHighlightForNodeIfNecessary):
859         (WebKit::WebPage::blurAssistedNode):
860         (WebKit::WebPage::getPositionInformation):
861         (WebKit::nextFocusableElement):
862         (WebKit::WebPage::elementDidFocus):
863
864 2014-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
865
866         REGRESSION(r173929): [GTK] TestInspector fails after r173929
867         https://bugs.webkit.org/show_bug.cgi?id=137247
868
869         Reviewed by Philippe Normand.
870
871         Add WebKitWebInspector:can-attach property to notify when the
872         inspector attach availability changes.
873
874         * UIProcess/API/C/gtk/WKInspectorClientGtk.h:
875         * UIProcess/API/gtk/WebKitWebInspector.cpp:
876         (webkit_web_inspector_class_init): Add WebKitWebInspector:can-attach property.
877         (didChangeAttachAvailability): Emit notify::can-attach.
878         (webkitWebInspectorCreate): Add implementation for didChangeAttachAvailability.
879         (webkit_web_inspector_get_can_attach): Return whether the inspector can be attached.
880         * UIProcess/API/gtk/WebKitWebInspector.h:
881         * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Add index of new symbols in 2.8.
882         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
883         * UIProcess/gtk/WebInspectorClientGtk.cpp:
884         (WebKit::WebInspectorClientGtk::didChangeAttachAvailability):
885         * UIProcess/gtk/WebInspectorClientGtk.h:
886         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
887         (WebKit::WebInspectorProxy::platformAttachAvailabilityChanged): Notify the client.
888
889 2014-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
890
891         [GTK] The remote web inspector shows the HTML content as plain text
892         https://bugs.webkit.org/show_bug.cgi?id=137250
893
894         Reviewed by Gustavo Noronha Silva.
895
896         Use GResource API directly to get the resource data, instead of
897         using the GFile API, and use g_content_type_guess() to get the
898         MIME Type.
899
900         * UIProcess/InspectorServer/gtk/WebInspectorServerGtk.cpp:
901         (WebKit::WebInspectorServer::platformResourceForPath):
902
903 2014-09-30  Carlos Garcia Campos  <cgarcia@igalia.com>
904
905         [GTK] Move GtkPopupMenu implementation to WebPopupMenuProxyGtk
906         https://bugs.webkit.org/show_bug.cgi?id=137193
907
908         Reviewed by Gustavo Noronha Silva.
909
910         GtkPopupMenu was in platform only to have a common implementation to
911         be shared with WebKit1. Now that it's only used by
912         WebPopupMenuProxyGtk in WebKit2, we can simplify the code by
913         merging the implementation directly into WebPopupMenuProxyGtk.
914
915         * UIProcess/gtk/WebPopupMenuProxyGtk.cpp:
916         (WebKit::WebPopupMenuProxyGtk::WebPopupMenuProxyGtk):
917         (WebKit::WebPopupMenuProxyGtk::~WebPopupMenuProxyGtk):
918         (WebKit::WebPopupMenuProxyGtk::populatePopupMenu):
919         (WebKit::WebPopupMenuProxyGtk::showPopupMenu):
920         (WebKit::WebPopupMenuProxyGtk::hidePopupMenu):
921         (WebKit::WebPopupMenuProxyGtk::typeAheadFind):
922         (WebKit::WebPopupMenuProxyGtk::resetTypeAheadFindState):
923         (WebKit::WebPopupMenuProxyGtk::selectItemCallback):
924         (WebKit::WebPopupMenuProxyGtk::keyPressEventCallback):
925         * UIProcess/gtk/WebPopupMenuProxyGtk.h:
926         (WebKit::WebPopupMenuProxyGtk::setCurrentlySelectedMenuItem):
927
928 2014-09-29  Christophe Dumez  <cdumez@apple.com>
929
930         Use is<>() / downcast<>() for Document
931         https://bugs.webkit.org/show_bug.cgi?id=137221
932
933         Reviewed by Andreas Kling.
934
935         Use is<>() / downcast<>() for Document instead of isDocumentNode() /
936         toDocument().
937
938         * WebProcess/InjectedBundle/API/mac/WKDOMDocument.mm:
939         (-[WKDOMDocument createElement:]):
940         (-[WKDOMDocument createTextNode:]):
941         (-[WKDOMDocument body]):
942
943 2014-09-29  Commit Queue  <commit-queue@webkit.org>
944
945         Unreviewed, rolling out r174045.
946         https://bugs.webkit.org/show_bug.cgi?id=137231
947
948         Introduced a crash during page loading tests on Mac (Requested
949         by rniwa on #webkit).
950
951         Reverted changeset:
952
953         "Replace OSObjectPtr with RetainPtr/adoptOS"
954         https://bugs.webkit.org/show_bug.cgi?id=137158
955         http://trac.webkit.org/changeset/174045
956
957 2014-09-29  Anders Carlsson  <andersca@apple.com>
958
959         Set the TBA versions based on the PLATFORM_NAME
960         https://bugs.webkit.org/show_bug.cgi?id=137226
961         Follow-up fix for <rdar://problem/17761459>.
962
963         Reviewed by Dan Bernstein.
964
965         * mac/rewrite-availability-macros.sh:
966         Turns out that MACOSX_DEPLOYMENT_TARGET is set even for iOS builds,
967         so set the versions based on the PLATFORM_NAME environment variable.
968
969 2014-09-29  Dan Bernstein  <mitz@apple.com>
970
971         Build fix.
972
973         * WebProcess/WebPage/ios/WebPageIOS.mm:
974         (WebKit::WebPage::performActionOnElement):
975
976 2014-09-27  Andy Estes  <aestes@apple.com>
977
978         [iOS] Add basic support for link navigation in WKPDFView
979         https://bugs.webkit.org/show_bug.cgi?id=137182
980
981         Reviewed by Tim Horton.
982
983         Teach WKPDFView to navigate to URLs when PDF link annotations are tapped.
984
985         * UIProcess/WebPageProxy.cpp:
986         (WebKit::WebPageProxy::navigateToURLWithSimulatedClick): Sent Messages::WebPage::NavigateToURLWithSimulatedClick.
987         * UIProcess/WebPageProxy.h:
988         * UIProcess/ios/WKPDFView.h:
989         * UIProcess/ios/WKPDFView.mm:
990         (-[WKPDFView _clearPages]): Removed self as the UIPDFAnnotationControllerDelegate.
991         (-[WKPDFView _revalidateViews]): Added self as the UIPDFAnnotationControllerDelegate.
992         (-[WKPDFView annotation:wasTouchedAtPoint:controller:]): Retrieved the URL from the touched annotation,
993         computed the touched point relative to the WKPDFView and to the screen, and called
994         navigateToURLWithSimulatedClick() after a 200 ms delay in order to show a soon-to-be-added tap highlight
995         (this value matches the delay in UIWebPDFView).
996         * WebProcess/WebPage/WebPage.cpp:
997         (WebKit::WebPage::navigateToURLWithSimulatedClick): Created a fake single-click MouseEvent and called
998         FrameLoader::urlSelected(). Creating a mouse event ensures that the navigation appears as a
999         NavigationTypeLinkClicked in navigation policy delegates.
1000         * WebProcess/WebPage/WebPage.h:
1001         * WebProcess/WebPage/WebPage.messages.in:
1002
1003 2014-09-29  Christophe Dumez  <cdumez@apple.com>
1004
1005         Use the new is<>() / downcast<>() for Text Nodes
1006         https://bugs.webkit.org/show_bug.cgi?id=137188
1007
1008         Reviewed by Darin Adler.
1009
1010         Use the new is<>() / downcast<>() functions for Text Nodes instead of
1011         isText() / toText().
1012
1013         * WebProcess/InjectedBundle/API/mac/WKDOMText.mm:
1014         (-[WKDOMText data]):
1015         (-[WKDOMText setData:]):
1016
1017 2014-09-29  Christophe Dumez  <cdumez@apple.com>
1018
1019         Make is<>() / downcast<>() work for HTMLDocument and its subclasses
1020         https://bugs.webkit.org/show_bug.cgi?id=137169
1021
1022         Reviewed by Darin Adler.
1023
1024         Use is<>() / downcast<>() for HTMLDocument and its subclasses.
1025
1026         * WebProcess/WebPage/WebPage.cpp:
1027         (WebKit::WebPage::pdfDocumentForPrintingFrame):
1028
1029 2014-09-29  Tibor Meszaros  <tmeszaros.u-szeged@partner.samsung.com>
1030
1031         Fix !ENABLE(INSPECTOR) build after r173929
1032         https://bugs.webkit.org/show_bug.cgi?id=137210
1033
1034         Reviewed by Timothy Hatcher.
1035
1036         * UIProcess/WebProcessProxy.cpp:
1037         (WebKit::WebProcessProxy::getLaunchOptions):
1038
1039 2014-09-29  Carlos Garcia Campos  <cgarcia@igalia.com>
1040
1041         REGRESSION(r172919): WebKitPluginProcess fails to scan GTK+2 plugins after r172919.
1042         https://bugs.webkit.org/show_bug.cgi?id=137191
1043
1044         Reviewed by Philippe Normand.
1045
1046         In r172919 I moved the GTK+ symbols mix check earlier, before the
1047         plugin is loaded and initialized. That made impossible to use the
1048         GTK3 plugin process to scan gtk2 plugins, because we need to load
1049         the plugin to get its metadata. But we don't need to initialize
1050         the plugin to check if it requires GTK2, so we can do that check
1051         in the UI process to decide which plugin process to use.
1052
1053         * Shared/Plugins/Netscape/x11/NetscapePluginModuleX11.cpp:
1054         (WebKit::NetscapePluginModule::getPluginInfoForLoadedPlugin):
1055         Remove the requires GTK2 check.
1056         (WebKit::NetscapePluginModule::scanPlugin): Don't write
1057         requires-gtk2 to stdout.
1058         * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
1059         (WebKit::pluginRequiresGtk2): Helper function to check if the
1060         given plugin path requires GTK2.
1061         (WebKit::PluginProcessProxy::scanPlugin): Check if the plugin path
1062         requires GTK2 and use WebKitPluginProcess2 in such case, or return
1063         early if GTK2 plugins are not enabled. Log error messages when
1064         something fails scanning the plugin to make it easiert to debug
1065         problems in the future.
1066
1067 2014-09-28  Myles C. Maxfield  <mmaxfield@apple.com>
1068
1069         Replace wkGetGlyphsForCharacters() with CGFontGetGlyphsForUnichars()
1070         https://bugs.webkit.org/show_bug.cgi?id=137197
1071
1072         Reviewed by Alexey Proskuryakov.
1073
1074         No new tests because there is no behavior change.
1075
1076         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
1077         (InitWebCoreSystemInterface):
1078         * mac/WebKit2.order:
1079
1080 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1081
1082         Use std::unique_ptr for ContextMenuController
1083         https://bugs.webkit.org/show_bug.cgi?id=137178
1084
1085         Reviewed by Darin Adler.
1086
1087         Switch to using std::unique_ptr instead of OwnPtr and PassOwnPtr
1088         for ContextMenuController class. Inherited class is changed by this use as well.
1089
1090         * WebProcess/WebCoreSupport/WebContextMenuClient.cpp:
1091         (WebKit::WebContextMenuClient::customizeMenu):
1092         * WebProcess/WebCoreSupport/WebContextMenuClient.h:
1093
1094 2014-09-28  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
1095
1096         Move ColorInputType class to std::unique_ptr
1097         https://bugs.webkit.org/show_bug.cgi?id=137173
1098
1099         Reviewed by Darin Adler.
1100
1101         Replace uses of PassOwnPtr in code under ColorInputType class with std::unique_ptr.
1102         Child classes follow this change as well.
1103
1104         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1105         (WebKit::WebChromeClient::createColorChooser):
1106         * WebProcess/WebCoreSupport/WebChromeClient.h:
1107
1108 2014-09-26  Sam Weinig  <sam@webkit.org>
1109
1110         Replace OSObjectPtr with RetainPtr/adoptOS
1111         https://bugs.webkit.org/show_bug.cgi?id=137158
1112
1113         Reviewed by Dan Bernstein.
1114
1115         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm:
1116         (DatabaseServiceInitializer):
1117         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
1118         (WebKit::NetworkServiceInitializerDelegate::NetworkServiceInitializerDelegate):
1119         (NetworkServiceInitializer):
1120         * Platform/IPC/Connection.h:
1121         (IPC::Connection::Identifier::Identifier):
1122         * Platform/IPC/mac/ConnectionMac.mm:
1123         (IPC::ConnectionTerminationWatchdog::createConnectionTerminationWatchdog):
1124         (IPC::ConnectionTerminationWatchdog::ConnectionTerminationWatchdog):
1125         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
1126         (WebKit::PluginServiceInitializerDelegate::PluginServiceInitializerDelegate):
1127         (PluginServiceInitializer):
1128         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
1129         (WebKit::XPCServiceInitializerDelegate::XPCServiceInitializerDelegate):
1130         (WebKit::XPCServiceInitializer):
1131         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm:
1132         (WebKit::XPCServiceInitializerDelegate::checkEntitlements):
1133         (WebKit::XPCServiceInitializerDelegate::hasEntitlement):
1134         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
1135         (WebKit::XPCServiceEventHandler):
1136         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
1137         (WebKit::XPCServiceEventHandler):
1138         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
1139         (WebKit::connectToService):
1140         (WebKit::connectToReExecService):
1141         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
1142         (WebContentServiceInitializer):
1143
1144 2014-09-26  Christophe Dumez  <cdumez@apple.com>
1145
1146         Stop using legacy NODE_TYPE_CASTS() macro for HTML Elements
1147         https://bugs.webkit.org/show_bug.cgi?id=137137
1148
1149         Reviewed by Benjamin Poulain.
1150
1151         Use is<>() / downcast<>() where appropriate.
1152
1153         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
1154         (WebKit::PDFPluginTextAnnotation::value):
1155         * WebProcess/Plugins/PluginView.cpp:
1156         (WebKit::PluginView::initializePlugin):
1157         (WebKit::PluginView::pluginSnapshotTimerFired):
1158         (WebKit::PluginView::pluginDidReceiveUserInteraction):
1159         * WebProcess/WebPage/WebPage.cpp:
1160         (WebKit::WebPage::createPlugin):
1161         * WebProcess/WebPage/ios/WebPageIOS.mm:
1162         (WebKit::WebPage::performActionOnElement):
1163
1164 2014-09-26  Anders Carlsson  <andersca@apple.com>
1165
1166         Add API for loading local files
1167         https://bugs.webkit.org/show_bug.cgi?id=137153
1168         rdar://problem/17761459
1169
1170         Reviewed by Oliver Hunt.
1171
1172         * UIProcess/API/Cocoa/WKWebView.h:
1173         * UIProcess/API/Cocoa/WKWebView.mm:
1174         (-[WKWebView loadFileURL:allowingReadAccessToURL:]):
1175         Load the file, wrapping the navigation ID in a WKNavigation using createLoadRequestNavigation.
1176
1177         * UIProcess/WebPageProxy.cpp:
1178         (WebKit::WebPageProxy::loadFile):
1179         * UIProcess/WebPageProxy.h:
1180         Return the navigation ID (or 0 if the navigation failed).
1181
1182 2014-09-26  Timothy Hatcher  <timothy@apple.com>
1183
1184         Add WKInspector back function stubs that went missing from r173929.
1185         My changes to WKDeprecatedFunctions.cpp got lost in the shuffle.
1186
1187         * Shared/API/c/WKDeprecatedFunctions.cpp:
1188         (WKInspectorIsDebuggingJavaScript):
1189         (WKInspectorToggleJavaScriptDebugging):
1190         (WKInspectorIsProfilingJavaScript):
1191         (WKInspectorToggleJavaScriptProfiling):
1192
1193 2014-09-26  Carlos Garcia Campos  <cgarcia@igalia.com>
1194
1195         REGRESSION(r173929): Web inspector doesn't work after r173929 when INSPECTOR_SERVER is enabled
1196         https://bugs.webkit.org/show_bug.cgi?id=137150
1197
1198         Reviewed by Timothy Hatcher.
1199
1200         The inspector doesn't show any information about the inspected
1201         page because it's sending messages to a remote frontend that is
1202         not running.
1203
1204         * WebProcess/WebPage/WebInspector.cpp:
1205         (WebKit::WebInspector::WebInspector): Initialize m_remoteFrontendConnected.
1206         (WebKit::WebInspector::sendMessageToFrontend): Send
1207         SendMessageToRemoteFrontend message to the UI process when remote
1208         frontend is connected, or SendMessageToFrontend message to
1209         WebInspectorUI otherwise.
1210         (WebKit::WebInspector::remoteFrontendConnected): Set m_remoteFrontendConnected to true.
1211         (WebKit::WebInspector::remoteFrontendDisconnected): Set m_remoteFrontendConnected to false.
1212         * WebProcess/WebPage/WebInspector.h:
1213
1214 2014-09-26  Alberto Garcia  <berto@igalia.com>
1215
1216         [GTK] Don't include full path names in WebKitEnumTypes.h
1217         https://bugs.webkit.org/show_bug.cgi?id=137148
1218
1219         Reviewed by Carlos Garcia Campos.
1220
1221         Replace @filename@ with @basename@ in the template, since we don't
1222         want to include the full path name in the generated header.
1223
1224         * UIProcess/API/gtk/WebKitEnumTypes.h.template:
1225
1226 2014-09-25  Yusuke Suzuki  <utatane.tea@gmail.com>
1227
1228         Clean up unused parameter warnings
1229         https://bugs.webkit.org/show_bug.cgi?id=137107
1230
1231         Reviewed by Benjamin Poulain.
1232
1233         * Scripts/webkit/messages.py:
1234         (generate_message_handler):
1235         Sometimes generated code doesn't use `connection` parameter. So `UNUSED_PARAM(connection)` is necessary.
1236         * UIProcess/API/C/WKPage.cpp:
1237         (WKPageIsPlayingAudio):
1238
1239 2014-09-25  Christophe Dumez  <cdumez@apple.com>
1240
1241         Use is<HTML*Element>() instead of isHTML*Element() - Part 2
1242         https://bugs.webkit.org/show_bug.cgi?id=137103
1243
1244         Reviewed by Benjamin Poulain.
1245
1246         Use is<HTML*Element>() instead of isHTML*Element().
1247
1248         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1249         (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
1250         * WebProcess/WebPage/WebFrame.cpp:
1251         (WebKit::WebFrame::containsAnyFormElements):
1252         * WebProcess/WebPage/WebPage.cpp:
1253         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
1254         * WebProcess/WebPage/ios/WebPageIOS.mm:
1255         (WebKit::WebPage::getAssistedNodeInformation):
1256
1257 2014-09-25  Anders Carlsson  <andersca@apple.com>
1258
1259         Expand WK_MAC_TBA and WK_IOS_TBA to the current deployment target version (or NA).
1260         https://bugs.webkit.org/show_bug.cgi?id=137127
1261         Part of rdar://problem/17761459.
1262
1263         Reviewed by Dan Bernstein.
1264
1265         * mac/rewrite-availability-macros.sh:
1266
1267 2014-09-25  Tim Horton  <timothy_horton@apple.com>
1268
1269         CommitLayerTree decode fails in 32-bit apps on 64-bit devices (TransformationMatrix alignment differs)
1270         https://bugs.webkit.org/show_bug.cgi?id=136444
1271         <rdar://problem/17952526>
1272
1273         Reviewed by Anders Carlsson.
1274
1275         * Shared/WebCoreArgumentCoders.cpp:
1276         (IPC::ArgumentCoder<TransformationMatrix>::encode):
1277         (IPC::ArgumentCoder<TransformationMatrix>::decode):
1278         Stop using SimpleArgumentCoder to encode/decode TransformationMatrix,
1279         because the alignment of TransformationMatrix differs between architectures,
1280         and there's no guarantee that both sides of a connection are the same architecture.
1281
1282 2014-09-25  Alberto Garcia  <berto@igalia.com>
1283
1284         Unreviewed typo fix.
1285
1286         * UIProcess/API/C/soup/WKContextSoup.cpp:
1287
1288 2014-09-25  Shivakumar JM  <shiva.jm@samsung.com>
1289
1290         [WebKit2] Fix build warning in WebKit2/WebProcess module.
1291         https://bugs.webkit.org/show_bug.cgi?id=137105
1292
1293         Reviewed by Csaba Osztrogonác.
1294
1295         Fix build warning by removing unused parameter names
1296
1297         * WebProcess/WebPage/WebInspector.h:
1298         (WebKit::WebInspector::didReceiveInvalidMessage):
1299         * WebProcess/WebPage/WebInspectorUI.h:
1300         (WebKit::WebInspectorUI::didReceiveInvalidMessage):
1301
1302 2014-09-24  Sam Weinig  <sam@webkit.org>
1303
1304         Remove incorrect use of the BKSProcessAssertionAllowSuspendOnSleep flag for process suspension in iOS WebKit2
1305         <rdar://problem/18400566>
1306         https://bugs.webkit.org/show_bug.cgi?id=137077
1307
1308         Reviewed by Anders Carlsson.
1309
1310         * UIProcess/ios/ProcessAssertionIOS.mm:
1311         Remove use of the BKSProcessAssertionAllowSuspendOnSleep which does not do what we expect, and instead
1312         causes processes to be suspended "forever" after sleep.
1313
1314 2014-09-24  Christophe Dumez  <cdumez@apple.com>
1315
1316         Use is<HTML*Element>() instead of isHTML*Element() - Part 1
1317         https://bugs.webkit.org/show_bug.cgi?id=137068
1318
1319         Reviewed by Ryosuke Niwa.
1320
1321         Start using is<HTML*Element>() instead of isHTML*Element().
1322         Remaining usages will be updated in a follow-up patch to
1323         reduce the size of the change.
1324
1325         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1326         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
1327         (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
1328         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
1329         (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
1330         (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
1331         (WebKit::InjectedBundleNodeHandle::isTextField):
1332         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1333         (WebKit::WebChromeClient::focusedElementChanged):
1334         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1335         (WebKit::WebEditorClient::textFieldDidBeginEditing):
1336         (WebKit::WebEditorClient::textFieldDidEndEditing):
1337         (WebKit::WebEditorClient::textDidChangeInTextField):
1338         (WebKit::WebEditorClient::textDidChangeInTextArea):
1339         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
1340         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
1341         * WebProcess/WebPage/WebFrame.cpp:
1342         (WebKit::WebFrame::containsAnyFormControls):
1343         * WebProcess/WebPage/ios/WebPageIOS.mm:
1344         (WebKit::WebPage::setAssistedNodeValue):
1345         (WebKit::WebPage::setAssistedNodeValueAsNumber):
1346         (WebKit::WebPage::setAssistedNodeSelectedIndex):
1347
1348 2014-09-23  Ada Chan  <adachan@apple.com>
1349
1350         Add stub implementation of WKPageIsPlayingAudio().
1351         https://bugs.webkit.org/show_bug.cgi?id=137044
1352
1353         Reviewed by Anders Carlsson.
1354
1355         Also add an isPlayingAudioDidChange callback to WKPageUIClient.
1356
1357         * UIProcess/API/C/WKPage.cpp:
1358         (WKPageIsPlayingAudio):
1359         * UIProcess/API/C/WKPagePrivate.h:
1360         * UIProcess/API/C/WKPageUIClient.h:
1361
1362 2014-09-21  Timothy Hatcher  <timothy@apple.com>
1363
1364         Make the Web Inspector use a separate web process.
1365
1366         https://bugs.webkit.org/show_bug.cgi?id=135120
1367
1368         Reviewed by Anders Carlsson.
1369
1370         * CMakeLists.txt:
1371         * DerivedSources.make:
1372         * PlatformEfl.cmake:
1373         * PlatformGTK.cmake:
1374         * WebKit2.xcodeproj/project.pbxproj:
1375         Added new WebInspectorUI files and removed WebInspectorFrontendClient.cpp.
1376
1377         * Shared/APIObject.h: Added BundleInspectorUI.
1378
1379         * Shared/EntryPointUtilities/mac/LegacyProcess/ChildProcessEntryPoint.mm:
1380         (WebKit::ChildProcessMainDelegate::getExtraInitializationData):
1381         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm:
1382         (WebKit::XPCServiceInitializerDelegate::getExtraInitializationData):
1383         Add support for "inspector-process" data, a boolean that is used by
1384         WebProcess::initializeProcessName.
1385
1386         * UIProcess/API/C/WKInspector.cpp:
1387         (WKInspectorIsDebuggingJavaScript):
1388         (WKInspectorToggleJavaScriptDebugging):
1389         (WKInspectorIsProfilingJavaScript):
1390         (WKInspectorToggleJavaScriptProfiling):
1391         * UIProcess/API/C/WKInspector.h:
1392         Stub out functions we don't support but need to keep for nightly compatibility.
1393
1394         * UIProcess/WebInspectorProxy.cpp:
1395         (WebKit::WebInspectorPageGroups::createInspectorPageGroup):
1396         (WebKit::WebInspectorProxy::WebInspectorProxy):
1397         (WebKit::WebInspectorProxy::invalidate):
1398         (WebKit::WebInspectorProxy::connect):
1399         (WebKit::WebInspectorProxy::showConsole):
1400         (WebKit::WebInspectorProxy::showResources):
1401         (WebKit::WebInspectorProxy::showMainResourceForFrame):
1402         (WebKit::WebInspectorProxy::attach):
1403         (WebKit::WebInspectorProxy::detach):
1404         (WebKit::WebInspectorProxy::inspectorContext):
1405         (WebKit::WebInspectorProxy::dispatchMessageFromRemoteFrontend):
1406         (WebKit::WebInspectorProxy::eagerlyCreateInspectorPage):
1407         (WebKit::WebInspectorProxy::createInspectorPage):
1408         (WebKit::WebInspectorProxy::open):
1409         (WebKit::WebInspectorProxy::didClose):
1410         (WebKit::WebInspectorProxy::attachAvailabilityChanged):
1411         * UIProcess/WebInspectorProxy.h:
1412         (WebKit::WebInspectorProxy::isConnected):
1413         (WebKit::WebInspectorProxy::canAttach):
1414         * UIProcess/WebInspectorProxy.messages.in:
1415         * UIProcess/efl/WebInspectorProxyEfl.cpp:
1416         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1417         * UIProcess/gtk/WebInspectorProxyGtk.cpp:
1418         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1419         (WebKit::WebInspectorProxy::platformAttach):
1420         * UIProcess/mac/WebInspectorProxyMac.mm:
1421         (-[WKWebInspectorProxyObjCAdapter close]):
1422         (WebKit::WebInspectorProxy::platformCreateInspectorPage):
1423         (WebKit::WebInspectorProxy::platformDidClose):
1424         (WebKit::WebInspectorProxy::platformHide):
1425         (WebKit::WebInspectorProxy::platformSave):
1426         (WebKit::WebInspectorProxy::platformAppend):
1427         (WebKit::WebInspectorProxy::platformAttach):
1428         Changed how the Inspector page is created by making it in a new WebContext for
1429         the Inspector. This removes us from the main process pool and guarantees no process
1430         sharing for our user interface. Also send new WebInspectorUI messages to the Inspector
1431         page and not the inspected page when appropriate.
1432
1433         * UIProcess/WebProcessProxy.cpp:
1434         (WebKit::WebProcessProxy::getLaunchOptions): Add "inspector-process" to extraInitializationData
1435         if the context is the Inspector context. This is used by WebProcess::initializeProcessName.
1436
1437         * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
1438         (WebKit::WebInspectorClient::openInspectorFrontend):
1439         (WebKit::WebInspectorClient::closeInspectorFrontend):
1440         (WebKit::WebInspectorClient::bringFrontendToFront):
1441         * WebProcess/WebCoreSupport/WebInspectorClient.h:
1442         Remove the InspectorFrontendChannel class from WebInspectorClient and clean up a little.
1443         InspectorFrontendChannel implementation moved to WebInspector.
1444
1445         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp: Removed. Superseded by WebInspectorUI.
1446
1447         * WebProcess/WebPage/WebInspector.cpp:
1448         (WebKit::WebInspector::create):
1449         (WebKit::WebInspector::WebInspector):
1450         (WebKit::WebInspector::createInspectorPage):
1451         (WebKit::WebInspector::closeFrontend):
1452         (WebKit::WebInspector::openInNewTab):
1453         (WebKit::WebInspector::showConsole):
1454         (WebKit::WebInspector::showResources):
1455         (WebKit::WebInspector::showMainResourceForFrame):
1456         (WebKit::WebInspector::startPageProfiling):
1457         (WebKit::WebInspector::stopPageProfiling):
1458         (WebKit::WebInspector::canAttachWindow):
1459         (WebKit::WebInspector::updateDockingAvailability):
1460         (WebKit::WebInspector::sendMessageToBackend):
1461         (WebKit::WebInspector::sendMessageToFrontend):
1462         (WebKit::WebInspector::remoteFrontendConnected):
1463         (WebKit::WebInspector::remoteFrontendDisconnected):
1464         * WebProcess/WebPage/WebInspector.h:
1465         (WebKit::WebInspector::didClose):
1466         (WebKit::WebInspector::didReceiveInvalidMessage):
1467         (WebKit::WebInspector::setAttached):
1468         * WebProcess/WebPage/WebInspector.messages.in:
1469         Stop taking an optional InspectorFrontendChannel and inherit it instead. Create a connection that
1470         can be passed to the other web process for WebInspectorUI to use. Stop referencing Inspector's page
1471         directly, since it is in another process now.
1472
1473         * WebProcess/WebPage/WebInspectorUI.cpp: Added.
1474         (WebKit::WebInspectorUI::create):
1475         (WebKit::WebInspectorUI::WebInspectorUI):
1476         (WebKit::WebInspectorUI::establishConnection):
1477         (WebKit::WebInspectorUI::windowObjectCleared):
1478         (WebKit::WebInspectorUI::frontendLoaded):
1479         (WebKit::WebInspectorUI::moveWindowBy):
1480         (WebKit::WebInspectorUI::bringToFront):
1481         (WebKit::WebInspectorUI::closeWindow):
1482         (WebKit::WebInspectorUI::requestSetDockSide):
1483         (WebKit::WebInspectorUI::setDockSide):
1484         (WebKit::WebInspectorUI::changeAttachedWindowHeight):
1485         (WebKit::WebInspectorUI::changeAttachedWindowWidth):
1486         (WebKit::WebInspectorUI::setToolbarHeight):
1487         (WebKit::WebInspectorUI::openInNewTab):
1488         (WebKit::WebInspectorUI::save):
1489         (WebKit::WebInspectorUI::append):
1490         (WebKit::WebInspectorUI::inspectedURLChanged):
1491         (WebKit::WebInspectorUI::showConsole):
1492         (WebKit::WebInspectorUI::showResources):
1493         (WebKit::WebInspectorUI::showMainResourceForFrame):
1494         (WebKit::WebInspectorUI::startPageProfiling):
1495         (WebKit::WebInspectorUI::stopPageProfiling):
1496         (WebKit::WebInspectorUI::didSave):
1497         (WebKit::WebInspectorUI::didAppend):
1498         (WebKit::WebInspectorUI::sendMessageToFrontend):
1499         (WebKit::WebInspectorUI::sendMessageToBackend):
1500         (WebKit::WebInspectorUI::evaluateCommandOnLoad):
1501         (WebKit::WebInspectorUI::evaluateExpressionOnLoad):
1502         (WebKit::WebInspectorUI::evaluatePendingExpressions):
1503         * WebProcess/WebPage/WebInspectorUI.h: Added.
1504         (WebKit::WebInspectorUI::page):
1505         (WebKit::WebInspectorUI::didClose):
1506         (WebKit::WebInspectorUI::didReceiveInvalidMessage):
1507         (WebKit::WebInspectorUI::attachedBottom):
1508         (WebKit::WebInspectorUI::attachedRight):
1509         (WebKit::WebInspectorUI::detached):
1510         (WebKit::WebInspectorUI::evaluateCommandOnLoad):
1511         * WebProcess/WebPage/WebInspectorUI.messages.in: Added.
1512         * WebProcess/WebPage/efl/WebInspectorUIEfl.cpp: Added.
1513         (WebKit::WebInspectorUI::canSave):
1514         (WebKit::WebInspectorUI::localizedStringsURL):
1515         * WebProcess/WebPage/gtk/WebInspectorUIGtk.cpp: Added.
1516         (WebKit::WebInspectorUI::canSave):
1517         (WebKit::WebInspectorUI::localizedStringsURL):
1518         * WebProcess/WebPage/mac/WebInspectorUIMac.mm: Added.
1519         (WebKit::WebInspectorUI::canSave):
1520         (WebKit::WebInspectorUI::localizedStringsURL):
1521         Implement the InspectorFrontendClient and handle a connection to the inspected page's WebInspector.
1522
1523         * WebProcess/WebPage/WebPage.cpp:
1524         (WebKit::WebPage::WebPage):
1525         (WebKit::WebPage::~WebPage):
1526         (WebKit::WebPage::inspector):
1527         (WebKit::WebPage::inspectorUI):
1528         (WebKit::WebPage::didReceiveMessage):
1529         Setup as a listener for WebInspectorUI messages.
1530
1531         * WebProcess/WebPage/WebPage.h:
1532         (WebKit::WebPage::isInspectorPage): It is an Inspector page if we have a m_inspectorUI.
1533
1534         * WebProcess/cocoa/WebProcessCocoa.mm:
1535         (WebKit::WebProcess::initializeProcessName):
1536         Name the process "%@ Web Inspector" if it is an Inspector content process. Processes in that
1537         context are not shared with multiple pages.
1538
1539 2014-09-24  Dean Jackson  <dino@apple.com>
1540
1541         Add a deprecated stub for WKPreferencesSetMultithreadedWebGLEnabled (and Get)
1542         https://bugs.webkit.org/show_bug.cgi?id=137071
1543
1544         Reviewed by Brent Fulgham.
1545
1546         Put in stubs for WKPreferencesSetMultithreadedWebGLEnabled and
1547         WKPreferencesGetMultithreadedWebGLEnabled. These were removed in
1548         r173776 but are still needed for nightly builds to link
1549         (or will be once Yosemite nightlies are available).
1550
1551         * Shared/API/c/WKDeprecatedFunctions.cpp:
1552         (WKPreferencesSetMultithreadedWebGLEnabled):
1553         (WKPreferencesGetMultithreadedWebGLEnabled):
1554
1555 2014-09-24  Daniel Bates  <dabates@apple.com>
1556
1557         [iOS] Fix the iOS build after <http://trac.webkit.org/changeset/173893>
1558         (https://bugs.webkit.org/show_bug.cgi?id=137007)
1559
1560         Add closing parenthesis characters that were inadvertently removed in <http://trac.webkit.org/changeset/173893>.
1561
1562         * WebProcess/WebPage/ios/WebPageIOS.mm:
1563         (WebKit::WebPage::setAssistedNodeSelectedIndex):
1564         (WebKit::WebPage::getAssistedNodeInformation):
1565
1566 2014-09-23  Christophe Dumez  <cdumez@apple.com>
1567
1568         Unreviewed build fix after r173893.
1569
1570         Partial revert of r173893 to fix debug builds.
1571
1572         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
1573         (WebKit::PDFPluginTextAnnotation::value):
1574         * WebProcess/Plugins/PluginView.cpp:
1575         (WebKit::PluginView::initializePlugin):
1576         (WebKit::PluginView::pluginSnapshotTimerFired):
1577         (WebKit::PluginView::pluginDidReceiveUserInteraction):
1578         * WebProcess/WebPage/WebPage.cpp:
1579         (WebKit::WebPage::createPlugin):
1580
1581 2014-09-23  Chris Dumez  <cdumez@apple.com>
1582
1583         Use downcast<HTML*Element>() instead of toHTML*Element()
1584         https://bugs.webkit.org/show_bug.cgi?id=137007
1585
1586         Reviewed by Benjamin Poulain.
1587
1588         Use downcast<HTML*Element>() instead of toHTML*Element().
1589
1590         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1591         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
1592         (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
1593         (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
1594         (WebKit::InjectedBundleNodeHandle::htmlInputElementLastChangeWasUserEdit):
1595         (WebKit::InjectedBundleNodeHandle::htmlTextAreaElementLastChangeWasUserEdit):
1596         (WebKit::InjectedBundleNodeHandle::isTextField):
1597         (WebKit::InjectedBundleNodeHandle::htmlTableCellElementCellAbove):
1598         (WebKit::InjectedBundleNodeHandle::htmlIFrameElementContentFrame):
1599         * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
1600         (WebKit::PDFPluginChoiceAnnotation::commit):
1601         * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
1602         (WebKit::PDFPluginTextAnnotation::createAnnotationElement):
1603         (WebKit::PDFPluginTextAnnotation::value):
1604         * WebProcess/Plugins/PluginView.cpp:
1605         (WebKit::PluginView::initializePlugin):
1606         (WebKit::PluginView::pluginSnapshotTimerFired):
1607         (WebKit::PluginView::pluginDidReceiveUserInteraction):
1608         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1609         (WebKit::WebChromeClient::focusedElementChanged):
1610         * WebProcess/WebCoreSupport/WebEditorClient.cpp:
1611         (WebKit::WebEditorClient::textFieldDidBeginEditing):
1612         (WebKit::WebEditorClient::textFieldDidEndEditing):
1613         (WebKit::WebEditorClient::textDidChangeInTextField):
1614         (WebKit::WebEditorClient::textDidChangeInTextArea):
1615         (WebKit::WebEditorClient::doTextFieldCommandFromEvent):
1616         (WebKit::WebEditorClient::textWillBeDeletedInTextField):
1617         * WebProcess/WebPage/WebPage.cpp:
1618         (WebKit::WebPage::createPlugin):
1619         * WebProcess/WebPage/ios/WebPageIOS.mm:
1620         (WebKit::WebPage::setAssistedNodeValue):
1621         (WebKit::WebPage::setAssistedNodeValueAsNumber):
1622         (WebKit::WebPage::setAssistedNodeSelectedIndex):
1623         (WebKit::isAssistableNode): Deleted.
1624         (WebKit::WebPage::getAssistedNodeInformation): Deleted.
1625
1626 2014-09-23  Jer Noble  <jer.noble@apple.com>
1627
1628         REGRESSION (r171197): Clip's content is drawn behind Safari window when entering Full Screen youtube html5 first time
1629         https://bugs.webkit.org/show_bug.cgi?id=137029
1630
1631         Reviewed by Brent Fulgham.
1632
1633         In r171197, we ordered the full screen window on- and off-screen so that the fullscreen animation went to the
1634         correct screen, which introduced a subtle glitch at the beginning and end of an animation. For entering, ensure
1635         that the window is scaled to its starting size before ordering on-screen. For exiting, order the window off-
1636         screen before resetting its clipping rect.
1637
1638         * UIProcess/mac/WKFullScreenWindowController.mm:
1639         (-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]):
1640         (-[WKFullScreenWindowController finishedExitFullScreenAnimation:]):
1641
1642 2014-09-23  Joseph Pecoraro  <pecoraro@apple.com>
1643
1644         Web Inspector: Should be able to attach a debugger to a JSContext before anything is executed
1645         https://bugs.webkit.org/show_bug.cgi?id=136893
1646
1647         Reviewed by Timothy Hatcher.
1648
1649         * WebProcess/WebPage/WebInspector.cpp:
1650         (WebKit::WebInspector::remoteFrontendConnected):
1651
1652 2014-09-22  Daniel Bates  <dabates@apple.com>
1653
1654         [Cocoa] Add UI delegate callback when window.close() is called
1655         https://bugs.webkit.org/show_bug.cgi?id=137008
1656         <rdar://problem/17801001>
1657
1658         Reviewed by Anders Carlsson.
1659
1660         Implement support infrastructure to notify the UI client when window.close() is called.
1661
1662         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: Added method declaration for -_webViewClose:.
1663         * UIProcess/Cocoa/UIDelegate.h: Added override declaration for API::UIClient::close().
1664         * UIProcess/Cocoa/UIDelegate.mm:
1665         (WebKit::UIDelegate::setDelegate): Wire up delegate method to Objective-C selector, -[WKUIDelegatePrivate _webViewClose:].
1666         (WebKit::UIDelegate::UIClient::close): Added; turns around and calls -[WKUIDelegatePrivate _webViewClose:] (if applicable).
1667
1668 2014-09-21  Chris Dumez  <cdumez@apple.com>
1669
1670         Generate Element casting helper functions
1671         https://bugs.webkit.org/show_bug.cgi?id=136839
1672
1673         Reviewed by Darin Adler.
1674
1675         Use JSXXX::toWrapped() instead of toXXX() function.
1676
1677         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
1678         (WebKit::InjectedBundleNodeHandle::getOrCreate):
1679         * WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp:
1680         (WebKit::InjectedBundleRangeHandle::getOrCreate):
1681         * WebProcess/InjectedBundle/InjectedBundle.cpp:
1682         (WebKit::InjectedBundle::webNotificationID):
1683
1684 2014-09-19  Ryosuke Niwa  <rniwa@webkit.org>
1685
1686         WebContent crash in WebKit::WebPage::expandedRangeFromHandle
1687         https://bugs.webkit.org/show_bug.cgi?id=136969
1688
1689         Reviewed by David Kilzer.
1690
1691         The crash was caused by m_currentBlockSelection and frame.selection().selection().toNormalizedRange()
1692         both being null and the subsequent lines of code assuming currentRange to be not null.
1693
1694         Replace the assertion by an early exit since the range could be null here.
1695
1696         In the future, we should figure out if there are other things we need to do in addition
1697         to checking the nullity when this race condition is hit.
1698
1699         * WebProcess/WebPage/ios/WebPageIOS.mm:
1700         (WebKit::WebPage::computeExpandAndShrinkThresholdsForHandle):
1701
1702 2014-09-19  Dean Jackson  <dino@apple.com>
1703
1704         Multithreaded WebGL is a bad idea - remove it
1705         https://bugs.webkit.org/show_bug.cgi?id=136964
1706         <rdar://problem/18399858>
1707
1708         Reviewed by Brent Fulgham.
1709
1710         Remove the setting to allow multithreaded WebGL.
1711
1712         * Shared/WebPreferencesDefinitions.h:
1713         * UIProcess/API/C/WKPreferences.cpp:
1714         (WKPreferencesSetMultithreadedWebGLEnabled): Deleted.
1715         (WKPreferencesGetMultithreadedWebGLEnabled): Deleted.
1716         * UIProcess/API/C/WKPreferencesRefPrivate.h:
1717         * WebProcess/WebPage/WebPage.cpp:
1718         (WebKit::WebPage::updatePreferences):
1719
1720 2014-09-19  Simon Fraser  <simon.fraser@apple.com>
1721
1722         Provide a default argument for the most commonly used HitTestRequest variant
1723         https://bugs.webkit.org/show_bug.cgi?id=136653
1724
1725         Reviewed by Darin Adler.
1726
1727         Make the default HitTestRequest flags be ReadOnly | Active | DisallowShadowContent
1728         and change call sites using the default flags to use a HitTestRequest temporary.
1729
1730         * WebProcess/WebPage/ViewGestureGeometryCollector.cpp:
1731         (WebKit::ViewGestureGeometryCollector::collectGeometryForSmartMagnificationGesture):
1732         * WebProcess/WebPage/ios/WebPageIOS.mm:
1733         (WebKit::WebPage::dynamicViewportSizeUpdate):
1734
1735 2014-09-19  Daniel Bates  <dabates@apple.com>
1736
1737         Always assume internal SDK when building configuration Production
1738         https://bugs.webkit.org/show_bug.cgi?id=136925
1739         <rdar://problem/18362399>
1740
1741         Reviewed by Dan Bernstein.
1742
1743         As a side effect of this change we will always enable ENABLE_TOUCH_EVENTS, ENABLE_IOS_{GESTURE, TOUCH}_EVENTS,
1744         and ENABLE_XSLT when either building configuration Production or building with the Internal SDK.
1745
1746         * Configurations/Base.xcconfig:
1747
1748 2014-09-19  Simon Fraser  <simon.fraser@apple.com>
1749
1750         Fix the Mac Mavericks build. Only iOS cares about fencing.
1751
1752         * Platform/mac/LayerHostingContext.h:
1753         * Platform/mac/LayerHostingContext.mm:
1754
1755 2014-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1756
1757         [GTK] Missing inspector files in the tarball
1758         https://bugs.webkit.org/show_bug.cgi?id=136952
1759
1760         Reviewed by Gustavo Noronha Silva.
1761
1762         * PlatformGTK.cmake: Use APPEND instead of GLOB to add individual
1763         and generated files to the list of inspector files.
1764
1765 2014-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1766
1767         Webkitgtk 2.5.3: tarball contains APPLE LICENSE file - stating not distributable
1768         https://bugs.webkit.org/show_bug.cgi?id=136632
1769
1770         Reviewed by Gustavo Noronha Silva.
1771
1772         * PlatformGTK.cmake: Use only the icons from the gtk directory since they are free.
1773
1774 2014-09-19  Carlos Garcia Campos  <cgarcia@igalia.com>
1775
1776         [GTK] generate-inspector-gresource-manifest.py should receive the list of files from the makefile
1777         https://bugs.webkit.org/show_bug.cgi?id=136943
1778
1779         Reviewed by Philippe Normand.
1780
1781         * PlatformGTK.cmake: Fix the inspector file list and pass it to
1782         the generate-inspector-gresource-manifest.py script.
1783
1784 2014-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1785
1786         [GTK] Dot not allow to create delete-on-destroy GMainLoopSources
1787         https://bugs.webkit.org/show_bug.cgi?id=136923
1788
1789         Reviewed by Gustavo Noronha Silva.
1790
1791         * Platform/gtk/WorkQueueGtk.cpp:
1792         (WorkQueue::dispatch): Use GMainLoopSource::scheduleAndDeleteOnDestroy().
1793         (WorkQueue::dispatchAfter): Use GMainLoopSource::scheduleAfterDelayAndDeleteOnDestroy().
1794
1795 2014-09-18  Ryuan Choi  <ryuan.choi@gmail.com>
1796
1797         [EFL][CoordinatedGraphics] Remove setBackgroundColor message
1798         https://bugs.webkit.org/show_bug.cgi?id=136824
1799
1800         Reviewed by Gyuyoung Kim.
1801
1802         CoordinatedGraphics used setBackgroundColor() to draw the background of contents
1803         although tiles are not ready.
1804
1805         This patch removes setBackgroundColor() and uses pageExtendedBackgroundColor()
1806         which provides similar functionality.
1807
1808         * UIProcess/API/efl/EwkView.cpp:
1809         Enables or disables WKPageSetBackgroundExtendsBeyondPage to use pageExtendedBackgroundColor()
1810         (EwkView::EwkView):
1811         (EwkView::setBackgroundColor):
1812         * UIProcess/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
1813         (WebCore::CoordinatedGraphicsScene::CoordinatedGraphicsScene):
1814         (WebCore::CoordinatedGraphicsScene::paintToCurrentGLContext): Passed pageExtendedBackgroundColor.
1815         (WebCore::CoordinatedGraphicsScene::paintToGraphicsContext): Ditto.
1816         (WebCore::CoordinatedGraphicsScene::setBackgroundColor): Deleted.
1817         * UIProcess/CoordinatedGraphics/CoordinatedGraphicsScene.h:
1818         (WebCore::CoordinatedGraphicsScene::setDrawsBackground): Deleted.
1819         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
1820         (WebKit::CoordinatedLayerTreeHostProxy::setBackgroundColor): Deleted.
1821         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
1822         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.messages.in:
1823         * UIProcess/CoordinatedGraphics/WebView.cpp:
1824         (WebKit::WebView::paintToCurrentGLContext):
1825         * UIProcess/WebPageProxy.cpp:
1826         (WebKit::WebPageProxy::pageExtendedBackgroundColorDidChange):
1827         Refactored to use const reference for the Color parameter.
1828         * UIProcess/WebPageProxy.h:
1829         * UIProcess/efl/WebViewEfl.cpp:
1830         (WebKit::WebViewEfl::paintToCairoSurface):
1831         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
1832         (WebKit::WebChromeClient::pageExtendedBackgroundColorDidChange):
1833         Added PLATFORM(EFL) to pass PageExtendedBackgroundColorDidChange message.
1834         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.cpp:
1835         (WebKit::CoordinatedLayerTreeHost::setBackgroundColor): Deleted.
1836         * WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:
1837         * WebProcess/WebPage/LayerTreeHost.h:
1838         (WebKit::LayerTreeHost::setBackgroundColor): Deleted.
1839         * WebProcess/WebPage/WebPage.cpp:
1840         (WebKit::WebPage::mainFrameDidLayout):
1841
1842 2014-09-18  Jeremy Jones  <jeremyj@apple.com>
1843
1844         Improve fullscreen video rotation animation.
1845         https://bugs.webkit.org/show_bug.cgi?id=136870
1846
1847         Reviewed by Simon Fraser.
1848
1849         Remove WKCAContext from LayerHostingContext and use a fencePort to synchronize animation between processes.
1850
1851         * Platform/mac/LayerHostingContext.h: add setFencePort. Remove WKCAContext.
1852         * Platform/mac/LayerHostingContext.mm:
1853         (WebKit::LayerHostingContext::createForPort): Remove WKCAContext.
1854         (WebKit::LayerHostingContext::createForExternalHostingProcess): ditto
1855         (WebKit::LayerHostingContext::setRootLayer): ditto
1856         (WebKit::LayerHostingContext::rootLayer): ditto
1857         (WebKit::LayerHostingContext::contextID): ditto
1858         (WebKit::LayerHostingContext::invalidate): ditto
1859         (WebKit::LayerHostingContext::setColorSpace): ditto
1860         (WebKit::LayerHostingContext::colorSpace): ditto
1861         (WebKit::LayerHostingContext::setFencePort): added
1862         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1863         (WebKit::WebVideoFullscreenManagerProxy::setVideoLayerFrame): 
1864         * WebProcess/ios/WebVideoFullscreenManager.h:
1865         * WebProcess/ios/WebVideoFullscreenManager.messages.in: add fence port parameter
1866         * WebProcess/ios/WebVideoFullscreenManager.mm: ditto
1867         (WebKit::WebVideoFullscreenManager::didSetupFullscreen): ditto
1868         (WebKit::WebVideoFullscreenManager::setVideoLayerFrameFenced): ditto
1869
1870 2014-09-18  Simon Fraser  <simon.fraser@apple.com>
1871
1872         Avoid divide by zero when we get an empty rect while snapshotting a node
1873         https://bugs.webkit.org/show_bug.cgi?id=136932
1874         rdar://problem/18383473
1875
1876         Reviewed by Dean Jackson.
1877         
1878         renderer()->paintingRootRect() can return an empty rect for some inline configurations,
1879         for example an <a> containing a floated <span>
1880         
1881         When this occurs, avoid a divide by zero and return a null snapshot image.
1882
1883         * WebProcess/WebPage/WebPage.cpp:
1884         (WebKit::WebPage::snapshotNode):
1885
1886 2014-09-18  Carlos Garcia Campos  <cgarcia@igalia.com>
1887
1888         Incorrect pending API request URL when loading an HTML string
1889         https://bugs.webkit.org/show_bug.cgi?id=136913
1890
1891         Reviewed by Alexey Proskuryakov.
1892
1893         Use about:blank as pending API request URL when the given base URL
1894         is empty, otherwise use the given base URL.
1895
1896         * UIProcess/WebPageProxy.cpp:
1897         (WebKit::WebPageProxy::loadHTMLString):
1898
1899 2014-09-18  Tim Horton  <timothy_horton@apple.com>
1900
1901         Occasional unreproducible crashes in MessageReceiverMap::dispatchMessage
1902         https://bugs.webkit.org/show_bug.cgi?id=136909
1903         <rdar://problem/17758325>
1904
1905         Reviewed by Anders Carlsson.
1906
1907         * UIProcess/API/Cocoa/WKWebView.mm:
1908         (-[WKWebView dealloc]):
1909         We're seeing some messages dispatched on the WebContext that end up
1910         attempting to call dispatchMessage on a freed MessageReceiver.
1911         The WKRemoteObjectRegistry message receiver is added to the WebContext
1912         message receiver map, but never removed, despite the WebContext easily
1913         outliving the WKWebView that owns the remote object registry.
1914
1915 2014-09-17  Rohit Kumar  <kumar.rohit@samsung.com>
1916
1917         [EFL][WK2] Use the correct enum for control key in Ewk_Event_Modifiers in ewk_navigation_policy_decision.cpp
1918         https://bugs.webkit.org/show_bug.cgi?id=136740
1919
1920         Reviewed by Gyuyoung Kim.
1921
1922         * UIProcess/API/efl/ewk_navigation_policy_decision.cpp:
1923         (toEwkEventModifiers):
1924
1925 2014-09-17  Daniel Bates  <dabates@apple.com>
1926
1927         Unreviewed, rolling out r173695.
1928
1929         Broke building third-party Legacy WebKit apps; will
1930         investigate offline
1931
1932         Reverted changeset:
1933
1934         "[iOS] Make WebCore build with public iOS SDK"
1935         https://bugs.webkit.org/show_bug.cgi?id=136487
1936         http://trac.webkit.org/changeset/173695
1937
1938 2014-09-17  Simon Fraser  <simon.fraser@apple.com>
1939
1940         Fix an issue that caused video playback to not always use high resolution streams
1941         https://bugs.webkit.org/show_bug.cgi?id=136879
1942         rdar://problem/18316542
1943
1944         Reviewed by Eric Carlson.
1945         
1946         The underlying video framework expects to be able to use -[CALayer convertRect:toLayer:nil] on
1947         the video layer to obtain information about the display resolution of the video,
1948         including the device scale factor. This doesn't work for layers in the web process,
1949         which are remotely hosted into the UI process.
1950         
1951         For now, use a workaround which involves putting a scale transform equivalent to
1952         the device scale factor on the web process layer, and the inverse scale on the 
1953         hosting layer in the UI process.
1954         
1955         We have to do this in two places, for in-page video, and for fullscreen video.
1956
1957         * Shared/mac/RemoteLayerTreeTransaction.h: Add hostingDeviceScaleFactor to the LayerCreation
1958         properties.
1959         * Shared/mac/RemoteLayerTreeTransaction.mm:
1960         (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::LayerCreationProperties):
1961         (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::encode):
1962         (WebKit::RemoteLayerTreeTransaction::LayerCreationProperties::decode):
1963         * UIProcess/ios/RemoteLayerTreeHostIOS.mm:
1964         (-[WKRemoteView initWithFrame:contextID:hostingDeviceScaleFactor:]): Set the inverse scale
1965         transform on the layer.
1966         (WebKit::RemoteLayerTreeHost::createLayer):
1967         (-[WKRemoteView initWithFrame:contextID:]): Deleted.
1968         * UIProcess/ios/WebVideoFullscreenManagerProxy.h:
1969         * UIProcess/ios/WebVideoFullscreenManagerProxy.messages.in:
1970         * UIProcess/ios/WebVideoFullscreenManagerProxy.mm:
1971         (WebKit::WebVideoFullscreenManagerProxy::setupFullscreenWithID):
1972         * WebProcess/WebPage/mac/PlatformCALayerRemoteCustom.mm:
1973         (WebKit::PlatformCALayerRemoteCustom::PlatformCALayerRemoteCustom):
1974         * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
1975         (WebKit::RemoteLayerTreeContext::deviceScaleFactor):
1976         * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
1977         (WebKit::RemoteLayerTreeContext::layerWasCreated):
1978         * WebProcess/ios/WebVideoFullscreenManager.mm:
1979         (WebKit::WebVideoFullscreenManager::enterFullscreenForNode):
1980         (WebKit::WebVideoFullscreenManager::didSetupFullscreen):
1981
1982 2014-09-17  Gavin Barraclough  <baraclough@apple.com>
1983
1984         Aways have a PageThrottler (sometimes have a UserActivity::Impl)
1985         https://bugs.webkit.org/show_bug.cgi?id=136892
1986
1987         Reviewed by Geoffrey Garen.
1988
1989         Some instances of Page have a PageThrottler to track activity on the Page, and some do not.
1990         (Specifically, those created from WebPage in WK2 do, those related to WK1, SVG & inspector do not).
1991
1992         We do this for three reasons:
1993             * We do not need to take AppNap assertions on WK1.
1994             * Some Pages do not track their visibility correctly, and would always claim to be visible.
1995             * Page VisibilityState is not set until after construction, so if we instantiate
1996
1997         Creating the entire PageThrottler lazily has the drawback that we have to check for its existence at
1998         numerous points throughout the code, and we'll miss activity that occurs between the Page being created
1999         & the PageThrottler added to it (really a theoretical problem right now, since they're currently always
2000         created pretty much back to back).
2001
2002         Instead, Page should always have a PageThrottler, & instead make the UserActivity::Impl on the
2003         PageThrottler be added later.
2004
2005         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2006         (WebKit::NPRuntimeObjectMap::evaluate):
2007             - createPageThrottler -> enablePageThrottler
2008         * WebProcess/WebPage/WebPage.cpp:
2009         (WebKit::WebPage::WebPage):
2010         (WebKit::WebPage::mouseEvent):
2011         (WebKit::WebPage::wheelEvent):
2012         (WebKit::WebPage::keyEvent):
2013             - Page::pageThrottler now returns a reference rather than a pointer
2014
2015 2014-09-17  Daniel Bates  <dabates@apple.com>
2016
2017         [iOS] Make WebCore build with public iOS SDK
2018         https://bugs.webkit.org/show_bug.cgi?id=136487
2019
2020         Reviewed by David Kilzer.
2021
2022         Update WebKit2 source files to include the wrapper SPI headers instead of the corresponding
2023         actual SPI header(s).
2024
2025         * Platform/mac/SharedMemoryMac.cpp:
2026         * Shared/ios/NativeWebTouchEventIOS.mm:
2027         * Shared/mac/RemoteLayerBackingStore.mm:
2028         * Shared/mac/RemoteLayerTreePropertyApplier.mm:
2029         * UIProcess/API/Cocoa/WKWebView.mm:
2030         * UIProcess/ios/WKPDFPageNumberIndicator.mm:
2031         * UIProcess/ios/WKScrollView.mm:
2032         * UIProcess/ios/WebMemoryPressureHandlerIOS.mm:
2033         * UIProcess/ios/forms/WKAirPlayRoutePicker.mm:
2034         * WebProcess/WebPage/WebPage.cpp:
2035
2036 2014-09-17  Gavin Barraclough  <barraclough@apple.com>
2037
2038         DOM timer throttling for hidden plugins
2039         https://bugs.webkit.org/show_bug.cgi?id=136197
2040
2041         Reviewed by Geoff Garen & Andreas Kling.
2042
2043         For non-visible web pages we slow timers (since they can't be driving animations, etc).
2044         We should do the same for plugins.
2045
2046         * PluginProcess/WebProcessConnection.cpp:
2047         * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
2048             - remove now redundant includes.
2049         * WebProcess/Plugins/PluginView.h:
2050             - audioHardwareActivity is now virtual, override.
2051
2052 2014-09-17  Carlos Garcia Campos  <cgarcia@igalia.com>
2053
2054         [GTK] WebKitWebView::load-failed-with-tls-errors should receive the failing URI instead of a host
2055         https://bugs.webkit.org/show_bug.cgi?id=136889
2056
2057         Reviewed by Gustavo Noronha Silva.
2058
2059         We were passing a host for two different reasons, first because
2060         it's more convenient to add an exception with
2061         webkit_web_context_allow_tls_certificate_for_host(), but also
2062         because we were assuming the active URI is the failing URI in case
2063         of failure. This assumption is correct because our current code
2064         does that, but I'm not sure we are doing it on purpose. That
2065         behaviour is not documented anywhere and it's not what WebKit2 does
2066         internaly.
2067
2068         * UIProcess/API/gtk/WebKitWebView.cpp:
2069         (webkit_web_view_class_init):
2070         (webkitWebViewLoadFailedWithTLSErrors):
2071         * UIProcess/API/gtk/WebKitWebView.h:
2072
2073 2014-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2074
2075         [GTK] Fix layering violations in PasteboardGtk
2076         https://bugs.webkit.org/show_bug.cgi?id=136802
2077
2078         Reviewed by Darin Adler.
2079
2080         * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp:
2081         (WebKit::WebEditorClient::updateGlobalSelection): Use new API to
2082         update the global selection.
2083
2084 2014-09-16  Carlos Garcia Campos  <cgarcia@igalia.com>
2085
2086         DragData should not depend on Clipboard, DocumentFragment, and Document
2087         https://bugs.webkit.org/show_bug.cgi?id=21358
2088
2089         Reviewed by Darin Adler.
2090
2091         * UIProcess/WebPageProxy.cpp:
2092         (WebKit::WebPageProxy::performDragControllerAction): Update to API
2093         change in DragData::asURL().
2094
2095 2014-09-16  Daniel Bates  <dabates@apple.com>
2096
2097         [iOS] Add iOS SDK name and version suffix to WebKitSystemInterface debug/release product name
2098         https://bugs.webkit.org/show_bug.cgi?id=136862
2099
2100         Reviewed by David Kilzer.
2101
2102         * Configurations/DebugRelease.xcconfig:
2103
2104 2014-09-16  Enrica Casucci  <enrica@apple.com>
2105
2106         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2107         https://bugs.webkit.org/show_bug.cgi?id=136474
2108
2109         Reviewed by Benjamin Poulain.
2110
2111         This is the updated version of the patch that was landed in r173340.
2112         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2113         and removes the assumption that EAffinity values match NSSelectionAffinity
2114         values. It also removes the includes in TextAffinity.h, creating the need to
2115         include explicitly the files when necessary.
2116
2117         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
2118         * WebProcess/WebPage/WKAccessibilityWebPageObjectIOS.mm:
2119
2120 2014-09-16  Dan Bernstein  <mitz@apple.com>
2121
2122         Standardized the return type of a delegate method.
2123
2124         Rubber-stamped by Anders Carlsson.
2125
2126         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: Changed a return type from bool to BOOL.
2127
2128 2014-09-16  Tomas Popela  <tpopela@redhat.com>
2129
2130         [GTK] Typo in  webkit_security_manager_register_uri_scheme_as_empty_document documentation
2131         https://bugs.webkit.org/show_bug.cgi?id=136852
2132
2133         Reviewed by Carlos Garcia Campos.
2134
2135         * UIProcess/API/gtk/WebKitSecurityManager.cpp:
2136
2137 2014-09-13  Gavin Barraclough  <baraclough@apple.com>
2138
2139         Should call [BKSProcessAssertion invalidate]
2140         https://bugs.webkit.org/show_bug.cgi?id=136804
2141         <rdar://problem/17897780>
2142
2143         Reviewed by Darin Adler.
2144
2145         We should invalidate the process assertion before releasing it. Fortunately this is really easy,
2146         since there is a simple 1:1 relationship with ProcessAssertion, with their lifetimes matching exactly.
2147
2148         * UIProcess/ProcessAssertion.cpp:
2149         (WebKit::ProcessAssertion::~ProcessAssertion):
2150             - no-op implementation.
2151         * UIProcess/ProcessAssertion.h:
2152             - added destructor.
2153         * UIProcess/ios/ProcessAssertionIOS.mm:
2154         (WebKit::ProcessAssertion::~ProcessAssertion):
2155             - destructor invalidates the BKSProcessAssertion.
2156
2157 2014-09-15  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2158
2159         REGRESSION(r170243): [EFL][WK2] Dirty image is shown when new page is loading on fixed layout 
2160         https://bugs.webkit.org/show_bug.cgi?id=136568
2161
2162         Reviewed by Csaba Osztrogonác.
2163
2164         r170243 landed wrong didCommitNewPage() since it always returns false. It cause that
2165         PageViewportControllerClientEfl::didChangeVisibleContents() continues to draw dirty image on 0,0 coordinate.
2166         This patch fixes the problem.
2167
2168         * UIProcess/API/efl/EwkView.h:
2169         (EwkView::waitingForNewPage):
2170         (EwkView::didCommitNewPage):
2171         * UIProcess/efl/PageViewportControllerClientEfl.cpp:
2172         (WebKit::PageViewportControllerClientEfl::didChangeVisibleContents):
2173
2174 2014-09-14  Chris Dumez  <cdumez@apple.com>
2175
2176         Rename Node::childNodeCount() to countChildNodes() and avoid inefficient uses
2177         https://bugs.webkit.org/show_bug.cgi?id=136789
2178
2179         Reviewed by Darin Adler.
2180
2181         Avoid calling slow Node::countChildNodes().
2182
2183         * WebProcess/WebPage/CoordinatedGraphics/WebPageCoordinatedGraphics.cpp:
2184         (WebKit::WebPage::findZoomableAreaForPoint):
2185         Replace call to "node->parentNode()->childNodeCount() != 1" by
2186         "!node->parentNode()->hasOneChild()" which is equivalent but more
2187         efficient.
2188
2189 2014-09-10  Jon Honeycutt  <jhoneycutt@apple.com>
2190
2191         Re-add the request autocomplete feature
2192
2193         <https://bugs.webkit.org/show_bug.cgi?id=136730>
2194
2195         This feature was rolled out in r148731 because it was only used by
2196         Chromium. As we consider supporting this feature, roll it back in, but
2197         leave it disabled.
2198
2199         This rolls out r148731 (which removed the feature) with small changes
2200         needed to make the code build in ToT, to match modern style, to make
2201         the tests run, and to remove unused code.
2202
2203         Reviewed by Andy Estes.
2204
2205         * Configurations/FeatureDefines.xcconfig:
2206         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2207         (WebKit::WebFrameLoaderClient::didRequestAutocomplete):
2208         * WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
2209
2210 2014-09-12  Tim Horton  <timothy_horton@apple.com>
2211
2212         Swiping back from a Twitter image to Twitter flashes to the wrong position
2213         https://bugs.webkit.org/show_bug.cgi?id=136798
2214         <rdar://problem/18324338>
2215
2216         Reviewed by Darin Adler and Sam Weinig.
2217
2218         * UIProcess/mac/ViewGestureController.h:
2219         * UIProcess/mac/ViewGestureControllerMac.mm:
2220         (WebKit::ViewGestureController::ViewGestureController):
2221         (WebKit::ViewGestureController::didFinishLoadForMainFrame):
2222         (WebKit::ViewGestureController::didSameDocumentNavigationForMainFrame):
2223         Add a 250ms repeating timer that we start in didFinishLoadForMainFrame
2224         if we are for some reason still loading, and in didSameDocumentNavigationForMainFrame
2225         unconditionally, to match behavior of the old swipe implementation.
2226
2227         Also, do the active gesture check in both of those places so that we don't
2228         start the timer if we're in the middle of a live swipe or have already torn
2229         down the snapshot (removeSwipeSnapshotAfterRepaint does this as well, so
2230         this isn't really a behavior change).
2231
2232         (WebKit::ViewGestureController::activeLoadMonitoringTimerFired):
2233         Every time the timer fires, check if we're still loading; if not,
2234         tear down the swipe snapshot (after repainting).
2235
2236         (WebKit::ViewGestureController::removeSwipeSnapshotAfterRepaint):
2237         Stop the active load monitoring timer.
2238
2239 2014-09-12  Commit Queue  <commit-queue@webkit.org>
2240
2241         Unreviewed, rolling out r173575.
2242         https://bugs.webkit.org/show_bug.cgi?id=136790
2243
2244         Failing tests (Requested by enrica on #webkit).
2245
2246         Reverted changeset:
2247
2248         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2249         https://bugs.webkit.org/show_bug.cgi?id=136474
2250         http://trac.webkit.org/changeset/173575
2251
2252 2014-09-12  Enrica Casucci  <enrica@apple.com>
2253
2254         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2255         https://bugs.webkit.org/show_bug.cgi?id=136474
2256
2257         Reviewed by Benjamin Poulain.
2258
2259         This is the updated version of the patch that was landed in r173340.
2260         I changed the use of IntPoint to FloatPoint since it was causing tests
2261         to fail.
2262         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2263         and removes the assumption that EAffinity values match NSSelectionAffinity
2264         values. It also removes the includes in TextAffinity.h, creating the need to
2265         include explicitly the files when necessary. It also removes the unnecessary
2266         use of platform specific types, replacing them with WebCore types.
2267
2268         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
2269         * WebProcess/WebPage/WKAccessibilityWebPageObjectIOS.mm:
2270         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
2271
2272 2014-09-12  Dan Bernstein  <mitz@apple.com>
2273
2274         [Cocoa] Message generation scripts should be installed in WebKit.framework
2275         https://bugs.webkit.org/show_bug.cgi?id=136771
2276
2277         Reviewed by Anders Carlsson.
2278
2279         * DerivedSources.make: Updated for rename of Scripts/webkit2 to Scripts/webkit.
2280         * Scripts/generate-message-receiver.py:
2281         (main): Updated for rename from webkit2 to webkit.
2282         * Scripts/generate-messages-header.py:
2283         (main): Ditto.
2284         * Scripts/webkit: Renamed from Source/WebKit2/Scripts/webkit2.
2285         * Scripts/webkit/messages.py: Updated for rename.
2286         * Scripts/webkit/parser.py: Ditto.
2287         * WebKit2.xcodeproj/project.pbxproj: Moved the Copy Message Generation Scripts build phase
2288         from the WebKit2 target to the WebKit target and changed its destination to
2289         WebKit.framework/PrivateHeaders/Scripts/webkit. Removed the Remove Compiled Python Files
2290         build phase, since compiled files no longer get copied.
2291
2292 2014-09-12  Tim Horton  <timothy_horton@apple.com>
2293
2294         Flash of page scrolled to wrong origin before restoring scroll position after swiping back to CNN front page from an article
2295         https://bugs.webkit.org/show_bug.cgi?id=136788
2296         <rdar://problem/18314597>
2297
2298         Reviewed by Sam Weinig.
2299
2300         * UIProcess/mac/ViewGestureControllerMac.mm:
2301         (WebKit::ViewGestureController::didHitRenderTreeSizeThreshold):
2302         (WebKit::ViewGestureController::didFirstVisuallyNonEmptyLayoutForMainFrame):
2303         Always wait until didFinishLoadForMainFrame or didSameDocumentNavigationForMainFrame
2304         before removing the snapshot, because otherwise we don't know if the scroll
2305         position has been restored yet.
2306
2307         We should revisit this at some point, because it should be possible to
2308         determine if the scroll position has been restored appropriately, but for
2309         now it is safest to restore the antique behavior.
2310
2311 2014-09-12  Dan Bernstein  <mitz@apple.com>
2312
2313         Build fix.
2314
2315         Reverted r173564.
2316
2317         * DerivedSources.make:
2318         * Scripts/generate-message-receiver.py:
2319         (main):
2320         * Scripts/generate-messages-header.py:
2321         (main):
2322         * Scripts/webkit: Removed.
2323         * Scripts/webkit/LegacyMessageReceiver-expected.cpp: Removed.
2324         * Scripts/webkit/LegacyMessages-expected.h: Removed.
2325         * Scripts/webkit/MessageReceiver-expected.cpp: Removed.
2326         * Scripts/webkit/MessageReceiverSuperclass-expected.cpp: Removed.
2327         * Scripts/webkit/Messages-expected.h: Removed.
2328         * Scripts/webkit/MessagesSuperclass-expected.h: Removed.
2329         * Scripts/webkit/__init__.py: Removed.
2330         * Scripts/webkit/messages.py: Removed.
2331         * Scripts/webkit/messages_unittest.py: Removed.
2332         * Scripts/webkit/model.py: Removed.
2333         * Scripts/webkit/parser.py: Removed.
2334         * Scripts/webkit/test-legacy-messages.in: Removed.
2335         * Scripts/webkit/test-messages.in: Removed.
2336         * Scripts/webkit/test-superclass-messages.in: Removed.
2337         * Scripts/webkit2: Copied from Scripts/webkit2.
2338         * WebKit2.xcodeproj/project.pbxproj:
2339
2340 2014-09-11  Andy Estes  <aestes@apple.com>
2341
2342         [WebKit2] WKImageCreateCGImage crashes when passed a null WKImage
2343         https://bugs.webkit.org/show_bug.cgi?id=136768
2344
2345         Reviewed by Tim Horton.
2346
2347         WKImageCreateFromCGImage can return null, so it only seems fair that WKImageCreateCGImage should tolerate null.
2348
2349         * Shared/API/c/cg/WKImageCG.cpp:
2350         (WKImageCreateCGImage):
2351
2352 2014-09-12  Dan Bernstein  <mitz@apple.com>
2353
2354         [Cocoa] Message generation scripts should be installed in WebKit.framework
2355         https://bugs.webkit.org/show_bug.cgi?id=136771
2356
2357         Reviewed by Anders Carlsson.
2358
2359         * DerivedSources.make: Updated for rename of Scripts/webkit2 to Scripts/webkit.
2360         * Scripts/generate-message-receiver.py:
2361         (main): Updated for rename from webkit2 to webkit.
2362         * Scripts/generate-messages-header.py:
2363         (main): Ditto.
2364         * Scripts/webkit: Renamed from Source/WebKit2/Scripts/webkit2.
2365         * Scripts/webkit/messages.py: Updated for rename.
2366         * Scripts/webkit/parser.py: Ditto.
2367         * WebKit2.xcodeproj/project.pbxproj: Moved the Copy Message Generation Scripts build phase
2368         from the WebKit2 target to the WebKit target and changed its destination to
2369         WebKit.framework/PrivateHeaders/Scripts/webkit. Removed the Remove Compiled Python Files
2370         build phase, since compiled files no longer get copied.
2371
2372 2014-09-12  Michael Catanzaro  <mcatanzaro@igalia.com>
2373
2374         [GTK] Use a nicer HTTP authentication dialog
2375         https://bugs.webkit.org/show_bug.cgi?id=136615
2376
2377         Reviewed by Carlos Garcia Campos.
2378
2379         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
2380         (webkitAuthenticationDialogInitialize): Use a nicer layout.
2381         (packTwoColumnLayoutInBox): Deleted.
2382         (createLabel): Deleted.
2383         (createEntry): Deleted.
2384
2385 2014-09-12  Carlos Garcia Campos  <cgarcia@igalia.com>
2386
2387         REGRESSION(r173423): CertificateInfo is never sent to the UI process when using shared secondary process model
2388         https://bugs.webkit.org/show_bug.cgi?id=136669
2389
2390         Reviewed by Antti Koivisto.
2391
2392         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2393         (WebKit::WebResourceLoadScheduler::scheduleLoad): Use
2394         ResourceLoader::shouldIncludeCertificateInfo() to initialize
2395         needsCertificateInfo parameter.
2396
2397 2014-09-11  Ryuan Choi  <ryuan.choi@gmail.com>
2398
2399         [EFL][CoordinatedGraphics] Move CoordinatedGraphicsScene and CoordinatedBackingStore to WebKit2
2400         https://bugs.webkit.org/show_bug.cgi?id=136770
2401
2402         Reviewed by Gyuyoung Kim.
2403
2404         CoordinatedGraphicsScene and CoordinatedBackingStore is only for UIProcess.
2405         This patch moved them from WebCore to WebKit2/UIProcess/CoordinatedGraphics/.
2406
2407         * PlatformEfl.cmake:
2408         * UIProcess/API/CoordinatedGraphics/WKCoordinatedScene.cpp:
2409         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp: Renamed from Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.cpp.
2410         * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h: Renamed from Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedBackingStore.h.
2411         * UIProcess/CoordinatedGraphics/CoordinatedGraphicsScene.cpp: Renamed from Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.cpp.
2412         * UIProcess/CoordinatedGraphics/CoordinatedGraphicsScene.h: Renamed from Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsScene.h.
2413         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.h:
2414         * UIProcess/CoordinatedGraphics/WebView.cpp:
2415         * UIProcess/efl/WebViewEfl.cpp:
2416
2417 2014-09-11  Bear Travis  <betravis@adobe.com>
2418
2419         [CSS Font Loading] Enable CSS Font Loading on Mac
2420         https://bugs.webkit.org/show_bug.cgi?id=135473
2421
2422         Reviewed by Antti Koivisto.
2423
2424         Enable CSS Font Loading in FeatureDefines.
2425
2426         * Configurations/FeatureDefines.xcconfig:
2427
2428 2014-09-11  Youenn Fablet  <youenn.fablet@crf.canon.fr>
2429
2430         [WK2] Authentication dialog is displayed for cross-origin XHR
2431         https://bugs.webkit.org/show_bug.cgi?id=131349
2432
2433         Reviewed by Alexey Proskuryakov.
2434
2435         Precomputing client credential policy in the Web Process before sending the resource load task to the Network Process.
2436
2437         * NetworkProcess/NetworkResourceLoader.cpp:
2438         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge): Added an ASSERT to ensure that credential policy is never set to DoNotAskClientForCrossOriginCredentials.
2439         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2440         (WebKit::WebResourceLoadScheduler::scheduleLoad): Precomputing client credential policy to handle the case of cross-origin requests.
2441         * WebProcess/Network/WebResourceLoader.cpp:
2442         (WebKit::WebResourceLoader::willSendRequest): Added a TODO to check whether redirections need a specific handling.
2443
2444 2014-09-11  Carlos Garcia Campos  <cgarcia@igalia.com>
2445
2446         [GTK] Merge WebKitAuthenticationWidget into WebKitAuthenticationDialog
2447         https://bugs.webkit.org/show_bug.cgi?id=136700
2448
2449         Reviewed by Sergio Villar Senin.
2450
2451         Copy WebKitAuthenticationWidget implementation inside
2452         WebKitAuthenticationDialog using a normal GtkBox instead.
2453
2454         * UIProcess/API/gtk/WebKitAuthenticationDialog.cpp:
2455         (okButtonClicked):
2456         (cancelButtonClicked):
2457         (packTwoColumnLayoutInBox):
2458         (createLabel):
2459         (createEntry):
2460         (webkitAuthenticationDialogInitialize): Remove the
2461         CredentialStorageMode parameter since it's now a member.
2462         (webkitAuthenticationDialogNew): Initialize the
2463         CredentialStorageMode member too.
2464         * UIProcess/API/gtk/WebKitAuthenticationDialog.h:
2465
2466 2014-09-10  Antti Koivisto  <antti@apple.com>
2467
2468         NetworkResourceLoader cleanups
2469         https://bugs.webkit.org/show_bug.cgi?id=136701
2470
2471         Reviewed by Darin Adler.
2472
2473         After smashing NetworkResourceLoader together with the clients it can be made nicer.
2474
2475         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
2476         (WebKit::NetworkResourceLoadScheduler::scheduleLoader):
2477         (WebKit::NetworkResourceLoadScheduler::removeLoader):
2478         * NetworkProcess/NetworkResourceLoader.cpp:
2479         (WebKit::NetworkResourceLoader::SynchronousLoadData::SynchronousLoadData):
2480
2481             The original request is now part of the loader.
2482
2483         (WebKit::sendReplyToSynchronousRequest):
2484         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
2485
2486             Instead of copying everything out from NetworkResourceLoadParameters just include the whole thing as a const field.
2487             SanboxExtension construction moves to NetworkResourceLoadParameters::decode()
2488             Stuff that is related to starting the load moves to start().
2489
2490         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
2491         (WebKit::NetworkResourceLoader::start):
2492         (WebKit::NetworkResourceLoader::setDefersLoading):
2493
2494             Eliminate m_deferredRequest since we now always remember the original request.
2495
2496         (WebKit::NetworkResourceLoader::cleanup):
2497         (WebKit::NetworkResourceLoader::didConvertHandleToDownload):
2498         (WebKit::NetworkResourceLoader::abort):
2499         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
2500         (WebKit::NetworkResourceLoader::didFail):
2501         (WebKit::NetworkResourceLoader::willSendRequestAsync):
2502         (WebKit::NetworkResourceLoader::continueWillSendRequest):
2503
2504             Eliminate unnecessary m_suggestedRequestForWillSendRequest.
2505
2506         (WebKit::NetworkResourceLoader::wasBlocked):
2507         (WebKit::NetworkResourceLoader::cannotShowURL):
2508         (WebKit::NetworkResourceLoader::shouldUseCredentialStorage):
2509         (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge):
2510         (WebKit::NetworkResourceLoader::receivedCancellation):
2511         (WebKit::NetworkResourceLoader::startBufferingTimerIfNeeded):
2512         (WebKit::NetworkResourceLoader::consumeSandboxExtensions):
2513         (WebKit::NetworkResourceLoader::invalidateSandboxExtensions):
2514         (WebKit::NetworkResourceLoader::sendAbortingOnFailure):
2515         * NetworkProcess/NetworkResourceLoader.h:
2516         (WebKit::NetworkResourceLoader::originalRequest):
2517         (WebKit::NetworkResourceLoader::currentRequest):
2518         (WebKit::NetworkResourceLoader::sessionID):
2519         (WebKit::NetworkResourceLoader::defersLoading):
2520         (WebKit::NetworkResourceLoader::isLoadingMainResource):
2521         (WebKit::NetworkResourceLoader::request): Deleted.
2522         (WebKit::NetworkResourceLoader::sendAbortingOnFailure): Deleted.
2523
2524             Made private and moved to cpp.
2525
2526         * NetworkProcess/mac/NetworkDiskCacheMonitor.mm:
2527         (WebKit::NetworkDiskCacheMonitor::NetworkDiskCacheMonitor):
2528
2529             Use original request instead of the current one. This might fix a bug where we didn't use file backing over redirects.
2530
2531         * Shared/Network/NetworkResourceLoadParameters.cpp:
2532         (WebKit::NetworkResourceLoadParameters::decode):
2533
2534             Decode to SanboxExtensions to the actual type rather than a handle.
2535
2536         * Shared/Network/NetworkResourceLoadParameters.h:
2537
2538 2014-09-10  Michael Catanzaro  <mcatanzaro@igalia.com>
2539
2540         [GTK] allow overwriting destination of download
2541         https://bugs.webkit.org/show_bug.cgi?id=136372
2542
2543         Reviewed by Carlos Garcia Campos.
2544
2545         * UIProcess/API/gtk/WebKitDownload.cpp:
2546         (webkitDownloadGetProperty): Added
2547         (webkit_download_class_init): Install webkitDownloadGetProperty
2548         (webkitDownloadDecideDestinationWithSuggestedFilename): Add
2549         allowOverwrite parameter and set it appropriately
2550         (webkit_download_get_allow_overwrite): Added
2551         (webkit_download_set_allow_overwrite): Added
2552         * UIProcess/API/gtk/WebKitDownload.h: New API
2553         * UIProcess/API/gtk/WebKitDownloadClient.cpp:
2554         (decideDestinationWithSuggestedFilename): Pass allowOverwrite to
2555         webkitDownloadDecideDestinationWithSuggestedFilename
2556         * UIProcess/API/gtk/WebKitDownloadPrivate.h: Add allowOverwrite
2557         parameter to webkitDownloadDecideDestinationWithSuggestedFilename
2558         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: New API
2559
2560 2014-09-10  Rohit Kumar  <kumar.rohit@samsung.com>
2561
2562         [GTK] Clean up the WebKit build from unused parameter warning in Webkit2/UIProcess module
2563         https://bugs.webkit.org/show_bug.cgi?id=136670
2564
2565         Reviewed by Martin Robinson.
2566
2567         * UIProcess/API/gtk/PageClientImpl.cpp:
2568         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
2569
2570 2014-09-09  Enrica Casucci  <enrica@apple.com>
2571
2572         REGRESSION (WebKit2): -webkit-touch-callout: none has no effect.
2573         https://bugs.webkit.org/show_bug.cgi?id=136685
2574         rdar://problem/17629840
2575
2576         Reviewed by Benjamin Poulain.
2577
2578         We need to check if the touch callout is enabled for the element before starting
2579         the long press gesture.
2580         The information about the touch callout is returned together with the rest of data
2581         returned by the InteractionInformationAtPosition.
2582
2583         * Shared/InteractionInformationAtPosition.cpp:
2584         (WebKit::InteractionInformationAtPosition::encode):
2585         (WebKit::InteractionInformationAtPosition::decode):
2586         * Shared/InteractionInformationAtPosition.h:
2587         (WebKit::InteractionInformationAtPosition::InteractionInformationAtPosition):
2588         * UIProcess/ios/WKContentViewInteraction.mm:
2589         (-[WKContentView _actionForLongPress]):
2590         * WebProcess/WebPage/ios/WebPageIOS.mm:
2591         (WebKit::WebPage::getPositionInformation):
2592
2593 2014-09-09  Benjamin Poulain  <bpoulain@apple.com>
2594
2595         Disable the "unreachable-code" warning
2596         https://bugs.webkit.org/show_bug.cgi?id=136677
2597
2598         Reviewed by Darin Adler.
2599
2600         * Configurations/Base.xcconfig:
2601
2602 2014-09-09  Dan Bernstein  <mitz@apple.com>
2603
2604         [Cocoa] -[WKBackForwardList backList] contains an unnecessary nil check
2605         https://bugs.webkit.org/show_bug.cgi?id=136680
2606
2607         Reviewed by Anders Carlsson.
2608
2609         * UIProcess/API/Cocoa/WKBackForwardList.mm:
2610         (-[WKBackForwardList backList]): Removed nil check.
2611         (-[WKBackForwardList forwardList]): Ditto.
2612
2613 2014-09-09  Tim Horton  <timothy_horton@apple.com>
2614
2615         Make DrawingArea a real MessageReceiver
2616         https://bugs.webkit.org/show_bug.cgi?id=136438
2617
2618         Reviewed by Darin Adler.
2619
2620         * WebProcess/WebPage/DrawingArea.cpp:
2621         (WebKit::DrawingArea::DrawingArea):
2622         (WebKit::DrawingArea::~DrawingArea):
2623         * WebProcess/WebPage/DrawingArea.h:
2624         * WebProcess/WebPage/DrawingArea.messages.in:
2625         * WebProcess/WebPage/WebPage.cpp:
2626         (WebKit::WebPage::WebPage):
2627         (WebKit::WebPage::~WebPage):
2628         (WebKit::WebPage::didReceiveMessage):
2629         Make DrawingArea a real MessageReceiver instead of a LegacyReceiver that
2630         jumps through WebPage to receive its messages.
2631
2632 2014-09-08  Antti Koivisto  <antti@apple.com>
2633
2634         Pass certificate info as part of ResourceResponse
2635         https://bugs.webkit.org/show_bug.cgi?id=136611
2636
2637         Reviewed by Darin Adler.
2638
2639         * NetworkProcess/NetworkResourceLoader.cpp:
2640         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
2641
2642             Initialize the certificate info only if requested.
2643
2644         * WebProcess/Network/WebResourceLoader.cpp:
2645         (WebKit::WebResourceLoader::didReceiveResponse):
2646         (WebKit::WebResourceLoader::didReceiveResponseWithCertificateInfo): Deleted.
2647
2648             Rename didReceiveResponseWithCertificateInfo -> didReceiveResponse as it is now part of the response.
2649
2650         * WebProcess/Network/WebResourceLoader.h:
2651         * WebProcess/Network/WebResourceLoader.messages.in:
2652         * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
2653
2654             Request certificate info for the main resource only.
2655
2656         (WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
2657         * WebProcess/WebPage/WebFrame.cpp:
2658         (WebKit::WebFrame::certificateInfo):
2659
2660 2014-09-08  Shivakumar JM  <shiva.jm@samsung.com>
2661
2662         [WebKit2] Fix build error in WebKit2/WebProcess module
2663         https://bugs.webkit.org/show_bug.cgi?id=136667
2664
2665         Reviewed by Darin Adler.
2666
2667         Fix the build error by handling default case.
2668
2669         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2670         (WebKit::maximumBufferingTime):
2671
2672 2014-09-08  Simon Fraser  <simon.fraser@apple.com>
2673
2674         Fix the iOS build.
2675
2676         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
2677         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
2678
2679 2014-09-08  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2680
2681         Remove FILTERS flag
2682         https://bugs.webkit.org/show_bug.cgi?id=136571
2683
2684         Reviewed by Darin Adler.
2685
2686         * Configurations/FeatureDefines.xcconfig:
2687
2688 2014-09-08  Antti Koivisto  <antti@apple.com>
2689
2690         Buffer images on web process side
2691         https://bugs.webkit.org/show_bug.cgi?id=136631
2692
2693         Reviewed by Darin Adler.
2694
2695         We can substantially reduce IPC and decoding time for large images by allowing some buffering.
2696
2697         This patch makes us buffer image data up to 0.5s before sending it over to the web process.
2698
2699         * NetworkProcess/NetworkResourceLoader.cpp:
2700         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
2701         (WebKit::NetworkResourceLoader::cleanup):
2702         (WebKit::NetworkResourceLoader::didReceiveBuffer):
2703
2704             Start the timer.
2705
2706         (WebKit::NetworkResourceLoader::didFinishLoading):
2707         (WebKit::NetworkResourceLoader::startBufferingTimerIfNeeded):
2708         (WebKit::NetworkResourceLoader::bufferingTimerFired):
2709         (WebKit::NetworkResourceLoader::sendBuffer):
2710
2711             Send the data when the timer fires or the load finishes, whichever happens first.
2712
2713         * NetworkProcess/NetworkResourceLoader.h:
2714         * Platform/IPC/ArgumentCoders.h:
2715
2716             Support encoding std::chrono::duration
2717
2718         * Shared/Network/NetworkResourceLoadParameters.cpp:
2719         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
2720         (WebKit::NetworkResourceLoadParameters::encode):
2721         (WebKit::NetworkResourceLoadParameters::decode):
2722         * Shared/Network/NetworkResourceLoadParameters.h:
2723
2724             Pass maximimum buffering duration.
2725
2726         * WebProcess/Network/WebResourceLoadScheduler.cpp:
2727         (WebKit::maximumBufferingTime):
2728
2729             Deterimine duration from the resource type.
2730             Enabled full buffering for font resources. They are not decoded incrementally.
2731
2732         (WebKit::WebResourceLoadScheduler::scheduleLoad):
2733
2734 2014-09-08  Dan Bernstein  <mitz@apple.com>
2735
2736         HAVE(VOUCHERS) is not available outside of WebKit2
2737         https://bugs.webkit.org/show_bug.cgi?id=136637
2738
2739         Reviewed by Tim Horton.
2740
2741         * config.h: Moved the definition of HAVE_VOUCHERS from here to wtf’s Platform.h.
2742
2743 2014-09-08  Tim Horton  <timothy_horton@apple.com>
2744
2745         Try to fix the build after r173383, part 4.
2746
2747         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
2748         Machine finally caught up so I could actually test the fixes!
2749
2750 2014-09-08  Tim Horton  <timothy_horton@apple.com>
2751
2752         Try to fix the build after r173383, part 3.
2753
2754         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
2755
2756 2014-09-08  Dan Bernstein  <mitz@apple.com>
2757
2758         Build fix.
2759
2760         * Platform/IPC/Connection.h:
2761
2762 2014-09-06  Sam Weinig  <sam@webkit.org>
2763
2764         XPCPtr should be converted into an all purpose smart pointer for os_objects
2765         https://bugs.webkit.org/show_bug.cgi?id=136602
2766
2767         Reviewed by Darin Adler.
2768
2769         * DatabaseProcess/EntryPoint/mac/XPCService/DatabaseServiceEntryPoint.mm:
2770         (DatabaseServiceInitializer):
2771         * NetworkProcess/EntryPoint/mac/XPCService/NetworkServiceEntryPoint.mm:
2772         (WebKit::NetworkServiceInitializerDelegate::NetworkServiceInitializerDelegate):
2773         (NetworkServiceInitializer):
2774         * Platform/IPC/Connection.h:
2775         (IPC::Connection::Identifier::Identifier):
2776         * Platform/IPC/mac/ConnectionMac.mm:
2777         (IPC::ConnectionTerminationWatchdog::createConnectionTerminationWatchdog):
2778         (IPC::ConnectionTerminationWatchdog::ConnectionTerminationWatchdog):
2779         * Platform/IPC/mac/XPCPtr.h: Removed.
2780         * PluginProcess/EntryPoint/mac/XPCService/PluginServiceEntryPoint.mm:
2781         (WebKit::PluginServiceInitializerDelegate::PluginServiceInitializerDelegate):
2782         (PluginServiceInitializer):
2783         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.h:
2784         (WebKit::XPCServiceInitializerDelegate::XPCServiceInitializerDelegate):
2785         (WebKit::XPCServiceInitializer):
2786         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceEntryPoint.mm:
2787         (WebKit::XPCServiceInitializerDelegate::checkEntitlements):
2788         (WebKit::XPCServiceInitializerDelegate::hasEntitlement):
2789         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.Development.mm:
2790         (WebKit::XPCServiceEventHandler):
2791         * Shared/EntryPointUtilities/mac/XPCService/XPCServiceMain.mm:
2792         (WebKit::XPCServiceEventHandler):
2793         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
2794         (WebKit::connectToService):
2795         (WebKit::connectToReExecService):
2796         * WebProcess/EntryPoint/mac/XPCService/WebContentServiceEntryPoint.mm:
2797         (WebContentServiceInitializer):
2798         Update after the rename of XPCPtr to OSObjectPtr.
2799
2800 2014-09-06  Darin Adler  <darin@apple.com>
2801
2802         Make updates suggested by new version of Xcode
2803         https://bugs.webkit.org/show_bug.cgi?id=136603
2804
2805         Reviewed by Mark Rowe.
2806
2807         * Configurations/Base.xcconfig: Added CLANG_WARN_UNREACHABLE_CODE, COMBINE_HIDPI_IMAGES,
2808         and ENABLE_STRICT_OBJC_MSGSEND as suggested by the Xcode upgrade check.
2809
2810         * PluginProcess/mac/PluginProcessMac.mm:
2811         (WebKit::initializeCocoaOverrides): Changed NSConcreteTask_launch to use the same technique
2812         as the other functions in this file, doing the type casting right at the call to
2813         method_setImplementation so the global has a suitable type for making a function call,
2814         rather than relying on the abilty to call through a type without a specific argument list.
2815
2816         * UIProcess/Plugins/PluginInfoStore.cpp:
2817         (WebKit::pathExtension): Use size_t for the result of String::reverseFind rather than
2818         converting it to an int. Also don't rely on the fact that WTF's notFound becomes -1 when
2819         cast from size_t to int.
2820
2821         * WebKit2.xcodeproj/project.pbxproj: Let Xcode delete some orphaned items, and updated
2822         LastUpgradeCheck.
2823
2824 2014-09-06  Brian J. Burg  <burg@cs.washington.edu>
2825
2826         Web Inspector: convert DockSide to an enum class
2827         https://bugs.webkit.org/show_bug.cgi?id=136601
2828
2829         Reviewed by Timothy Hatcher.
2830
2831         * WebProcess/WebCoreSupport/WebInspectorFrontendClient.cpp:
2832         (WebKit::WebInspectorFrontendClient::attachWindow):
2833         * WebProcess/WebPage/WebInspector.cpp:
2834         (WebKit::WebInspector::attachedBottom):
2835         (WebKit::WebInspector::attachedRight):
2836         (WebKit::WebInspector::detached):
2837
2838 2014-09-06  Antti Koivisto  <antti@apple.com>
2839
2840         Serialize ResourceResponses using WebKit types
2841         https://bugs.webkit.org/show_bug.cgi?id=136545
2842
2843         Reviewed by Alexey Proskuryakov.
2844
2845         Remove the WK2 serialization code for responses. It moves to the types itself in WebCore where it is
2846         close to the data being serialized and less likely to get out of sync.
2847
2848         * Shared/WebCoreArgumentCoders.cpp:
2849         (IPC::ArgumentCoder<ResourceResponse>::encode): Deleted.
2850         (IPC::ArgumentCoder<ResourceResponse>::decode): Deleted.
2851         * Shared/WebCoreArgumentCoders.h:
2852         * Shared/mac/WebCoreArgumentCodersMac.mm:
2853         (IPC::ArgumentCoder<ResourceResponse>::encodePlatformData): Deleted.
2854         (IPC::ArgumentCoder<ResourceResponse>::decodePlatformData): Deleted.
2855
2856 2014-09-06  Ryuan Choi  <ryuan.choi@gmail.com>
2857
2858         [EFL] Drop evas object cursor support
2859         https://bugs.webkit.org/show_bug.cgi?id=136324
2860
2861         Reviewed by Gyuyoung Kim.
2862
2863         Removed evas object cursor because there are some bugs.
2864         ewebkit will only support ecore_x_cursor because ewebkit is available with X, now.
2865
2866         * UIProcess/API/efl/EwkView.cpp:
2867         (EwkViewEventHandler<EVAS_CALLBACK_MOUSE_IN>::handleEvent):
2868         (EwkView::EwkView):
2869         (EwkView::updateCursor): Simplifies not to use evas object cursor.
2870         (EwkView::setCursor): Ditto.
2871         * UIProcess/API/efl/EwkView.h:
2872
2873 2014-09-05  Commit Queue  <commit-queue@webkit.org>
2874
2875         Unreviewed, rolling out r173340 and r173342.
2876         https://bugs.webkit.org/show_bug.cgi?id=136596
2877
2878         Broke many tests (Requested by ap on #webkit).
2879
2880         Reverted changesets:
2881
2882         "Remove PLATFORM(IOS) from WebCore/editing (Part 3)."
2883         https://bugs.webkit.org/show_bug.cgi?id=136474
2884         http://trac.webkit.org/changeset/173340
2885
2886         "Build fix after r173340."
2887         http://trac.webkit.org/changeset/173342
2888
2889 2014-09-05  Joseph Pecoraro  <pecoraro@apple.com>
2890
2891         Use WTFString::split(char) in more places
2892         https://bugs.webkit.org/show_bug.cgi?id=136543
2893
2894         Reviewed by Sam Weinig.
2895
2896         * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
2897         (WebKit::PluginVersion::parse):
2898         * UIProcess/gtk/WebContextGtk.cpp:
2899         (WebKit::initInspectorServer):
2900         * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
2901         (WebKit::isTransparentSilverlightBackgroundValue):
2902
2903 2014-09-05  Enrica Casucci  <enrica@apple.com>
2904
2905         Remove PLATFORM(IOS) from WebCore/editing (Part 3).
2906         https://bugs.webkit.org/show_bug.cgi?id=136474
2907
2908         Reviewed by Benjamin Poulain.
2909
2910         This patch removes the use of PLATFORM(IOS) from TextAffinity.h
2911         and removes the assumption that EAffinity values match NSSelectionAffinity
2912         values. It also removes the includes in TextAffinity.h, creating the need to
2913         include explicitly the files when necessary. It also removes the unnecessary
2914         use of platform specific types, replacing them with WebCore types.
2915
2916         * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm:
2917         * WebProcess/WebPage/WKAccessibilityWebPageObjectIOS.mm:
2918         (-[WKAccessibilityWebPageObject accessibilityHitTest:]):
2919
2920 2014-09-05  David Kilzer  <ddkilzer@apple.com>
2921
2922         JavaScriptCore should build with newer clang
2923         <http://webkit.org/b/136002>
2924         <rdar://problem/18020616>
2925
2926         Reviewed by Geoffrey Garen.
2927
2928         * Shared/API/c/WKString.cpp:
2929         (WKStringCreateWithJSString): Add NULL check to prevent
2930         WebKitTestRunner crashes that relied on the previous |this|
2931         behavior where NULL values were allowed.
2932
2933 2014-09-05  Beth Dakin  <bdakin@apple.com>
2934
2935         ScrollablArea::handleWheelEvent() should return early if the ScrollableArea is not 
2936         actually scrollable
2937         https://bugs.webkit.org/show_bug.cgi?id=136558
2938
2939         Reviewed by Simon Fraser.
2940
2941         New ScrollableArea virtual function.
2942         * WebProcess/Plugins/PDF/PDFPlugin.h:
2943
2944 2014-09-04  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2945
2946         Unreviewed, speculative build fix on GTK port since r173305.
2947
2948         * UIProcess/API/gtk/WebKitURISchemeRequest.cpp:
2949         (webkitURISchemeRequestReadCallback):
2950
2951 2014-09-03  Andy Estes  <aestes@apple.com>
2952
2953         [Cocoa] Some WebKitLegacy headers migrated from WebCore incorrectly contain WEBCORE_EXPORT
2954         https://bugs.webkit.org/show_bug.cgi?id=136521
2955
2956         Reviewed by Anders Carlsson.
2957
2958         * config.h: Included <WebCore/PlatformExportMacros.h> instead of defining WEBCORE_EXPORT.
2959
2960 2014-09-04  Maciej Stachowiak  <mjs@apple.com>
2961
2962         Remove WebCoreSystemInterface glue for otherwise unused WKSI calls
2963         https://bugs.webkit.org/show_bug.cgi?id=136527
2964
2965         Reviewed by Alexey Proskuryakov.
2966
2967         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
2968         (InitWebCoreSystemInterface):
2969
2970 2014-09-04  Antti Koivisto  <antti@apple.com>
2971
2972         Remove ResourceResponse::m_suggestedFilename
2973         https://bugs.webkit.org/show_bug.cgi?id=136534
2974
2975         Reviewed by Alexey Proskuryakov.
2976
2977         * Shared/WebCoreArgumentCoders.cpp:
2978         (IPC::ArgumentCoder<ResourceResponse>::encode):
2979         (IPC::ArgumentCoder<ResourceResponse>::decode):
2980
2981             No more m_suggestedFilename.
2982
2983         * WebProcess/Plugins/PDF/PDFPlugin.mm:
2984         (WebKit::PDFPlugin::addArchiveResource):
2985
2986             Fake the suggested filename by using the Content-Disposition header.
2987
2988 2014-09-04  Eva Balazsfalvi  <evab.u-szeged@partner.samsung.com>
2989
2990         Remove CSS_FILTERS flag
2991         https://bugs.webkit.org/show_bug.cgi?id=136529
2992
2993         Reviewed by Dirk Schulze.
2994
2995         * Configurations/FeatureDefines.xcconfig:
2996         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
2997         (IPC::ArgumentCoder<WebCore::FilterOperations>::decode):
2998         (IPC::ArgumentCoder<GraphicsLayerAnimation>::encode):
2999         (IPC::ArgumentCoder<GraphicsLayerAnimation>::decode):
3000         (IPC::ArgumentCoder<CoordinatedGraphicsLayerState>::encode):
3001         (IPC::ArgumentCoder<CoordinatedGraphicsLayerState>::decode):
3002         * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
3003         * Shared/WebCoreArgumentCoders.cpp:
3004         * Shared/WebCoreArgumentCoders.h:
3005         * WebProcess/WebPage/mac/GraphicsLayerCARemote.cpp:
3006         (WebKit::GraphicsLayerCARemote::filtersCanBeComposited):
3007         * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
3008         * WebProcess/WebPage/mac/PlatformCAAnimationRemote.h:
3009         * WebProcess/WebPage/mac/PlatformCAAnimationRemote.mm:
3010         (WebKit::PlatformCAAnimationRemote::setFromValue):
3011         (WebKit::PlatformCAAnimationRemote::setToValue):
3012         (WebKit::PlatformCAAnimationRemote::setValues):
3013         * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
3014         (WebKit::PlatformCALayerRemote::updateClonedLayerProperties):
3015         (WebKit::PlatformCALayerRemote::filtersCanBeComposited):
3016         * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
3017
3018 2014-09-04  Commit Queue  <commit-queue@webkit.org>
3019
3020         Unreviewed, rolling out r173245.
3021         https://bugs.webkit.org/show_bug.cgi?id=136533
3022
3023         Broke JSC tests. (Requested by ddkilzer on #webkit).
3024
3025         Reverted changeset:
3026
3027         "JavaScriptCore should build with newer clang"
3028         https://bugs.webkit.org/show_bug.cgi?id=136002
3029         http://trac.webkit.org/changeset/173245
3030
3031 2014-09-04  Carlos Garcia Campos  <cgarcia@igalia.com>
3032
3033         Initialize m_usesNetworkProcess earlier in WebProcess::initializeWebProcess()
3034         https://bugs.webkit.org/show_bug.cgi?id=136478
3035
3036         Reviewed by Alexey Proskuryakov.
3037
3038         The soup network backend uses WebProcess::usesNetworkProcess()
3039         from WebProcess::platformSetCacheModel() and
3040         WebProcess::platformInitializeWebProcess(), both called before the
3041         m_usesNetworkProcess member has been initialized.
3042
3043         * WebProcess/WebProcess.cpp:
3044         (WebKit::WebProcess::initializeWebProcess): Move the
3045         m_usesNetworkProcess initialization at the beginning right before
3046         calling platformInitializeWebProcess().
3047         * WebProcess/cocoa/WebProcessCocoa.mm:
3048         (WebKit::WebProcess::platformSetCacheModel): Remove the early
3049         return when using the network process, since this was dead code
3050         before this change, and not really needed now that
3051         usesNetworkProcess() will return true.
3052         (WebKit::WebProcess::platformInitializeWebProcess): Remove comment
3053         that is not accurate since r171156.
3054
3055 2014-09-03  Michael Catanzaro  <mcatanzaro@igalia.com>
3056
3057         [SOUP] Race condition when downloading a file due to the intermediate temporary file
3058         https://bugs.webkit.org/show_bug.cgi?id=136423
3059
3060         Reviewed by Carlos Garcia Campos.
3061
3062         * Shared/Downloads/soup/DownloadSoup.cpp:
3063         (WebKit::DownloadClient::DownloadClient): Replace m_destinationURI with
3064         m_destinationFile and add m_createdDestination.
3065         (WebKit::DownloadClient::deleteFilesIfNeeded): Added.
3066         (WebKit::DownloadClient::downloadFailed): Call deleteFilesIfNeeded.
3067         (WebKit::DownloadClient::didReceiveResponse): Attempt to create the
3068         destination file before the intermediate file. Fail here if the file
3069         exists and overwrite is not allowed, so we don't erroneously fire the
3070         didCreateDestination event or waste time downloading the file when we
3071         know the download will fail.
3072         (WebKit::DownloadClient::didFinishLoading): Unconditionally overwrite
3073         the empty destination file.
3074         (WebKit::DownloadClient::cancel): Call deleteFilesIfNeeded.
3075         (WebKit::DownloadClient::deleteIntermediateFileInNeeded): Deleted.
3076
3077 2014-09-03  David Kilzer  <ddkilzer@apple.com>
3078
3079         JavaScriptCore should build with newer clang
3080         <http://webkit.org/b/136002>
3081         <rdar://problem/18020616>
3082
3083         Reviewed by Geoffrey Garen.
3084
3085         * Shared/API/c/WKString.cpp:
3086         (WKStringCreateWithJSString): Add NULL check to prevent
3087         WebKitTestRunner crashes that relied on the previous |this|
3088         behavior where NULL values were allowed.
3089
3090 2014-09-03  Enrica Casucci  <enrica@apple.com>
3091
3092         Remove PLATFORM(IOS) from WebCore/editing (Part 1).
3093         https://bugs.webkit.org/show_bug.cgi?id=136474
3094
3095         Reviewed by Tim Horton.
3096
3097         * UIProcess/WebEditCommandProxy.cpp:
3098         (WebKit::WebEditCommandProxy::nameForEditAction):
3099
3100 2014-09-03  Yongjun Zhang  <yongjun_zhang@apple.com>
3101
3102         https://bugs.webkit.org/show_bug.cgi?id=136395
3103         Need a way to get userAgent from WKWebView.
3104
3105         Add _userAgent property to return user agent string from WKWebView.
3106
3107         Reviewed by Anders Carlsson.
3108
3109         * UIProcess/API/Cocoa/WKWebView.mm:
3110         (-[WKWebView _userAgent]):
3111         * UIProcess/API/Cocoa/WKWebViewPrivate.h:
3112
3113 2014-09-02  Maciej Stachowiak  <mjs@apple.com>
3114
3115         Clean up naming for and slightly refactor legacy video fullscreen support
3116         https://bugs.webkit.org/show_bug.cgi?id=136446
3117
3118         Reviewed by Jer Noble.
3119
3120         Key changes:
3121         supportsFullscreenForNode(Node*) --> supportsVideoFullscreen()
3122         enterFullscreenForNode(Node*) --> enterVideoFullscreenForVideoElement(HTMLVideoElement*)
3123         exitFullscreenForNode(Node*) --> exitVideoFullscreen()
3124         
3125         The old versions had unnecessary parameters, did not clearly distinguish their purpose
3126         from enterFullscreenForElement and friends, and wrongly claimed generality to all Nodes.
3127         Also changed many other places to use HTMLVideoElement* instead of Node* or 
3128         HTMLMediaElement* when they were in fact only used for video elements and would only
3129         work for such.
3130
3131         Legacy video fullscreen in WebKit2 is only supported on iOS (for other ports that support
3132         it, it's WK1 only).
3133         
3134         * WebProcess/WebCoreSupport/WebChromeClient.cpp:
3135         (WebKit::WebChromeClient::supportsVideoFullscreen): Adjust for renames as
3136         mentioned.
3137         (WebKit::WebChromeClient::enterVideoFullscreenForVideoElement): ditto
3138         (WebKit::WebChromeClient::exitVideoFullscreen): ditto
3139         * WebProcess/WebCoreSupport/WebChromeClient.h:
3140         * WebProcess/ios/WebVideoFullscreenManager.h:
3141         * WebProcess/ios/WebVideoFullscreenManager.mm:
3142         (WebKit::clientRectForElement): No need to be generic to node.
3143         (WebKit::WebVideoFullscreenManager::supportsVideoFullscreen): Adjust for the
3144         main refactoring. Also change m_node to m_videoElement with appropriate type change.
3145         (WebKit::WebVideoFullscreenManager::enterVideoFullscreenForVideoElement): ditto
3146         (WebKit::WebVideoFullscreenManager::exitVideoFullscreen): ditto
3147         (WebKit::WebVideoFullscreenManager::didEnterFullscreen): ditto 
3148         (WebKit::WebVideoFullscreenManager::didExitFullscreen): ditto
3149         (WebKit::WebVideoFullscreenManager::didCleanupFullscreen): ditto
3150
3151 2014-09-03  Dan Bernstein  <mitz@apple.com>
3152
3153         Get rid of HIGH_DPI_CANVAS leftovers
3154         https://bugs.webkit.org/show_bug.cgi?id=136491
3155
3156         Reviewed by Benjamin Poulain.
3157
3158         * Configurations/FeatureDefines.xcconfig: Removed definition of ENABLE_HIGH_DPI_CANVAS
3159         and removed it from FEATURE_DEFINES.
3160
3161 2014-09-02  Yongjun Zhang  <yongjun_zhang@apple.com>
3162
3163         Pass the resource identifier in willSendRequest callback.
3164         https://bugs.webkit.org/show_bug.cgi?id=136325
3165
3166         Reviewed by Dan Bernstein.
3167
3168         Add two new delegate methods webProcessPlugInBrowserContextController:frame:willSendRequestForResource:request:redirectResponse:
3169         and webProcessPlugInBrowserContextController:frame:didInitiateLoadForResource:request:pageIsProvisionallyLoading:. We will remove
3170         the old willSendRequest and didInitiateLoadForResource when clients adopt the new methods.
3171
3172         * WebProcess/InjectedBundle/API/Cocoa/WKWebProcessPlugInLoadDelegate.h:
3173         * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugInBrowserContextController.mm:
3174         (willSendRequestForFrame):
3175         (didInitiateLoadForResource):
3176
3177 2014-09-02  Philippe Normand  <pnormand@igalia.com>
3178
3179         Unreviewed, GTK build fix after r173163.
3180
3181         * UIProcess/API/gtk/PageClientImpl.cpp:
3182         (WebKit::PageClientImpl::createDrawingAreaProxy):
3183         * UIProcess/DrawingAreaProxyImpl.cpp:
3184         (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
3185         (WebKit::DrawingAreaProxyImpl::update):
3186         (WebKit::DrawingAreaProxyImpl::didUpdateBackingStoreState):
3187         (WebKit::DrawingAreaProxyImpl::incorporateUpdate):
3188         (WebKit::DrawingAreaProxyImpl::sendUpdateBackingStoreState):
3189         (WebKit::DrawingAreaProxyImpl::waitForAndDispatchDidUpdateBackingStoreState):
3190         (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
3191         (WebKit::DrawingAreaProxyImpl::exitAcceleratedCompositingMode):
3192         (WebKit::DrawingAreaProxyImpl::updateAcceleratedCompositingMode):
3193         * UIProcess/DrawingAreaProxyImpl.h:
3194
3195 2014-09-01  Timothy Horton  <timothy_horton@apple.com>
3196
3197         Fix the iOS build.
3198
3199         * UIProcess/ios/WKContentView.mm:
3200         (-[WKContentView _createDrawingAreaProxy]):
3201         Whoops.
3202
3203 2014-09-01  Ryuan Choi  <ryuan.choi@gmail.com>
3204
3205         Build break on the EFL port since r173163
3206         https://bugs.webkit.org/show_bug.cgi?id=136443
3207
3208         Unreviewed build fix.
3209
3210         * UIProcess/BackingStore.cpp:
3211         (WebKit::BackingStore::BackingStore):
3212         * UIProcess/BackingStore.h:
3213         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.cpp:
3214         (WebKit::CoordinatedDrawingAreaProxy::CoordinatedDrawingAreaProxy):
3215         (WebKit::CoordinatedDrawingAreaProxy::updateViewport):
3216         (WebKit::CoordinatedDrawingAreaProxy::contentsRect):
3217         (WebKit::CoordinatedDrawingAreaProxy::update):
3218         (WebKit::CoordinatedDrawingAreaProxy::didUpdateBackingStoreState):
3219         (WebKit::CoordinatedDrawingAreaProxy::incorporateUpdate):
3220         (WebKit::CoordinatedDrawingAreaProxy::sendUpdateBackingStoreState):
3221         (WebKit::CoordinatedDrawingAreaProxy::waitForAndDispatchDidUpdateBackingStoreState):
3222         (WebKit::CoordinatedDrawingAreaProxy::enterAcceleratedCompositingMode):
3223         (WebKit::CoordinatedDrawingAreaProxy::exitAcceleratedCompositingMode):
3224         (WebKit::CoordinatedDrawingAreaProxy::updateAcceleratedCompositingMode):
3225         * UIProcess/CoordinatedGraphics/CoordinatedDrawingAreaProxy.h:
3226         (WebKit::CoordinatedDrawingAreaProxy::page):
3227         * UIProcess/CoordinatedGraphics/CoordinatedLayerTreeHostProxy.cpp:
3228         (WebKit::CoordinatedLayerTreeHostProxy::CoordinatedLayerTreeHostProxy):
3229         (WebKit::CoordinatedLayerTreeHostProxy::~CoordinatedLayerTreeHostProxy):
3230         (WebKit::CoordinatedLayerTreeHostProxy::commitCoordinatedGraphicsState):
3231         (WebKit::CoordinatedLayerTreeHostProxy::setVisibleContentsRect):
3232         (WebKit::CoordinatedLayerTreeHostProxy::renderNextFrame):
3233         (WebKit::CoordinatedLayerTreeHostProxy::purgeBackingStores):
3234         (WebKit::CoordinatedLayerTreeHostProxy::commitScrollOffset):
3235         * UIProcess/CoordinatedGraphics/WebView.cpp:
3236         (WebKit::WebView::createDrawingAreaProxy):
3237         * UIProcess/cairo/BackingStoreCairo.cpp:
3238         (WebKit::BackingStore::incorporateUpdate):
3239
3240 2014-09-01  Tim Horton  <timothy_horton@apple.com>
3241
3242         Remove two unused WebKit2 PDF-related preferences
3243         https://bugs.webkit.org/show_bug.cgi?id=136441
3244
3245         Reviewed by Dan Bernstein.
3246
3247         * Shared/WebPreferencesDefinitions.h:
3248         Move the macro arguments comment down near where the macros are being used.
3249         No need to check both PLATFORM(IOS) and PLATFORM(IOS_SIMULATOR); the second can't be true without the first.
3250         These two PDF preferences are long-unused; if we bring back their functionality,
3251         we'll bring back the preferences.
3252
3253 2014-09-01  Tim Horton  <timothy_horton@apple.com>
3254
3255         DrawingAreaProxy and friends can hold on to WebPageProxy by reference
3256         https://bugs.webkit.org/show_bug.cgi?id=136440
3257
3258         Reviewed by Dan Bernstein.
3259
3260         * UIProcess/API/mac/WKView.mm:
3261         (-[WKView _createDrawingAreaProxy]):
3262         * UIProcess/DrawingAreaProxy.cpp:
3263         (WebKit::DrawingAreaProxy::DrawingAreaProxy):
3264         (WebKit::DrawingAreaProxy::~DrawingAreaProxy):
3265         (WebKit::DrawingAreaProxy::setExposedRect):
3266         (WebKit::DrawingAreaProxy::exposedRectChangedTimerFired):
3267         * UIProcess/DrawingAreaProxy.h:
3268         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
3269         * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
3270         (WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy):
3271         (WebKit::RemoteLayerTreeDrawingAreaProxy::~RemoteLayerTreeDrawingAreaProxy):
3272         (WebKit::RemoteLayerTreeDrawingAreaProxy::sizeDidChange):
3273         (WebKit::RemoteLayerTreeDrawingAreaProxy::deviceScaleFactorDidChange):
3274         (WebKit::RemoteLayerTreeDrawingAreaProxy::scaledExposedRect):
3275         (WebKit::RemoteLayerTreeDrawingAreaProxy::sendUpdateGeometry):
3276         (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree):
3277         (WebKit::RemoteLayerTreeDrawingAreaProxy::acceleratedAnimationDidStart):
3278         (WebKit::RemoteLayerTreeDrawingAreaProxy::acceleratedAnimationDidEnd):
3279         (WebKit::RemoteLayerTreeDrawingAreaProxy::indicatorLocation):
3280         (WebKit::RemoteLayerTreeDrawingAreaProxy::indicatorScale):
3281         (WebKit::RemoteLayerTreeDrawingAreaProxy::updateDebugIndicator):
3282         (WebKit::RemoteLayerTreeDrawingAreaProxy::didRefreshDisplay):
3283         (WebKit::RemoteLayerTreeDrawingAreaProxy::waitForDidUpdateViewState):
3284         (WebKit::RemoteLayerTreeDrawingAreaProxy::dispatchAfterEnsuringDrawing):
3285         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.h:
3286         * UIProcess/mac/TiledCoreAnimationDrawingAreaProxy.mm:
3287         (WebKit::TiledCoreAnimationDrawingAreaProxy::TiledCoreAnimationDrawingAreaProxy):
3288         (WebKit::TiledCoreAnimationDrawingAreaProxy::deviceScaleFactorDidChange):
3289         (WebKit::TiledCoreAnimationDrawingAreaProxy::sizeDidChange):
3290         (WebKit::TiledCoreAnimationDrawingAreaProxy::waitForPossibleGeometryUpdate):
3291         (WebKit::TiledCoreAnimationDrawingAreaProxy::colorSpaceDidChange):
3292         (WebKit::TiledCoreAnimationDrawingAreaProxy::minimumLayoutSizeDidChange):
3293         (WebKit::TiledCoreAnimationDrawingAreaProxy::enterAcceleratedCompositingMode):
3294         (WebKit::TiledCoreAnimationDrawingAreaProxy::updateAcceleratedCompositingMode):
3295         (WebKit::TiledCoreAnimationDrawingAreaProxy::didUpdateGeometry):
3296         (WebKit::TiledCoreAnimationDrawingAreaProxy::waitForDidUpdateViewState):
3297         (WebKit::TiledCoreAnimationDrawingAreaProxy::intrinsicContentSizeDidChange):
3298         (WebKit::TiledCoreAnimationDrawingAreaProxy::sendUpdateGeometry):
3299         (WebKit::TiledCoreAnimationDrawingAreaProxy::adjustTransientZoom):
3300         (WebKit::TiledCoreAnimationDrawingAreaProxy::commitTransientZoom):
3301
3302 2014-09-01  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
3303
3304         [CMAKE] Build warning by INTERFACE_LINK_LIBRARIES
3305         https://bugs.webkit.org/show_bug.cgi?id=136194
3306
3307         Reviewed by Csaba Osztrogonác.
3308
3309         Set the LINK_INTERFACE_LIBRARIES target property on the top level CMakeLists.txt.
3310
3311         * CMakeLists.txt:
3312
3313 2014-09-01  Michael Catanzaro  <mcatanzaro@igalia.com>
3314
3315         [SOUP] WebKitDownload cannot overwrite existing file
3316         https://bugs.webkit.org/show_bug.cgi?id=136322
3317
3318         Reviewed by Carlos Garcia Campos.
3319
3320         * Shared/Downloads/soup/DownloadSoup.cpp:
3321         (WebKit::DownloadClient::didReceiveResponse): pass a member variable
3322         to Download::decideDestinationWithSuggestedFilename instead of a
3323         temporary bool, so we can use the result in didFinishLoading.
3324         (WebKit::DownloadClient::didFinishLoading): overwrite the destination
3325         if Download::decideDestinationWithSuggestedFilename determined we
3326         should do so.
3327
3328 2014-08-31  Tim Horton  <timothy_horton@apple.com>
3329
3330         Occasional crashes (null deref) under ViewGestureController::endMagnificationGesture
3331         https://bugs.webkit.org/show_bug.cgi?id=136409
3332         <rdar://problem/18104748>
3333
3334         Reviewed by Dan Bernstein.
3335
3336         * UIProcess/mac/ViewGestureControllerMac.mm:
3337         (WebKit::ViewGestureController::endMagnificationGesture):
3338         Null-check DrawingArea.
3339
3340 2014-08-26  Maciej Stachowiak  <mjs@apple.com>
3341
3342         Use RetainPtr::autorelease in some places where it seems appropriate
3343         https://bugs.webkit.org/show_bug.cgi?id=136280
3344
3345         Reviewed by Darin Adler.
3346
3347         * Shared/Cocoa/WKNSURLExtras.mm:
3348         (urlWithWTFString): Use autorelease() instead of CFBridgingRelease(leakRef())
3349
3350 2014-08-29  Tim Horton  <timothy_horton@apple.com>
3351
3352         More occasional crashes in ServicesController::resfreshExistingServices
3353         https://bugs.webkit.org/show_bug.cgi?id=136387
3354         <rdar://problem/18167200>
3355
3356         Reviewed by Dan Bernstein.
3357
3358         * UIProcess/mac/ServicesController.mm:
3359         (WebKit::ServicesController::ServicesController):
3360         Speculative fix; if this block is called synchronously, we'll end up
3361         calling back into ::shared() before the NeverDestroyed is initialized,
3362         ending up with two ServicesControllers.
3363
3364 2014-08-29  Alexey Proskuryakov  <ap@apple.com>
3365
3366         Crashes in IPC code under VisitedLinkProvider::pendingVisitedLinksTimerFired
3367         https://bugs.webkit.org/show_bug.cgi?id=136384
3368         rdar://problem/16991213
3369
3370         Reviewed by Sam Weinig.
3371
3372         VisitedLinkProvider process tracking relied on a combination of WebPageProxy process
3373         lifecycle notifications and checking process state. As evidenced by multiple FIXMEs,
3374         these are not yet as reliable as they should be.
3375         
3376         Changed to unregister a process when it closes, not when it no longer has any pages
3377         using the particular VisitedLinkProvider or WebUserContentControllerProxy. This
3378         is a deoptimization that should not matter in practice.
3379
3380         * UIProcess/UserContent/WebUserContentControllerProxy.cpp:
3381         (WebKit::WebUserContentControllerProxy::~WebUserContentControllerProxy):
3382         (WebKit::WebUserContentControllerProxy::removeProcess):
3383         (WebKit::WebUserContentControllerProxy::addUserScript):
3384         (WebKit::WebUserContentControllerProxy::removeAllUserScripts):
3385         (WebKit::WebUserContentControllerProxy::addUserStyleSheet):
3386         (WebKit::WebUserContentControllerProxy::removeAllUserStyleSheets):
3387         (WebKit::WebUserContentControllerProxy::addUserScriptMessageHandler):
3388         (WebKit::WebUserContentControllerProxy::removeUserMessageHandlerForName):
3389         * UIProcess/UserContent/WebUserContentControllerProxy.h:
3390         * UIProcess/VisitedLinkProvider.cpp:
3391         (WebKit::VisitedLinkProvider::~VisitedLinkProvider):
3392         (WebKit::VisitedLinkProvider::removeProcess):
3393         (WebKit::VisitedLinkProvider::removeAll):
3394         (WebKit::VisitedLinkProvider::pendingVisitedLinksTimerFired):
3395         (WebKit::VisitedLinkProvider::resizeTable):
3396         * UIProcess/VisitedLinkProvider.h:
3397         * UIProcess/WebPageProxy.cpp:
3398         (WebKit::WebPageProxy::WebPageProxy):
3399         (WebKit::WebPageProxy::close):
3400         (WebKit::WebPageProxy::processDidFinishLaunching):
3401         (WebKit::WebPageProxy::resetStateAfterProcessExited):
3402         * UIProcess/WebProcessProxy.cpp:
3403         (WebKit::WebProcessProxy::disconnect):
3404         (WebKit::WebProcessProxy::addVisitedLinkProvider):
3405         (WebKit::WebProcessProxy::addWebUserContentControllerProxy):
3406         (WebKit::WebProcessProxy::didDestroyVisitedLinkProvider):
3407         (WebKit::WebProcessProxy::didDestroyWebUserContentControllerProxy):
3408         * UIProcess/WebProcessProxy.h:
3409
3410 2014-08-29  Alexey Proskuryakov  <ap@apple.com>
3411
3412         WebPageProxy::close() is a no-op for terminated processes
3413         https://bugs.webkit.org/show_bug.cgi?id=136378
3414         Related to <rdar://problem/16991213> and to <rdar://problem/17095600>
3415
3416         Reviewed by Brady Eidson.
3417
3418         Also fixes issues that got uncovered after making close() work.
3419
3420         * UIProcess/WebInspectorProxy.cpp: (WebKit::WebInspectorProxy::invalidate): Don't
3421         close the page, because it makes no sense, and causes an assertion now. Previosly,
3422         this was OK because the page was invalid already, and close() was a no-op.
3423
3424         * UIProcess/WebPageProxy.cpp:
3425         (WebKit::WebPageProxy::~WebPageProxy): Added some assertions to catch invalidation
3426         issues earlier.
3427         (WebKit::WebPageProxy::reattachToWebProcess): Make it an invariant that a page's
3428         process always has a message receiver for it, until close() removes it.
3429         (WebKit::WebPageProxy::close): Make this function work for all open pages, whether
3430         they have a page or not.
3431         (WebKit::WebPageProxy::processDidFinishLaunching): Added an asserion that process
3432         agrees about its state.
3433         (WebKit::WebPageProxy::resetStateAfterProcessExited): Don't remove a message receiver,
3434         we now only do this in reattach or close.
3435
3436 2014-08-29  Antti Koivisto  <antti@apple.com>
3437
3438         Remove NetworkResourceLoaderClient and subclasses.
3439         https://bugs.webkit.org/show_bug.cgi?id=136370
3440
3441         Reviewed by Darin Adler.
3442
3443         This code is needlessly abstract. Move what logic these classes have to NetworkResourceLoader.
3444
3445         * NetworkProcess/AsynchronousNetworkLoaderClient.cpp: Removed.
3446         * NetworkProcess/AsynchronousNetworkLoaderClient.h: Removed.
3447         * NetworkProcess/NetworkLoaderClient.h: Removed.
3448         * NetworkProcess/NetworkResourceLoader.cpp:
3449         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
3450         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
3451         (WebKit::NetworkResourceLoader::isSynchronous):
3452         (WebKit::NetworkResourceLoader::didReceiveResponseAsync):
3453         (WebKit::NetworkResourceLoader::didReceiveBuffer):
3454         (WebKit::NetworkResourceLoader::didFinishLoading):
3455         (WebKit::NetworkResourceLoader::didFail):
3456         (WebKit::NetworkResourceLoader::willSendRequestAsync):
3457         (WebKit::NetworkResourceLoader::didSendData):
3458         (WebKit::NetworkResourceLoader::sendBuffer):
3459         (WebKit::NetworkResourceLoader::sendReplyToSynchronousRequest):
3460         (WebKit::NetworkResourceLoader::canAuthenticateAgainstProtectionSpaceAsync):
3461         * NetworkProcess/NetworkResourceLoader.h:
3462         (WebKit::NetworkResourceLoader::SynchronousLoadData::SynchronousLoadData):
3463         * NetworkProcess/SynchronousNetworkLoaderClient.cpp: Removed.
3464         * NetworkProcess/SynchronousNetworkLoaderClient.h: Removed.
3465         * WebKit2.xcodeproj/project.pbxproj:
3466
3467 2014-08-29  Csaba Osztrogonác  <ossy@webkit.org>
3468
3469         Unreviwed, remove empty directories.
3470
3471         * PluginProcess/qt: Removed.
3472         * Shared/API/c/qt: Removed.
3473         * Shared/Downloads/qt: Removed.
3474         * Shared/FileAPI: Removed.
3475         * Shared/qt: Removed.
3476         * UIProcess/API/C/qt: Removed.
3477         * UIProcess/API/cpp/qt: Removed.
3478         * UIProcess/API/qt: Removed.
3479         * UIProcess/API/qt/raw: Removed.
3480         * UIProcess/API/qt/tests: Removed.
3481         * UIProcess/API/qt/tests/html: Removed.
3482         * UIProcess/API/qt/tests/html/resources: Removed.
3483         * UIProcess/API/qt/tests/inspectorserver: Removed.
3484         * UIProcess/API/qt/tests/publicapi: Removed.
3485         * UIProcess/API/qt/tests/qmltests: Removed.
3486         * UIProcess/API/qt/tests/qmltests/DesktopBehavior: Removed.
3487         * UIProcess/API/qt/tests/qmltests/WebView: Removed.
3488         * UIProcess/API/qt/tests/qmltests/common: Removed.
3489         * UIProcess/API/qt/tests/qquickwebview: Removed.
3490         * UIProcess/API/qt/tests/qrawwebview: Removed.
3491         * UIProcess/InspectorServer/qt: Removed.
3492         * UIProcess/Launcher/qt: Removed.
3493         * UIProcess/Plugins/qt: Removed.
3494         * UIProcess/SharedWorkers: Removed.
3495         * UIProcess/qt: Removed.
3496         * WebProcess/Cookies/qt: Removed.
3497         * WebProcess/Downloads: Removed.
3498         * WebProcess/IndexedDB: Removed.
3499         * WebProcess/InjectedBundle/qt: Removed.
3500         * WebProcess/NetworkInfo: Removed.
3501         * WebProcess/Plugins/Netscape/qt: Removed.
3502         * WebProcess/WebCoreSupport/qt: Removed.
3503         * WebProcess/WebPage/qt: Removed.
3504         * WebProcess/qt: Removed.
3505         * qt: Removed.
3506
3507 2014-08-28  Tim Horton  <timothy_horton@apple.com>
3508
3509         _setDidMoveSwipeSnapshotCallback's block should only be called if the snapshot is going to move
3510         https://bugs.webkit.org/show_bug.cgi?id=136354
3511         <rdar://problem/18167791>
3512
3513         Reviewed by Simon Fraser.
3514
3515         * UIProcess/API/Cocoa/WKViewPrivate.h:
3516         Update the comment to note the new behavior.
3517
3518         * UIProcess/mac/ViewGestureControllerMac.mm:
3519         (WebKit::ViewGestureController::beginSwipeGesture):
3520         Don't call the block until the snapshot is actually moving (if the snapshot
3521         never moves because it's behind the live view, don't call the block at all).
3522
3523 2014-08-28  Tim Horton  <timothy_horton@apple.com>
3524
3525         Occasional thread-safety-related crashes on the ServicesController queue
3526         https://bugs.webkit.org/show_bug.cgi?id=136356
3527         <rdar://problem/18045685>
3528
3529         Reviewed by Dan Bernstein.
3530
3531         * UIProcess/mac/ServicesController.mm:
3532         (WebKit::hasCompatibleServicesForItems):
3533         Added. Check directly with NSSharingService if we have any services for the given items.
3534         We should eventually check Viewer and Editor services separately so the Web process can
3535         be smarter about when it shows the overlay, but for now this maintains the existing behavior.
3536
3537         (WebKit::ServicesController::refreshExistingServices):
3538         Make use of hasCompatibleServicesForItems instead of having NSSharingServicePicker construct NSMenus.
3539
3540 2014-08-28  Tim Horton  <timothy_horton@apple.com>
3541
3542         WebKit2 doesn't support viewer services that accept image attachments
3543         https://bugs.webkit.org/show_bug.cgi?id=136349
3544         <rdar://problem/18164606>
3545
3546         Reviewed by Brady Eidson.
3547
3548         * Shared/WebProcessCreationParameters.cpp:
3549         (WebKit::WebProcessCreationParameters::encode):
3550         (WebKit::WebProcessCreationParameters::decode):
3551         Encode the already-existing parameter.
3552
3553 2014-08-28  Zalan Bujtas  <zalan@apple.com>
3554
3555         Subpixel layout: Remove unused pixel snapping functions.
3556         https://bugs.webkit.org/show_bug.cgi?id=136341
3557
3558         Reviewed by Simon Fraser.
3559
3560         Let's not encourage integral snapping by having these functions around.
3561         
3562         No change in functionality.
3563
3564         * Shared/WebRenderObject.cpp:
3565         (WebKit::WebRenderObject::WebRenderObject):
3566
3567 2014-08-27  Enrica Casucci  <enrica@apple.com>
3568
3569         textStylingAtPosition returns incorrect values after executing toggleBold, toggleItalic and toggleUnderline.
3570         https://bugs.webkit.org/show_bug.cgi?id=136323
3571         rdar://problem/18141964
3572
3573         Reviewed by Antti Koivisto.
3574
3575         For underline style we need to check typingStyle first and use that information to populate
3576         the dictionary. If there is no typing style we can use the render style.
3577         We also need to update the editor state for the toggle commands to reflect the state in the UIProcess
3578         even for commands that don't change the selection.
3579
3580         * WebProcess/WebPage/WebPage.cpp:
3581         (WebKit::WebPage::editorState):
3582         * WebProcess/WebPage/ios/WebPageIOS.mm:
3583         (WebKit::WebPage::executeEditCommandWithCallback):
3584
3585 2014-08-28  Carlos Garcia Campos  <cgarcia@igalia.com>
3586
3587         [GTK] Add webkit_uri_response_get_http_headers to WebKit2 GTK+ API
3588         https://bugs.webkit.org/show_bug.cgi?id=136248
3589
3590         Reviewed by Gustavo Noronha Silva.
3591
3592         Add webkit_uri_response_get_http_headers() that returns the HTTP
3593         headers as a SoupMessageHeaders* like webkit_uri_request_get_http_headers().
3594
3595         * UIProcess/API/gtk/WebKitURIResponse.cpp:
3596         (webkitURIResponseGetProperty): Add http-headers property getter.
3597         (webkit_uri_response_class_init): Add http-headers property.
3598         (webkit_uri_response_get_http_headers): Return the HTTP headers as
3599         a SoupMessageHeaders* or NULL for non HTTP responses.
3600         * UIProcess/API/gtk/WebKitURIResponse.h:
3601         * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbol.
3602
3603 2014-08-27  Zalan Bujtas  <zalan@apple.com>
3604
3605         Subpixel layout: Rename LayoutRect's device pixel snapping functions.
3606         https://bugs.webkit.org/show_bug.cgi?id=136319
3607
3608         Reviewed by Simon Fraser.
3609
3610         From pixelSnappedForPainting() to snapRectToDevicePixels() and 
3611         pixelSnappedIntRect*() to snappedIntRect*().
3612
3613         No change in functionality.
3614
3615         * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
3616         (WebKit::InjectedBundleNodeHandle::renderedImage):
3617         * WebProcess/WebPage/WebPage.cpp:
3618         (WebKit::WebPage::snapshotNode):
3619         * WebProcess/WebPage/mac/ServicesOverlayController.mm:
3620         (WebKit::ServicesOverlayController::buildSelectionHighlight):
3621
3622 2014-08-27  Zalan Bujtas  <zalan@apple.com>
3623
3624         Subpixel layout: Rename FloatPoint/FloatRect device pixel snapping functions.
3625         https://bugs.webkit.org/show_bug.cgi?id=136314
3626
3627         Reviewed by Simon Fraser.
3628
3629         From *edToDevicePixels() to *PointToDevicePixels() (* = floor/round/ceil)
3630
3631         EnclosedIntRect -> enclosingIntRect() changes functionality for InspectorOverlay painting,
3632         but currently untestable.
3633
3634         * UIProcess/ios/WKContentViewInteraction.mm:
3635         (-[WKContentView _updateTapHighlight]):
3636
3637 2014-08-27  Tim Horton  <timothy_horton@apple.com>
3638
3639         WebKit2 swipe gesture should report the position of the snapshot to the client
3640         https://bugs.webkit.org/show_bug.cgi?id=136308
3641         rdar://problem/18105827
3642
3643         Reviewed by Simon Fraser.
3644
3645         * UIProcess/API/Cocoa/WKViewPrivate.h:
3646         * UIProcess/API/mac/WKView.mm:
3647         (-[WKView _setDidMoveSwipeSnapshotCallback:]):
3648         Add _setDidMoveSwipeSnapshotCallback, and plumb it to ViewGestureController.
3649         Callers provide a block which is called whenever ViewGestureController moves the
3650         swipe *snapshot* layer around.
3651
3652         * UIProcess/PageClient.h:
3653         * UIProcess/WebPageProxy.h:
3654         * UIProcess/mac/PageClientImpl.h:
3655         * UIProcess/mac/PageClientImpl.mm:
3656         (WebKit::PageClientImpl::boundsOfLayerInLayerBackedWindowCoordinates):
3657         * UIProcess/mac/WebPageProxyMac.mm:
3658         (WebKit::WebPageProxy::boundsOfLayerInLayerBackedWindowCoordinates):
3659         Expose a Mac-only way to get the bounds of a given CALayer in window coordinates,
3660         respecting transforms. This only works for layer-backed windows because
3661         it uses CA in order to do the mapping respecting transforms.
3662
3663         * UIProcess/mac/ViewGestureController.h:
3664         * UIProcess/mac/ViewGestureControllerMac.mm:
3665         (WebKit::ViewGestureController::ViewGestureController):
3666         (WebKit::ViewGestureController::~ViewGestureController):
3667         (WebKit::ViewGestureController::setDidMoveSwipeSnapshotCallback):
3668         Do the Block_copy and Block_release dance to keep our copy of the callback block.
3669
3670         (WebKit::ViewGestureController::beginSwipeGesture):
3671         (WebKit::ViewGestureController::handleSwipeGesture):
3672         (WebKit::ViewGestureController::didMoveSwipeSnapshotLayer):
3673         When the swipe snapshot layer moves around, call the block.
3674
3675 2014-08-27  Tim Horton  <timothy_horton@apple.com>
3676
3677         Occasional crashes in commitTransientZoom's transaction completion block
3678         https://bugs.webkit.org/show_bug.cgi?id=136309
3679         <rdar://problem/17215064>
3680
3681         Reviewed by Dan Bernstein.
3682
3683         * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
3684         (WebKit::TiledCoreAnimationDrawingArea::commitTransientZoom):
3685         Hold a reference to zoomLayer and the WebPage. It's possible that either
3686         of these things could have gone away by the time the transaction is committed.
3687
3688 2014-08-27  Benjamin Poulain  <bpoulain@apple.com>
3689
3690         [iOS WK2] Provide a delegate callback to skip Geolocation authorization per page for WebApp
3691         https://bugs.webkit.org/show_bug.cgi?id=136243
3692
3693         Reviewed by Sam Weinig.
3694
3695         Just ask the UI if the authorization dialog needs to be skipped.
3696
3697         * UIProcess/API/Cocoa/WKUIDelegate.h:
3698         * UIProcess/API/Cocoa/WKUIDelegatePrivate.h:
3699         * UIProcess/ios/PageClientImplIOS.mm:
3700         (WebKit::PageClientImpl::decidePolicyForGeolocationPermissionRequest):
3701
3702         * UIProcess/ios/WKContentView.h:
3703         * UIProcess/ios/WKContentView.mm:
3704         (-[WKContentView _decidePolicyForGeolocationRequestFromOrigin:frame:request:]): Deleted.
3705         The code in WKContentView only exists due to legacy. Instead, the PageClient dispatch the request
3706         to the GeolocationProvider directly.
3707
3708         * UIProcess/ios/WKGeolocationProviderIOS.h:
3709         * UIProcess/ios/WKGeolocationProviderIOS.mm:
3710         (-[WKGeolocationProviderIOS decidePolicyForGeolocationRequestFromOrigin:frame:request:view:]):
3711         (-[WKGeolocationProviderIOS geolocationAuthorizationGranted]):
3712         (-[WKGeolocationProviderIOS positionChanged:]):
3713         (-[WKGeolocationProviderIOS decidePolicyForGeolocationRequestFromOrigin:frame:request:window:]): Deleted.
3714
3715 2014-08-27  Beth Dakin  <bdakin@apple.com>
3716
3717         overflow:scroll elements should not latch to the body if the body is 
3718         overflow:hidden
3719         https://bugs.webkit.org/show_bug.cgi?id=136273
3720
3721         Reviewed by Darin Adler.
3722
3723         New ScrollabeArea virtual function.
3724         * WebProcess/Plugins/PDF/PDFPlugin.h:
3725
3726 2014-08-26  Matt Lilek  <mrl@apple.com>
3727
3728         Add WebKit SPI to control the navigator.standalone property
3729         https://bugs.webkit.org/show_bug.cgi?id=136189
3730
3731         Reviewed by Andy Estes.
3732
3733         Add a property to WKPreferences that allows toggling this setting.
3734
3735         * UIProcess/API/Cocoa/WKPreferences.mm:
3736         (-[WKPreferences _isStandalone]):
3737         (-[WKPreferences _setStandalone:]):
3738         * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
3739
3740 2014-08-26  Joseph Pecoraro  <pecoraro@apple.com>
3741
3742         FileReader cannot read files selected with <input type="file"> in iOS 8
3743         https://bugs.webkit.org/show_bug.cgi?id=136117
3744
3745         Reviewed by Alexey Proskuryakov.
3746
3747         * Resources/SandboxProfiles/ios/com.apple.WebKit.Networking.sb:
3748         Correct an overzealous deny that was accidentally denying all
3749         com.apple.app-sandbox.read extensions instead of just the ones
3750         in Application bundles it was trying to deny.
3751
3752 2014-08-26  Tim Horton  <timothy_horton@apple.com>
3753
3754         Crashes in ViewGestureController::beginSwipeGesture when swiping in rapid succession
3755         https://bugs.webkit.org/show_bug.cgi?id=136271
3756         <rdar://problem/17923694>
3757
3758         Reviewed by Simon Fraser.
3759
3760         It was possible to get into trackSwipeGesture while another swipe was still
3761         occurring, because the guard against this happening depended on m_pendingSwipeReason
3762         never being set while a swipe was occurring. However, if the very first scroll event
3763         had sufficient magnitude, we would still set m_pendingSwipeReason to InsufficientMagnitude,
3764         and then *never clear it*, leading to a path around the guard against multiple live swipes.
3765         This in turn allowed stale layers in m_liveSwipeLayers, which lead to the crash.
3766
3767         * UIProcess/mac/ViewGestureControllerMac.mm:
3768         (WebKit::ViewGestureController::handleScrollWheelEvent):
3769         Don't unset m_pendingSwipeReason before calling trackSwipeGesture;
3770         trackSwipeGesture will do it itself.
3771
3772         Don't set m_pendingSwipeReason to InsufficientMagnitude
3773         if the event actually *has* sufficient magnitude to start a swipe.
3774
3775         (WebKit::ViewGestureController::trackSwipeGesture):
3776         Assert that we don't have an active gesture while starting a swipe.
3777
3778         Reset m_pendingSwipeReason, because the swipe is no longer pending!
3779
3780 2014-08-26  Andy Estes  <aestes@apple.com>
3781
3782         [Cocoa] Some projects are incorrectly installed to $BUILT_PRODUCTS_DIR
3783         https://bugs.webkit.org/show_bug.cgi?id=136267
3784
3785         Reviewed by Dan Bernstein.
3786
3787         INSTALL_PATH was set to $BUILT_PRODUCTS_DIR for engineering configurations in r20225 as part of a build fix.
3788         Not only is this no longer necessary to build, but it causes built products to be incorrectly installed in
3789         engineering configurations.
3790
3791         Remove the setting of INSTALL_PATH from the pbxproj file so that the value specified in the xcconfig files is
3792         used instead.
3793
3794         * WebKit2.xcodeproj/project.pbxproj:
3795
3796 2014-08-25  Maciej Stachowiak  <mjs@apple.com>
3797
3798         Replace use of WKCopyCFLocalizationPreferredName with NSLocale public API
3799         https://bugs.webkit.org/show_bug.cgi?id=136082
3800
3801         Reviewed by Alexey Proskuryakov.
3802
3803         * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
3804         (WebKit::connectToService): Remove accidental leftover retrieval
3805         of the localization.
3806         (WebKit::createProcess): Get current localization name from
3807         CFBundle API instead of using SPI.
3808         * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
3809         (InitWebCoreSystemInterface): Remove mention of WKCopyCFLocalizationPreferredName
3810         * mac/WebKit2.order: ditto
3811
3812 2014-08-26  Dana Burkart  <dburkart@apple.com>
3813
3814         The UNUSED_PARAM macros in ServicesOverlayController.mm are causing ASan build failures.
3815         https://bugs.webkit.org/show_bug.cgi?id=136262
3816
3817         Reviewed by David Kilzer.
3818
3819         * WebProcess/WebPage/mac/ServicesOverlayController.mm:
3820         (WebKit::ServicesOverlayController::selectionRectsDidChange):
3821         (WebKit::ServicesOverlayController::selectedTelephoneNumberRangesChanged):
3822
3823 2014-08-26  Csaba Osztrogonác  <ossy@webkit.org>
3824
3825         [EFL] URTBF after r172966.
3826
3827         * UIProcess/efl/WebViewEfl.h:
3828
3829 2014-08-26  Carlos Alberto Lopez Perez  <clopez@igalia.com>
3830
3831         REGRESSION(r172966) [GTK] Build broken.
3832
3833         Unreviewed build fix after r172966.
3834
3835         * UIProcess/API/gtk/PageClientImpl.cpp:
3836         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
3837         * UIProcess/API/gtk/PageClientImpl.h:
3838
3839 2014-08-26  Simon Fraser  <simon.fraser@apple.com>
3840
3841         Crashes in hit testing under WebPage::determinePrimarySnapshottedPlugIn()
3842         https://bugs.webkit.org/show_bug.cgi?id=136240
3843         rdar://problem/17231462
3844
3845         Reviewed by Darin Adler.
3846         
3847         determinePrimarySnapshottedPlugIn() does render tree hit testing, so needs
3848         to ensure that layout is up-to-date.
3849
3850         * WebProcess/WebPage/WebPage.cpp:
3851         (WebKit::WebPage::determinePrimarySnapshottedPlugIn):
3852
3853 2014-08-26  Tim Horton  <timothy_horton@apple.com>
3854
3855         REGRESSION (r172771): Amazon product page becomes unresponsive after swiping back to it
3856         https://bugs.webkit.org/show_bug.cgi?id=136260
3857         <rdar://problem/18107826>
3858
3859         Reviewed by Dan Bernstein.
3860
3861         Previously, when a swipe ended up performing a same-document navigation,
3862         we would never get didFinishLoadForMainFrame nor didFirstVisuallyNonEmptyLayoutForMainFrame
3863         nor would we even get didHitRenderTreeSizeThreshold in all cases, so we would never
3864         remove the swipe snapshot. Previous implementations removed the snapshot on
3865         didSameDocumentNavigation for the main frame if the navigation type was Replace or Pop,
3866         so we will match that behavior.
3867
3868         Also, reinstate the watchdog that starts at swipe-end which would have prevented
3869         this bug from forever breaking the view it was associated with.
3870
3871         Also, defend against removing the snapshot before the swipe has finished (before
3872         we have even caused the navigation that we're watching for the effects of).
3873
3874         * UIProcess/API/mac/WKView.mm:
3875         (-[WKView _didSameDocumentNavigationForMainFrame:]):
3876         * UIProcess/API/mac/WKViewInternal.h:
3877         * UIProcess/PageClient.h:
3878         * UIProcess/WebPageProxy.cpp:
3879         (WebKit::WebPageProxy::didSameDocumentNavigationForFrame):
3880         * UIProcess/ios/PageClientImplIOS.h:
3881         * UIProcess/ios/PageClientImplIOS.mm:
3882         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
3883         * UIProcess/mac/PageClientImpl.h:
3884         * UIProcess/mac/PageClientImpl.mm:
3885         (WebKit::PageClientImpl::didSameDocumentNavigationForMainFrame):
3886         Plumb main-frame same-document navigation notification from WebPageProxy
3887         to ViewGestureControllerMac via PageClient and WKView.
3888
3889         * UIProcess/mac/ViewGestureController.h:
3890         * UIProcess/mac/ViewGestureControllerMac.mm:
3891         (WebKit::ViewGestureController::ViewGestureController):
3892         (WebKit::ViewGestureController::beginSwipeGesture):
3893         (WebKit::ViewGestureController::endSwipeGesture):
3894         Keep track of whether a swipe is currently occurring. We can't use
3895         activeGestureType for this because the swipe currently remains the "active"
3896         gesture until the snapshot is removed.
3897
3898         Reintroduce the old swipeWatchdogTimer (and rename the shorter timer that starts
3899         when we get a visually non-empty layout) so that we will always remove the
3900         snapshot after 5 seconds, even if we haven't committed the load.
3901         This could lead to flashing back to the old content if we fail to get a single
3902         byte for 5 seconds, but that is a rare case and should eventually get additional
3903         special treatment (dropping the tiles until we do get content, or some such).
3904
3905         (WebKit::ViewGestureController::didHitRenderTreeSizeThreshold):
3906         If a swipe is still in progress, we haven't done our navigation and thus
3907         don't care about render tree size changes.
3908
3909         (WebKit::ViewGestureController::didFirstVisuallyNonEmptyLayoutForMainFrame):
3910         If a swipe is still in progress, we haven't done our navigation and thus
3911         don't care about layouts.
3912
3913         Stop the 5 second overall watchdog if we start the 3 second after-visuallyNonEmptyLayout
3914         watchdog. This means that the snapshot could stay up for a maximum of 8 seconds
3915         for a very, very slow load.
3916
3917         (WebKit::ViewGestureController::didFinishLoadForMainFrame):
3918         If a swipe is still in progress, we haven't done our navigation and thus
3919         don't care about loads that complete.
3920
3921         (WebKit::ViewGestureController::didSameDocumentNavigationForMainFrame):
3922         Remove the swipe snapshot after painting if we do replaceState or popState.
3923
3924         (WebKit::ViewGestureController::removeSwipeSnapshotAfterRepaint):
3925         If a swipe is still in progress, we shouldn't remove the snapshot yet.
3926
3927 2014-08-26  Carlos Garcia Campos  <cgarcia@igalia.com>
3928
3929         [GTK] Translations are not initialized in the UI process
3930         https://bugs.webkit.org/show_bug.cgi?id=136249
3931
3932         Reviewed by Philippe Normand.
3933
3934         This is breaking things like webkitContextMenuActionGetForContextMenuItem()
3935         for non English locales in the cases where we use the action title to guess the
3936         action, because the action title we get from the web process is translated while
3937         the one in the UI process is in English.
3938
3939         * UIProcess/API/gtk/WebKitWebContext.cpp:
3940         (createDefaultWebContext): Initialize gettext right before
3941         creating the default web context.
3942
3943 2014-08-26  Ryuan Choi  <ryuan.choi@samsung.com>
3944
3945         [EFL] Remove dead code in WebPageEfl.cpp
3946         https://bugs.webkit.org/show_bug.cgi?id=136246
3947
3948         Reviewed by Gyuyoung Kim.
3949
3950         * WebProcess/WebPage/efl/WebPageEfl.cpp:
3951         (WebKit::scroll): Deleted.
3952
3953 2014-08-26  Ryuan Choi  <ryuan.choi@samsung.com>
3954
3955         [EFL] Build break using clang
3956         https://bugs.webkit.org/show_bug.cgi?id=136245
3957
3958         Reviewed by Gyuyoung Kim.
3959
3960         * PlatformEfl.cmake: defines GTEST_HAS_RTTI=0
3961
3962 2014-08-25  Zalan Bujtas  <zalan@apple.com>
3963
3964         Subpixel layout: remove roundedLayoutPoint/roundedLayoutSize functions.
3965         https://bugs.webkit.org/show_bug.cgi?id=136236
3966
3967         Reviewed by Simon Fraser.
3968
3969         These functions simply call LayoutPoint/LayoutSize c'tors. They don't round the input value at all.
3970
3971         Non change in functionality.
3972
3973         * UIProcess/ios/WebPageProxyIOS.mm:
3974         (WebKit::WebPageProxy::computeCustomFixedPositionRect):
3975
3976 2014-08-25  Antti Koivisto  <antti@apple.com>
3977
3978         Don't pass priority as parameter to ResourceLoadScheduler
3979         https://bugs.webkit.org/show_bug.cgi?id=136232
3980
3981         Reviewed by Sam Weinig.
3982
3983         * NetworkProcess/NetworkResourceLoader.cpp:
3984         (WebKit::NetworkResourceLoader::NetworkResourceLoader):
3985         * NetworkProcess/NetworkResourceLoader.h:
3986         (WebKit::NetworkResourceLoader::priority): Deleted.
3987         * Shared/Network/NetworkResourceLoadParameters.cpp:
3988         (WebKit::NetworkResourceLoadParameters::NetworkResourceLoadParameters):
3989         (WebKit::NetworkResourceLoadParameters::encode):
3990         (WebKit::NetworkResourceLoadParameters::decode):
3991         * Shared/Network/NetworkResourceLoadParameters.h:
3992         * WebProcess/Network/WebResourceLoadScheduler.cpp:
3993         (WebKit::WebResourceLoadScheduler::scheduleSubresourceLoad):
3994         (WebKit::WebResourceLoadScheduler::schedulePluginStreamLoad):
3995         (WebKit::WebResourceLoadScheduler::scheduleLoad):
3996         * WebProcess/Network/WebResourceLoadScheduler.h:
3997         * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
3998         (WebKit::WebPlatformStrategies::loadResourceSynchronously):
3999
4000 2014-08-25  Brady Eidson  <beidson@apple.com>
4001
4002         Don't crash when the DataDetectors framework is unavailable.
4003         <rdar://problem/18106066> and https://bugs.webkit.org/show_bug.cgi?id=136234
4004
4005         Reviewed by Tim Horton.
4006
4007         * WebProcess/WebPage/mac/ServicesOverlayController.mm:
4008         (WebKit::ServicesOverlayController::buildPhoneNumberHighlights): Bail if DD.framework didn’t soft link.
4009         (WebKit::ServicesOverlayController::buildSelectionHighlight): Ditto.
4010
4011 2014-08-25  Antti Koivisto  <antti@apple.com>
4012
4013         Remove load scheduling code from network process
4014         https://bugs.webkit.org/show_bug.cgi?id=136199
4015
4016         Reviewed by Darin Adler.
4017
4018         Most platforms just flush resource loads directly to the networking layer by
4019         making the parallel load count large. Also we always pass ResourceLoadPriorityHighest
4020         to the scheduler so no actual scheduling happens. This is effectively dead code.
4021
4022         Keep basic support for serializing loads. This is only used for testing.
4023
4024         * NetworkProcess/HostRecord.cpp: Removed.
4025         * NetworkProcess/HostRecord.h: Removed.
4026         * NetworkProcess/NetworkConnectionToWebProcess.cpp:
4027         (WebKit::NetworkConnectionToWebProcess::servePendingRequests):
4028         * NetworkProcess/NetworkProcess.cpp:
4029         (WebKit::NetworkProcess::getNetworkProcessStatistics):
4030         * NetworkProcess/NetworkResourceLoadScheduler.cpp:
4031         (WebKit::NetworkResourceLoadScheduler::NetworkResourceLoadScheduler):
4032         (WebKit::NetworkResourceLoadScheduler::scheduleLoader):
4033         (WebKit::NetworkResourceLoadScheduler::removeLoader):
4034         (WebKit::NetworkResourceLoadScheduler::loadsPendingCount):
4035         (WebKit::NetworkResourceLoadScheduler::loadsActiveCount):
4036         (WebKit::NetworkResourceLoadScheduler::scheduleServePendingRequests): Deleted.
4037         (WebKit::NetworkResourceLoadScheduler::requestTimerFired): Deleted.
4038         (WebKit::NetworkResourceLoadScheduler::hostForURL): Deleted.
4039         (WebKit::NetworkResourceLoadScheduler::receivedRedirect): Deleted.
4040         (WebKit::NetworkResourceLoadScheduler::servePendingRequests): Deleted.
4041         (WebKit::NetworkResourceLoadScheduler::removeScheduledLoaders): Deleted.
4042         (WebKit::NetworkResourceLoadScheduler::scheduleRemoveLoader): Deleted.
4043         (WebKit::NetworkResourceLoadScheduler::hostsPendingCount): Deleted.
4044         (WebKit::NetworkResourceLoadScheduler::hostsActiveCount): Deleted.
4045         * NetworkProcess/NetworkResourceLoadScheduler.h:
4046         * NetworkProcess/NetworkResourceLoader.cpp:
4047         (WebKit::NetworkResourceLoader::~NetworkResourceLoader):
4048         (WebKit::NetworkResourceLoader::cleanup):
4049         (WebKit::NetworkResourceLoader::continueWillSendRequest):
4050         * NetworkProcess/NetworkResourceLoader.h:
4051         (WebKit::NetworkResourceLoader::isLoadingMainResource):
4052         (WebKit::NetworkResourceLoader::setHostRecord): Deleted.
4053         (WebKit::NetworkResourceLoader::hostRecord): Deleted.
4054         * NetworkProcess/mac/NetworkResourceLoadSchedulerMac.mm:
4055         (WebKit::NetworkResourceLoadScheduler::platformInitializeNetworkSettings):
4056   &nb