Expose long mouse press WebKit API. Part of 135257 - Add long mouse press gesture
https://bugs.webkit.org/show_bug.cgi?id=136048

Patch by Peyton Randolph <prandolph@apple.com> on 2014-08-18
Reviewed by Dan Bernstein.

This patch exposes long mouse press API callbacks in both the injected bundle and on the UI process
through their respective page UI clients. The callbacks are modeled off of the mouseDidMoveOverElement
callback. Like the mouseDidMoveOverElement callback, these callbacks allow the bundle to pass
information to the UI process via a userData out parameter.

Source/WebCore:

* page/Chrome.cpp:
(WebCore::Chrome::didBeginTrackingPotentialLongMousePress): Added.
(WebCore::Chrome::didRecognizeLongMousePress): Added.
(WebCore::Chrome::didCancelTrackingPotentialLongMousePress): Added.
* page/Chrome.h:
* page/ChromeClient.h:
(WebCore::ChromeClient::didBeginTrackingPotentialLongMousePress): Added.
(WebCore::ChromeClient::didRecognizeLongMousePress): Added.
(WebCore::ChromeClient::didCancelTrackingPotentialLongMousePress): Added.
* page/EventHandler.cpp:
(WebCore::EventHandler::handleMousePressEvent):
Pass the press hit test result to kick off the long mouse press.
(WebCore::EventHandler::beginTrackingPotentialLongMousePress): Notify the chrome.
(WebCore::EventHandler::recognizeLongMousePress): Ditto.
(WebCore::EventHandler::cancelTrackingPotentialLongMousePress):
Ditto. Also opportunistically remove a runtime switch check to see if long pressing is enabled. The
runtime switch check was only triggered when long pressing was disabled in the middle of a long press.
* page/EventHandler.h:

Source/WebKit2:

* UIProcess/API/APIUIClient.h:
(API::UIClient::didBeginTrackingPotentialLongMousePress): Added.
(API::UIClient::didRecognizeLongMousePress): Added.
(API::UIClient::didCancelTrackingPotentialLongMousePress): Added.
* UIProcess/API/C/WKPage.cpp:
(WKPageSetPageUIClient):
* UIProcess/API/C/WKPageUIClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::didBeginTrackingPotentialLongMousePress): Added.
(WebKit::WebPageProxy::didRecognizeLongMousePress): Added.
(WebKit::WebPageProxy::didCancelTrackingPotentialLongMousePress): Added.
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* WebProcess/InjectedBundle/API/APIInjectedBundlePageUIClient.h:
(API::InjectedBundle::PageUIClient::didBeginTrackingPotentialLongMousePress): Added.
(API::InjectedBundle::PageUIClient::didRecognizeLongMousePress): Added.
(API::InjectedBundle::PageUIClient::didCancelTrackingPotentialLongMousePress): Added.
* WebProcess/InjectedBundle/API/c/WKBundlePageUIClient.h:
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.cpp: Added.
(WebKit::InjectedBundlePageUIClient::didBeginTrackingPotentialLongMousePress): Added.
(WebKit::InjectedBundlePageUIClient::didRecognizeLongMousePress): Added.
(WebKit::InjectedBundlePageUIClient::didCancelTrackingPotentialLongMousePress): Added.
* WebProcess/InjectedBundle/InjectedBundlePageUIClient.h:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
(WebKit::WebChromeClient::didBeginTrackingPotentialLongMousePress): Added.
(WebKit::WebChromeClient::didRecognizeLongMousePress): Added.
(WebKit::WebChromeClient::didCancelTrackingPotentialLongMousePress): Added.
* WebProcess/WebCoreSupport/WebChromeClient.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172729 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tighten RenderCounter typing
https://bugs.webkit.org/show_bug.cgi?id=136049

Reviewed by Andreas Kling.

RenderObject* -> RenderElement&

* rendering/CounterNode.cpp:
(WebCore::CounterNode::CounterNode):
(WebCore::CounterNode::create):
(WebCore::showTreeAndMark):
* rendering/CounterNode.h:
(WebCore::CounterNode::owner):
* rendering/RenderCounter.cpp:
(WebCore::previousInPreOrder):
(WebCore::parentOrPseudoHostElement):
(WebCore::previousSiblingOrParent):
(WebCore::areRenderersElementsSiblings):
(WebCore::nextInPreOrder):
(WebCore::planCounter):
(WebCore::findPlaceForCounter):
(WebCore::makeCounterNode):
(WebCore::RenderCounter::originalText):
(WebCore::destroyCounterNodeWithoutMapRemoval):
(WebCore::RenderCounter::destroyCounterNodes):
(WebCore::RenderCounter::destroyCounterNode):
(WebCore::RenderCounter::rendererRemovedFromTree):
(WebCore::updateCounters):
(WebCore::RenderCounter::rendererSubtreeAttached):
(WebCore::RenderCounter::rendererStyleChanged):
(showCounterRendererTree):
* rendering/RenderCounter.h:
* rendering/RenderElement.cpp:
(WebCore::RenderElement::RenderElement):
(WebCore::RenderElement::insertChildInternal):
(WebCore::RenderElement::removeChildInternal):
(WebCore::RenderElement::styleDidChange):
(WebCore::RenderElement::willBeDestroyed):
* rendering/RenderElement.h:
(WebCore::RenderElement::hasCounterNodeMap):
(WebCore::RenderElement::setHasCounterNodeMap):
        
    Move CounterNodeMap to RenderElement from RenderObject.

* rendering/RenderObject.cpp:
(WebCore::RenderObject::willBeDestroyed):
* rendering/RenderObject.h:
(WebCore::RenderObject::RenderObjectBitfields::RenderObjectBitfields):
(WebCore::RenderObject::hasCounterNodeMap): Deleted.
(WebCore::RenderObject::setHasCounterNodeMap): Deleted.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Shapes] Import the CSS Shapes W3C test suite
https://bugs.webkit.org/show_bug.cgi?id=135921

Patch by Rebecca Hauck <rhauck@adobe.com> on 2014-08-18
Reviewed by Bem Jones-Bey.

This patch contains the imported CSS Shapes W3C test suite
brought in and converted to WebKit style using
Tools/Scripts/impoart-w3c-tests.

* TestExpectations:
* css3/shapes/shape-outside-invalid-001-expected.txt: Added.
* css3/shapes/shape-outside-invalid-001.html: Added.
* css3/shapes/shape-outside-invalid-circle-000-expected.txt: Added.
* css3/shapes/shape-outside-invalid-circle-000.html: Added.
* css3/shapes/shape-outside-invalid-circle-001-expected.txt: Added.
* css3/shapes/shape-outside-invalid-circle-001.html: Added.
* css3/shapes/shape-outside-invalid-circle-002-expected.txt: Added.
* css3/shapes/shape-outside-invalid-circle-002.html: Added.
* css3/shapes/shape-outside-invalid-circle-003-expected.txt: Added.
* css3/shapes/shape-outside-invalid-circle-003.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-001-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-001.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-002-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-002.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-003-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-003.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-004-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-004.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-005-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-005.html: Added.
* css3/shapes/shape-outside-invalid-ellipse-006-expected.txt: Added.
* css3/shapes/shape-outside-invalid-ellipse-006.html: Added.
* css3/shapes/shape-outside-invalid-inset-001-expected.txt: Added.
* css3/shapes/shape-outside-invalid-inset-001.html: Added.
* css3/shapes/shape-outside-invalid-inset-002-expected.txt: Added.
* css3/shapes/shape-outside-invalid-inset-002.html: Added.
* css3/shapes/shape-outside-invalid-inset-003-expected.txt: Added.
* css3/shapes/shape-outside-invalid-inset-003.html: Added.
* css3/shapes/shape-outside-invalid-inset-004-expected.txt: Added.
* css3/shapes/shape-outside-invalid-inset-004.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-002-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-002.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-003-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-003.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-004-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-004.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-006-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-006.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-007-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-007.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-008-expected.html: Added.
* css3/shapes/shape-outside/shape-box/shape-outside-box-008.html: Added.
* css3/shapes/shape-outside/shape-box/w3c-import.log: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-001-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-001.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-002-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-002.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-003-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-003.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-004-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-004.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-001-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-001.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-002-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-002.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-003-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-003.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004-expected.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004.html: Added.
* css3/shapes/shape-outside/shape-image/gradients/w3c-import.log: Added.
* css3/shapes/shape-outside/shape-image/shape-image-000-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-000.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-001-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-001.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-002-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-002.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-003-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-003.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-004-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-004.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-005-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-005.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-012-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-012.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-013-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-013.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-014-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-014.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-015-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-015.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-016-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-016.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-017-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-017.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-018-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-018.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-019-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-019.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-020-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-020.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-021-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-021.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-022-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-022.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-023-expected.html: Added.
* css3/shapes/shape-outside/shape-image/shape-image-023.html: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-20.png: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-20.svg: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-50.png: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-50.svg: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-70.png: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle-70.svg: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle.jpg: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle.png: Added.
* css3/shapes/shape-outside/shape-image/support/left-half-rectangle.svg: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle-20.png: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle-50.png: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle-70.png: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle-70.svg: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle.gif: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle.jpg: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle.png: Added.
* css3/shapes/shape-outside/shape-image/support/right-half-rectangle.svg: Added.
* css3/shapes/shape-outside/shape-image/support/w3c-import.log: Added.
* css3/shapes/shape-outside/shape-image/w3c-import.log: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-013-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-013.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-014-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-014.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-015-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-015.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-016-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-016.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-017-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-017.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-018-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-018.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-019-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-019.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-020-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-020.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-021-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-021.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-022-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-022.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-024-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-024.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-025-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-025.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-026-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-026.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-027-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-027.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-028-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-028.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-029-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-029.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-030-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-030.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-031-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/shape-outside-circle-031.html: Added.
* css3/shapes/shape-outside/supported-shapes/circle/w3c-import.log: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-013-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-013.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-014-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-014.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-015-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-015.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-016-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-016.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-017-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-017.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-018-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-018.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-019-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-019.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-020-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-020.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-021-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-021.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-022-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-022.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-023-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-023.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-024-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-024.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-025-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-025.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-030-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-030.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-031-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/shape-outside-ellipse-031.html: Added.
* css3/shapes/shape-outside/supported-shapes/ellipse/w3c-import.log: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-010-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-010.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-011-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-011.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-012-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-012.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-013-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-013.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-014-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-014.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-015-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/shape-outside-inset-015.html: Added.
* css3/shapes/shape-outside/supported-shapes/inset/w3c-import.log: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-007-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-007.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-008-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-008.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-009-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-009.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-010-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-010.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-011-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-011.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-012-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-012.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-013-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-013.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-014-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-014.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-015-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-015.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-016-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-016.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-017-expected.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/shape-outside-polygon-017.html: Added.
* css3/shapes/shape-outside/supported-shapes/polygon/w3c-import.log: Added.
* css3/shapes/shape-outside/supported-shapes/support/rounded-rectangle.js: Added.
(ellipseXIntercept):
(scanConvertRoundedRectangleOutside):
(genLeftRoundedRectFloatShapeOutsideRefTest):
(getRoundedRectLeftEdge):
(genRightRoundedRectFloatShapeOutsideRefTest):
* css3/shapes/shape-outside/supported-shapes/support/subpixel-utils.js: Added.
(SubPixelLayout):
(SubPixelLayout.):
* css3/shapes/shape-outside/supported-shapes/support/test-utils.js: Added.
(verifyTextPoints):
* css3/shapes/shape-outside/values/shape-image-threshold-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-000.html: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-001.html: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-002.html: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-image-threshold-003.html: Added.
* css3/shapes/shape-outside/values/shape-margin-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-000.html: Added.
* css3/shapes/shape-outside/values/shape-margin-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-001.html: Added.
* css3/shapes/shape-outside/values/shape-margin-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-002.html: Added.
* css3/shapes/shape-outside/values/shape-margin-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-003.html: Added.
* css3/shapes/shape-outside/values/shape-margin-004-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-004.html: Added.
* css3/shapes/shape-outside/values/shape-margin-005-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-margin-005.html: Added.
* css3/shapes/shape-outside/values/shape-outside-box-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-box-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-002.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-003.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-004-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-004.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-005-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-005.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-006-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-006.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-007-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-007.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-008-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-008.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-009-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-009.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-010-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-010.html: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-011-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-circle-011.html: Added.
* css3/shapes/shape-outside/values/shape-outside-computed-shape-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-computed-shape-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-computed-shape-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-computed-shape-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-002.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-003.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-004-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-004.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-005-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-005.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-006-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-006.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-007-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-007.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-008-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-008.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-009-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-009.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-010-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-010.html: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-011-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-ellipse-011.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-002.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-003.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-004-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-004.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-005-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-005.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-006-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-006.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-007-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-007.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-008-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-008.html: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-009-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-inset-009.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-002-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-002.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-003-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-003.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-004-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-004.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-005-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-005.html: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-006-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-polygon-006.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-arguments-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-arguments-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-arguments-001-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-arguments-001.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-box-pair-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-box-pair-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-inherit-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-inherit-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-initial-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-initial-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-none-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-none-000.html: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-notation-000-expected.txt: Added.
* css3/shapes/shape-outside/values/shape-outside-shape-notation-000.html: Added.
* css3/shapes/shape-outside/values/support/parsing-utils.js: Added.
(ParsingUtils):
(ParsingUtils.):
* css3/shapes/shape-outside/values/support/w3c-import.log: Added.
* css3/shapes/shape-outside/values/w3c-import.log: Added.
* css3/shapes/spec-examples/shape-outside-001-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-001.html: Added.
* css3/shapes/spec-examples/shape-outside-002-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-002.html: Added.
* css3/shapes/spec-examples/shape-outside-003-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-003.html: Added.
* css3/shapes/spec-examples/shape-outside-004-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-004.html: Added.
* css3/shapes/spec-examples/shape-outside-005-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-005.html: Added.
* css3/shapes/spec-examples/shape-outside-006-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-006.html: Added.
* css3/shapes/spec-examples/shape-outside-007-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-007.html: Added.
* css3/shapes/spec-examples/shape-outside-008-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-008.html: Added.
* css3/shapes/spec-examples/shape-outside-010-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-010.html: Added.
* css3/shapes/spec-examples/shape-outside-011-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-011.html: Added.
* css3/shapes/spec-examples/shape-outside-012-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-012.html: Added.
* css3/shapes/spec-examples/shape-outside-013-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-013.html: Added.
* css3/shapes/spec-examples/shape-outside-014-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-014.html: Added.
* css3/shapes/spec-examples/shape-outside-015-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-015.html: Added.
* css3/shapes/spec-examples/shape-outside-016-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-016.html: Added.
* css3/shapes/spec-examples/shape-outside-017-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-017.html: Added.
* css3/shapes/spec-examples/shape-outside-018-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-018.html: Added.
* css3/shapes/spec-examples/shape-outside-019-expected.html: Added.
* css3/shapes/spec-examples/shape-outside-019.html: Added.
* css3/shapes/spec-examples/support/circle-no-shadow.png: Added.
* css3/shapes/spec-examples/support/circle-shadow.png: Added.
* css3/shapes/spec-examples/support/rounded-triangle.svg: Added.
* css3/shapes/spec-examples/support/w3c-import.log: Added.
* css3/shapes/spec-examples/w3c-import.log: Added.
* css3/shapes/w3c-import.log: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix ASSERT in ARM64's JSC::GPRInfo::debugName
https://bugs.webkit.org/show_bug.cgi?id=136050

Patch by Akos Kiss <akiss@inf.u-szeged.hu> on 2014-08-18
Reviewed by Darin Adler.

Remove cast of GPRReg to unsigned to prevent signed/unsigned comparison
error.

* jit/GPRInfo.h:
(JSC::GPRInfo::debugName):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Use modern for loop instead of iterators in SharedBufferCF.cpp
https://bugs.webkit.org/show_bug.cgi?id=136000

Reviewed by Andreas Kling.

* platform/cf/SharedBufferCF.cpp:
(WebCore::SharedBuffer::copyBufferAndClear):
(WebCore::SharedBuffer::copySomeDataFromDataArray):
(WebCore::SharedBuffer::maybeAppendDataArray): Use auto& instead of auto for less RetainPtr/refcount churn.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove PurgeableBuffer since it is not very useful any more
https://bugs.webkit.org/show_bug.cgi?id=135939

Reviewed by Geoffrey Garen.

Source/WebCore:

The usefulness of having purgeable memory for cached resources has diminished now that
WebKit uses file backed resources when possible. Since this is read only memory, it is in
essence "purgeable". Having the PurgeableBuffer code adds additional complexity that we
don't need. e.g. on my Mac, I am not seeing any entry for "WebCore purgeable data" when I
run vmmap against the web processes that I have running. It is used on iOS, however even
there much of the purgeable memory we create gets replaced by file backed memory once we get
the notification from CFNetwork.

No new tests because no functional changes.

* WebCore.xcodeproj/project.pbxproj:
* inspector/InspectorPageAgent.cpp:
(WebCore::prepareCachedResourceBuffer):
* loader/DocumentLoader.cpp:
(WebCore::DocumentLoader::subresource):
* loader/ResourceBuffer.cpp:
(WebCore::ResourceBuffer::hasPurgeableBuffer): Deleted.
(WebCore::ResourceBuffer::setShouldUsePurgeableMemory): Deleted.
(WebCore::ResourceBuffer::createPurgeableBuffer): Deleted.
(WebCore::ResourceBuffer::releasePurgeableBuffer): Deleted.
* loader/ResourceBuffer.h:
* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didFinishLoading):
* loader/cache/CachedCSSStyleSheet.cpp:
(WebCore::CachedCSSStyleSheet::sheetText):
(WebCore::CachedCSSStyleSheet::destroyDecodedData):
* loader/cache/CachedCSSStyleSheet.h:
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::image):
(WebCore::CachedImage::imageForRenderer):
(WebCore::CachedImage::imageSizeForRenderer):
(WebCore::CachedImage::destroyDecodedData):
(WebCore::CachedImage::canUseDiskImageCache):
* loader/cache/CachedImage.h:
* loader/cache/CachedResource.cpp:
(WebCore::CachedResource::addClientToSet):
(WebCore::CachedResource::isSafeToMakePurgeable): Deleted.
(WebCore::CachedResource::makePurgeable): Deleted.
(WebCore::CachedResource::isPurgeable): Deleted.
(WebCore::CachedResource::wasPurged): Deleted.
* loader/cache/CachedResource.h:
(WebCore::CachedResource::resourceBuffer):
(WebCore::CachedResource::purgePriority): Deleted.
* loader/cache/CachedScript.cpp:
(WebCore::CachedScript::script):
(WebCore::CachedScript::destroyDecodedData):
* loader/cache/CachedScript.h:
* loader/cache/MemoryCache.cpp:
(WebCore::MemoryCache::resourceForRequestImpl):
(WebCore::MemoryCache::pruneDeadResourcesToSize):
(WebCore::MemoryCache::evict):
(WebCore::MemoryCache::TypeStatistic::addResource):
(WebCore::MemoryCache::dumpStats):
(WebCore::MemoryCache::dumpLRULists):
(WebCore::MemoryCache::makeResourcePurgeable): Deleted.
* loader/cache/MemoryCache.h:
(WebCore::MemoryCache::TypeStatistic::TypeStatistic):
(WebCore::MemoryCache::shouldMakeResourcePurgeableOnEviction): Deleted.
* platform/PurgePriority.h: Removed.
* platform/PurgeableBuffer.h: Removed.
* platform/SharedBuffer.cpp:
(WebCore::SharedBuffer::SharedBuffer):
(WebCore::SharedBuffer::size):
(WebCore::SharedBuffer::data):
(WebCore::SharedBuffer::append):
(WebCore::SharedBuffer::clear):
(WebCore::SharedBuffer::copy):
(WebCore::SharedBuffer::getSomeData):
(WebCore::SharedBuffer::adoptPurgeableBuffer): Deleted.
(WebCore::SharedBuffer::createPurgeableBuffer): Deleted.
(WebCore::SharedBuffer::releasePurgeableBuffer): Deleted.
* platform/SharedBuffer.h:
(WebCore::SharedBuffer::hasPurgeableBuffer): Deleted.
(WebCore::SharedBuffer::shouldUsePurgeableMemory): Deleted.
* platform/cf/SharedBufferCF.cpp:
(WebCore::SharedBuffer::SharedBuffer):
* platform/mac/PurgeableBufferMac.cpp: Removed.
* platform/mac/SharedBufferMac.mm:
(WebCore::SharedBuffer::createCFData):
* platform/soup/SharedBufferSoup.cpp:

Source/WebKit/mac:

* Misc/WebCache.mm:
(+[WebCache statistics]):

Source/WebKit/win:

* WebCache.cpp:
(WebCache::statistics):

Source/WebKit2:

* WebProcess/WebProcess.cpp:
(WebKit::getWebCoreMemoryCacheStatistics):

Source/WTF:

* wtf/Platform.h: Remove ENABLE_PURGEABLE_MEMORY define.
* wtf/VMTags.h: Remove VM tags used by WebCore for cached resource purgeable memory.

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