Need to #import <WebCore/QuickLook.h>.

* WebView/WebDataSource.mm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162019 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Two more exports for iOS.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix header availability checks on iOS
https://bugs.webkit.org/show_bug.cgi?id=127016

Reviewed by Andy Estes.

Make DOMTouch* and DOMGesture* headers public headers on iOS,
and fix MigrateHeaders.make to skip availability checks when
building for iOS.

* MigrateHeaders.make:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162021 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Clean up DNSResolveQueue
https://bugs.webkit.org/show_bug.cgi?id=127007

Reviewed by Geoffrey Garen.

Move the shared() getter out of line and make it use NeverDestroyed.
Add a Timer member variable instead of inheriting from TimerBase.
Use std::atomic<int> for the m_requestsInFlight member variable.

* platform/network/DNSResolveQueue.cpp:
(WebCore::DNSResolveQueue::shared):
(WebCore::DNSResolveQueue::DNSResolveQueue):
(WebCore::DNSResolveQueue::add):
(WebCore::DNSResolveQueue::timerFired):
* platform/network/DNSResolveQueue.h:
(WebCore::DNSResolveQueue::decrementRequestCount):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Move symbol __ZN7WebCore34registerQLPreviewConverterIfNeededEP5NSURLP8NSStringP6NSData to
section USE(QUICK_LOOK)

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Clean up exports and headers for iOS.

Don't use ENABLE() macro in an exported header.

* platform/ios/wak/WAKResponder.h:

Source/WebKit/ios: Clean up exports and headers for iOS.

* Misc/WebNSStringDrawing.h: Don't use PLATFORM() macro in an exported header.
* WebCoreSupport/WebFrameIOS.h: Ditto.
* WebCoreSupport/WebSelectionRect.h: Ditto.

Source/WebKit/mac: Clean up exports and headers for iOS.

Need to export WebArchivePboardType on Mac and iOS.

* WebKit.exp:
* WebKit.mac.exp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Attempt to fix 32-bit Mac build.

* WebKit.xcodeproj/project.pbxproj:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162025 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[iOS] Build fix for 32-bit simulator and device

CGFloat is defined to be float, double for 32-bit, and 64-bit devices respectively.
Because WebCore::createCGColorWithDeviceWhite() takes CGFloat arguments we need to
list both the float and double-variants of this symbol in WebCore.exp.in. Currently
we only list the version whose arguments are of type double.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore: Avoid PLATFORM() macros in exported headers.

* platform/ios/WebEvent.h:

Source/WebKit/ios: Avoid PLATFORM() macros in exported headers.

* WebView/WebPDFViewPlaceholder.h:

Source/WebKit/mac: #define ENABLE_DASHBOARD_SUPPORT for iOS.

* WebView/WebViewPrivate.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WK2] Make WebPageProxy's setUserAgent private
https://bugs.webkit.org/show_bug.cgi?id=127013

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-01-14
Reviewed by Anders Carlsson.

* UIProcess/WebPageProxy.h:
The API to modify the user agent already has 3 "setters":
-standardUserAgent
-setApplicationNameForUserAgent
-setCustomUserAgent

The method WebPageProxy::setUserAgent() is supposed to be internal, not used directly.
Using it directly would cause unexpected behaviors, for example:
-Set the user agent with setUserAgent.
-Set CustomUserAgent.
-Reset CustomUserAgent.
->The user agent is now standardUserAgent instead of the user agent defined initially.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162028 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Correct grave mistake in updating the pbxproj file rather than xcconfig.

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* Configurations/WebKit.xcconfig:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
On iOS, we never want to make scrollbar layers
https://bugs.webkit.org/show_bug.cgi?id=127024
<rdar://problem/15745768>

Reviewed by Dean Jackson.

On platforms that delegate scrolling, don't try to make layers
for scrollbars.

This fixes a crash in RenderLayerCompositor::updateOverflowControlsLayers()
where m_overflowControlsHostLayer is null.

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::shouldCompositeOverflowControls):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[WebGL] WebGLRenderingContext::validateCompressedTexDimensions improperly calculates values
https://bugs.webkit.org/show_bug.cgi?id=126926

Reviewed by Dean Jackson.

Test coverage in fast/canvas/webgl/webgl-compressed-texture-size-limit.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::compressedTexImage2D): Pass target to
validation function.
(WebCore::WebGLRenderingContext::validateCompressedTexDimensions): Revise
calculation to also confirm size is in bounds.
(WebCore::WebGLRenderingContext::validateCompressedTexSubDimensions): Pass
       target to validation function.
* html/canvas/WebGLRenderingContext.h: Modify signature.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Another build fix.

* wtf/SizeLimits.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
And yet another build fix.

* wtf/SizeLimits.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Create separate progress tracker clients
https://bugs.webkit.org/show_bug.cgi?id=127025

Reviewed by Sam Weinig.

Source/WebCore:

* loader/ProgressTracker.cpp:
(WebCore::ProgressTracker::~ProgressTracker):
* loader/ProgressTrackerClient.h:

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/mac:

* WebCoreSupport/WebFrameLoaderClient.h:
* WebCoreSupport/WebFrameLoaderClient.mm:
* WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* WebCoreSupport/WebProgressTrackerClient.mm: Added.
(WebProgressTrackerClient::WebProgressTrackerClient):
(WebProgressTrackerClient::progressTrackerDestroyed):
(WebProgressTrackerClient::willChangeEstimatedProgress):
(WebProgressTrackerClient::didChangeEstimatedProgress):
(WebProgressTrackerClient::progressStarted):
(WebProgressTrackerClient::progressEstimateChanged):
(WebProgressTrackerClient::progressFinished):
* WebView/WebView.mm:
(-[WebView _commonInitializationWithFrameName:groupName:]):
(-[WebView initSimpleHTMLDocumentWithStyle:frame:preferences:groupName:]):

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.h:
* WebProcess/WebCoreSupport/WebProgressTrackerClient.cpp: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
(WebKit::WebProgressTrackerClient::WebProgressTrackerClient):
(WebKit::WebProgressTrackerClient::progressTrackerDestroyed):
(WebKit::WebProgressTrackerClient::progressStarted):
(WebKit::WebProgressTrackerClient::progressEstimateChanged):
(WebKit::WebProgressTrackerClient::progressFinished):
* WebProcess/WebCoreSupport/WebProgressTrackerClient.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::WebPage):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add support for handling WebGL load policies.
https://bugs.webkit.org/show_bug.cgi?id=126935
<rdar://problem/15790448>.

Reviewed by Brent Fulgham.

* WebCore.xcodeproj/project.pbxproj: Copy over HTMLCanvasElement.h to the private headers directory.
* html/HTMLCanvasElement.cpp: Show the policy dialog and retrieve policies as necessary.
(WebCore::HTMLCanvasElement::getContext): Make sure that WebGL is allowed on the site.
                                          If it isn't, be sure to notify the frame loader client that
                                          the site is trying to create a WebGL context.
* loader/FrameLoaderClient.h:
(WebCore::FrameLoaderClient::webGLPolicyForHost): Used to get the WebGL load policy for a site.
* loader/FrameLoaderTypes.h:
* page/ChromeClient.h:
(WebCore::ChromeClient::webGLContextCreated): Called when a site is creating a WebGL context.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Follow up build fix attempt.

* WebCore.exp.in:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Resource finish time is sometimes earlier than response received time.

https://bugs.webkit.org/show_bug.cgi?id=127027

Reviewed by Joseph Pecoraro.

* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::didFinishLoading): Use currentTime() and not the
passed in finishTime.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Merged some subpixel skipped tests. Unreviewed.

webkit.org/b/126893 is a duplicate of webkit.org/b/126892

* platform/mac/TestExpectations:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162040 268f45cc-cd09-0410-ab3c-d52691b4dbfc