Replace svg/clip-path pixel tests by reference tests
https://bugs.webkit.org/show_bug.cgi?id=129177

Patch by Dirk Schulze <krit@webkit.org> on 2014-02-21
Rubber-stamped by Ryosuke Niwa.

This patch removes all pixel tests.

* platform/efl/svg/clip-path/clip-in-mask-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-childs-clipped-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-clipped-evenodd-twice-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-clipped-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-clipped-nonzero-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-css-transform-1-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-css-transform-2-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-objectBoundingBox-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-on-clipped-use-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-on-g-and-child-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-on-g-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-on-svg-and-child-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-on-svg-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-pixelation-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-text-and-stroke-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-text-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-transform-2-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-tspan-and-stroke-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-use-as-child-expected.png: Removed.
* platform/efl/svg/clip-path/clip-path-userSpaceOnUse-expected.png: Removed.
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.png: Removed.
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.txt: Removed.
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-expected.png: Removed.
* platform/efl/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png: Removed.
* platform/efl/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Removed.
* platform/efl/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Removed.
* platform/efl/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-in-mask-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-child-clipped-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-childs-clipped-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-clipped-evenodd-twice-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-clipped-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-clipped-nonzero-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-css-transform-1-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-css-transform-2-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-evenodd-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-evenodd-nonzero-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-nonzero-evenodd-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-nonzero-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-objectBoundingBox-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-on-clipped-use-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-on-g-and-child-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-on-g-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-on-svg-and-child-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-on-svg-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-pixelation-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-text-and-shape-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-text-and-stroke-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-text-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-transform-2-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-tspan-and-stroke-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-use-as-child-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-userSpaceOnUse-expected.png: Removed.
* platform/gtk/svg/clip-path/clip-path-with-text-clipped-expected.png: Removed.
* platform/gtk/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.png: Removed.
* platform/gtk/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.txt: Removed.
* platform/gtk/svg/clip-path/deep-nested-clip-in-mask-expected.png: Removed.
* platform/gtk/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png: Removed.
* platform/gtk/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Removed.
* platform/gtk/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Removed.
* platform/gtk/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Removed.
* platform/mac/svg/clip-path/clip-in-clip-expected.png: Removed.
* platform/mac/svg/clip-path/clip-in-mask-expected.png: Removed.
* platform/mac/svg/clip-path/clip-in-mask-objectBoundingBox-expected.png: Removed.
* platform/mac/svg/clip-path/clip-in-mask-userSpaceOnUse-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-child-clipped-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-childs-clipped-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-clipped-evenodd-twice-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-clipped-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-clipped-no-content-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-clipped-nonzero-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-css-transform-1-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-css-transform-2-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-evenodd-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-evenodd-nonzero-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-nonzero-evenodd-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-nonzero-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-objectBoundingBox-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-on-clipped-use-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-on-g-and-child-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-on-g-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-on-svg-and-child-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-on-svg-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-pixelation-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-pixelation-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-recursive-call-by-child-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-recursive-call-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-text-and-shape-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-text-and-shape-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-text-and-stroke-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-text-and-stroke-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-text-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-text-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-transform-1-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-transform-2-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-tspan-and-stroke-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-tspan-and-stroke-expected.txt: Removed.
* platform/mac/svg/clip-path/clip-path-use-as-child-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-use-as-child2-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-use-as-child3-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-use-as-child4-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-use-as-child5-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-userSpaceOnUse-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-container-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-different-unittypes-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-different-unittypes2-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-invisibile-child-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-text-clipped-expected.png: Removed.
* platform/mac/svg/clip-path/clip-path-with-text-clipped-expected.txt: Removed.
* platform/mac/svg/clip-path/clipper-placement-issue-expected.png: Removed.
* platform/mac/svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.png: Removed.
* platform/mac/svg/clip-path/deep-nested-clip-in-mask-expected.png: Removed.
* platform/mac/svg/clip-path/deep-nested-clip-in-mask-expected.txt: Removed.
* platform/mac/svg/clip-path/deep-nested-clip-in-mask-panning-expected.png: Removed.
* platform/mac/svg/clip-path/deep-nested-clip-in-mask-panning-expected.txt: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.png: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.png: Removed.
* platform/mac/svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.png: Removed.
* svg/clip-path/clip-in-clip-expected.png: Removed.
* svg/clip-path/clip-in-clip-expected.txt: Removed.
* svg/clip-path/clip-in-clip.svg: Removed.
* svg/clip-path/clip-in-mask-expected.txt: Removed.
* svg/clip-path/clip-in-mask-objectBoundingBox-expected.txt: Removed.
* svg/clip-path/clip-in-mask-objectBoundingBox.svg: Removed.
* svg/clip-path/clip-in-mask-userSpaceOnUse-expected.txt: Removed.
* svg/clip-path/clip-in-mask-userSpaceOnUse.svg: Removed.
* svg/clip-path/clip-in-mask.svg: Removed.
* svg/clip-path/clip-path-child-clipped-expected.txt: Removed.
* svg/clip-path/clip-path-child-clipped.svg: Removed.
* svg/clip-path/clip-path-childs-clipped-expected.txt: Removed.
* svg/clip-path/clip-path-childs-clipped.svg: Removed.
* svg/clip-path/clip-path-clipped-evenodd-twice-expected.txt: Removed.
* svg/clip-path/clip-path-clipped-evenodd-twice.svg: Removed.
* svg/clip-path/clip-path-clipped-expected.txt: Removed.
* svg/clip-path/clip-path-clipped-no-content-expected.png: Removed.
* svg/clip-path/clip-path-clipped-no-content-expected.txt: Removed.
* svg/clip-path/clip-path-clipped-no-content.svg: Removed.
* svg/clip-path/clip-path-clipped-nonzero-expected.txt: Removed.
* svg/clip-path/clip-path-clipped-nonzero.svg: Removed.
* svg/clip-path/clip-path-clipped.svg: Removed.
* svg/clip-path/clip-path-css-transform-1-expected.txt: Removed.
* svg/clip-path/clip-path-css-transform-1.svg: Removed.
* svg/clip-path/clip-path-css-transform-2-expected.txt: Removed.
* svg/clip-path/clip-path-css-transform-2.svg: Removed.
* svg/clip-path/clip-path-evenodd-expected.txt: Removed.
* svg/clip-path/clip-path-evenodd-nonzero-expected.txt: Removed.
* svg/clip-path/clip-path-evenodd-nonzero.svg: Removed.
* svg/clip-path/clip-path-evenodd.svg: Removed.
* svg/clip-path/clip-path-nonzero-evenodd-expected.txt: Removed.
* svg/clip-path/clip-path-nonzero-evenodd.svg: Removed.
* svg/clip-path/clip-path-nonzero-expected.txt: Removed.
* svg/clip-path/clip-path-nonzero.svg: Removed.
* svg/clip-path/clip-path-objectBoundingBox-expected.txt: Removed.
* svg/clip-path/clip-path-objectBoundingBox.svg: Removed.
* svg/clip-path/clip-path-on-clipped-use-expected.txt: Removed.
* svg/clip-path/clip-path-on-clipped-use.svg: Removed.
* svg/clip-path/clip-path-on-g-and-child-expected.txt: Removed.
* svg/clip-path/clip-path-on-g-and-child.svg: Removed.
* svg/clip-path/clip-path-on-g-expected.txt: Removed.
* svg/clip-path/clip-path-on-g.svg: Removed.
* svg/clip-path/clip-path-on-svg-and-child-expected.txt: Removed.
* svg/clip-path/clip-path-on-svg-and-child.svg: Removed.
* svg/clip-path/clip-path-on-svg-expected.txt: Removed.
* svg/clip-path/clip-path-on-svg.svg: Removed.
* svg/clip-path/clip-path-pixelation-expected.txt: Removed.
* svg/clip-path/clip-path-pixelation.svg: Removed.
* svg/clip-path/clip-path-recursive-call-by-child-expected.png: Removed.
* svg/clip-path/clip-path-recursive-call-by-child-expected.txt: Removed.
* svg/clip-path/clip-path-recursive-call-by-child.svg: Removed.
* svg/clip-path/clip-path-recursive-call-expected.png: Removed.
* svg/clip-path/clip-path-recursive-call-expected.txt: Removed.
* svg/clip-path/clip-path-recursive-call.svg: Removed.
* svg/clip-path/clip-path-text-and-shape-expected.txt: Removed.
* svg/clip-path/clip-path-text-and-shape.svg: Removed.
* svg/clip-path/clip-path-text-and-stroke-expected.txt: Removed.
* svg/clip-path/clip-path-text-and-stroke.svg: Removed.
* svg/clip-path/clip-path-text-expected.txt: Removed.
* svg/clip-path/clip-path-text.svg: Removed.
* svg/clip-path/clip-path-transform-1-expected.txt: Removed.
* svg/clip-path/clip-path-transform-1.svg: Removed.
* svg/clip-path/clip-path-transform-2-expected.txt: Removed.
* svg/clip-path/clip-path-transform-2.svg: Removed.
* svg/clip-path/clip-path-tspan-and-stroke-expected.txt: Removed.
* svg/clip-path/clip-path-tspan-and-stroke.svg: Removed.
* svg/clip-path/clip-path-use-as-child-expected.txt: Removed.
* svg/clip-path/clip-path-use-as-child.svg: Removed.
* svg/clip-path/clip-path-use-as-child2-expected.png: Removed.
* svg/clip-path/clip-path-use-as-child2-expected.txt: Removed.
* svg/clip-path/clip-path-use-as-child2.svg: Removed.
* svg/clip-path/clip-path-use-as-child3-expected.png: Removed.
* svg/clip-path/clip-path-use-as-child3-expected.txt: Removed.
* svg/clip-path/clip-path-use-as-child3.svg: Removed.
* svg/clip-path/clip-path-use-as-child4-expected.png: Removed.
* svg/clip-path/clip-path-use-as-child4-expected.txt: Removed.
* svg/clip-path/clip-path-use-as-child4.svg: Removed.
* svg/clip-path/clip-path-use-as-child5-expected.png: Removed.
* svg/clip-path/clip-path-use-as-child5-expected.txt: Removed.
* svg/clip-path/clip-path-use-as-child5.svg: Removed.
* svg/clip-path/clip-path-userSpaceOnUse-expected.txt: Removed.
* svg/clip-path/clip-path-userSpaceOnUse.svg: Removed.
* svg/clip-path/clip-path-with-container-expected.png: Removed.
* svg/clip-path/clip-path-with-container-expected.txt: Removed.
* svg/clip-path/clip-path-with-container.svg: Removed.
* svg/clip-path/clip-path-with-different-unittypes-expected.png: Removed.
* svg/clip-path/clip-path-with-different-unittypes-expected.txt: Removed.
* svg/clip-path/clip-path-with-different-unittypes.svg: Removed.
* svg/clip-path/clip-path-with-different-unittypes2-expected.png: Removed.
* svg/clip-path/clip-path-with-different-unittypes2-expected.txt: Removed.
* svg/clip-path/clip-path-with-different-unittypes2.svg: Removed.
* svg/clip-path/clip-path-with-invisibile-child-expected.png: Removed.
* svg/clip-path/clip-path-with-invisibile-child-expected.txt: Removed.
* svg/clip-path/clip-path-with-invisibile-child.svg: Removed.
* svg/clip-path/clip-path-with-text-clipped-expected.txt: Removed.
* svg/clip-path/clip-path-with-text-clipped.svg: Removed.
* svg/clip-path/clipper-placement-issue-expected.png: Removed.
* svg/clip-path/clipper-placement-issue-expected.txt: Removed.
* svg/clip-path/clipper-placement-issue.svg: Removed.
* svg/clip-path/deep-nested-clip-in-mask-different-unitTypes-expected.txt: Removed.
* svg/clip-path/deep-nested-clip-in-mask-different-unitTypes.svg: Removed.
* svg/clip-path/deep-nested-clip-in-mask-expected.txt: Removed.
* svg/clip-path/deep-nested-clip-in-mask-panning-expected.txt: Removed.
* svg/clip-path/deep-nested-clip-in-mask-panning.svg: Removed.
* svg/clip-path/deep-nested-clip-in-mask.svg: Removed.
* svg/clip-path/nested-clip-in-mask-image-based-clipping-expected.txt: Removed.
* svg/clip-path/nested-clip-in-mask-image-based-clipping.svg: Removed.
* svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping-expected.txt: Removed.
* svg/clip-path/nested-clip-in-mask-path-and-image-based-clipping.svg: Removed.
* svg/clip-path/nested-clip-in-mask-path-based-clipping-expected.txt: Removed.
* svg/clip-path/nested-clip-in-mask-path-based-clipping.svg: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164539 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: allow drag-to-adjust on angle input of gradients editor
https://bugs.webkit.org/show_bug.cgi?id=129095

Reviewed by Timothy Hatcher.

Rename CodeMirrorDragToAlterNumberController to CodeMirrorDragToAdjustNumberController and move
the core logic of a drag-to-adjust behavior out of it to a new generic class DragToAdjustController.
We use this new class from CodeMirrorGradientEditingController to provide drag-to-adjust behavior
in the angle input field of the gradient editor and also as a supporting object for the CodeMirror-
specific class.

* UserInterface/CodeMirrorDragToAdjustNumberController.css: Renamed from Source/WebInspectorUI/UserInterface/CodeMirrorDragToAlterNumberController.css.
(.CodeMirror.drag-to-adjust .CodeMirror-lines):

* UserInterface/CodeMirrorDragToAdjustNumberController.js: Added.
Removed the UI logic and use the new DragToAdjustController as a supporting object instead. We implement
the various DragToAdjustController delegate methods in order to customize its behavior to work within the
context of a CodeMirror editor, specifically to prevent activation when the editor is read-only and to
prevent adjustment when the hovered token isn't a number.

(WebInspector.CodeMirrorDragToAdjustNumberController):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.get enabled):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.set enabled):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerActiveStateChanged):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerCanBeActivated):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerCanBeAdjusted):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerWasAdjustedByAmount):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerDidReset):
(WebInspector.CodeMirrorDragToAdjustNumberController.prototype.dragToAdjustControllerCanAdjustObjectAtPoint):

* UserInterface/CodeMirrorGradientEditingController.css:
(.gradient-editing-controller > label.drag-to-adjust > input):

* UserInterface/CodeMirrorGradientEditingController.js:
Adopt the new DragToAdjustController to make the angle input field value adjustable by dragging.

(WebInspector.CodeMirrorGradientEditingController.prototype.popoverWillPresent):
(WebInspector.CodeMirrorGradientEditingController.prototype.dragToAdjustControllerWasAdjustedByAmount):
(WebInspector.CodeMirrorGradientEditingController.prototype._handleInputEvent):
(WebInspector.CodeMirrorGradientEditingController.prototype._angleInputValueDidChange):

* UserInterface/DragToAdjustController.js: Renamed from Source/WebInspectorUI/UserInterface/CodeMirrorDragToAlterNumberController.js.
New DragToAdjustController class exposing only the core UI logic of a drag-to-adjust behavior in the context
of a DOM element, exposing a few delegation methods to customize the controller's behavior:

- dragToAdjustControllerActiveStateChanged() notifies that the .active property has changed, allowing bringup
and cleanup work to be performed.

- dragToAdjustControllerDidReset() notifies that the various tracking states of the controller have been reset
allowing other state objects used by clients to be cleared.

- dragToAdjustControllerCanBeActivated() is used to check whether the controller may enter the active state upon
first hovering the target element.

- dragToAdjustControllerCanBeAdjusted() is used to check whether adjustment can be performed at the moment when
the user actually is about to engage in a drag-to-adjust interaction.

- dragToAdjustControllerCanAdjustObjectAtPoint() is used to check whether the object at the provided point (mouse
location) is an adjustable value.

- dragToAdjustControllerWasAdjustedByAmount() notifies that there is a new amount to add to the current value
following a drag-to-adjust interaction.

(WebInspector.DragToAdjustController):
(WebInspector.DragToAdjustController.prototype.get element):
(WebInspector.DragToAdjustController.prototype.set element):
(WebInspector.DragToAdjustController.prototype.set enabled):
(WebInspector.DragToAdjustController.prototype.get active):
(WebInspector.DragToAdjustController.prototype.set active):
(WebInspector.DragToAdjustController.prototype.reset):
(WebInspector.DragToAdjustController.prototype.handleEvent):
(WebInspector.DragToAdjustController.prototype._setDragging):
(WebInspector.DragToAdjustController.prototype._setTracksMouseClickAndDrag):
(WebInspector.DragToAdjustController.prototype._modifiersDidChange):
(WebInspector.DragToAdjustController.prototype._mouseMoved):
(WebInspector.DragToAdjustController.prototype._mouseWasPressed):
(WebInspector.DragToAdjustController.prototype._mouseWasDragged):
(WebInspector.DragToAdjustController.prototype._mouseWasReleased):

* UserInterface/Main.html:
Link in new source files.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Add inspection user interface for IndexedDB.

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

Reviewed by Joseph Pecoraro.

Source/WebInspectorUI:

* Localizations/en.lproj/localizedStrings.js: Updated.
* UserInterface/ContentView.js:
(WebInspector.ContentView):
(WebInspector.ContentView.isViewable):
* UserInterface/IndexedDatabase.js: Added.
(WebInspector.IndexedDatabase):
(WebInspector.IndexedDatabase.prototype.get name):
(WebInspector.IndexedDatabase.prototype.get securityOrigin):
(WebInspector.IndexedDatabase.prototype.get host):
(WebInspector.IndexedDatabase.prototype.get version):
(WebInspector.IndexedDatabase.prototype.get objectStores):
(WebInspector.IndexedDatabase.prototype.saveIdentityToCookie):
* UserInterface/IndexedDatabaseEntryDataGridNode.js: Added.
(WebInspector.IndexedDatabaseEntryDataGridNode):
(WebInspector.IndexedDatabaseEntryDataGridNode.prototype.get entry):
(WebInspector.IndexedDatabaseEntryDataGridNode.prototype.createCellContent):
* UserInterface/IndexedDatabaseHostTreeElement.js: Added.
(WebInspector.IndexedDatabaseHostTreeElement):
(WebInspector.IndexedDatabaseHostTreeElement.prototype.get name):
(WebInspector.IndexedDatabaseHostTreeElement.prototype.get categoryName):
* UserInterface/IndexedDatabaseObjectStore.js: Added.
(WebInspector.IndexedDatabaseObjectStore):
(WebInspector.IndexedDatabaseObjectStore.prototype.get name):
(WebInspector.IndexedDatabaseObjectStore.prototype.get keyPath):
(WebInspector.IndexedDatabaseObjectStore.prototype.get autoIncrement):
(WebInspector.IndexedDatabaseObjectStore.prototype.get parentDatabase):
(WebInspector.IndexedDatabaseObjectStore.prototype.get indexes):
(WebInspector.IndexedDatabaseObjectStore.prototype.saveIdentityToCookie):
(WebInspector.IndexedDatabaseObjectStore.prototype.establishRelationship):
* UserInterface/IndexedDatabaseObjectStoreContentView.css: Added.
(.content-view.indexed-database-object-store > .data-grid):
(.content-view.indexed-database-object-store > .data-grid td .section .header):
(.content-view.indexed-database-object-store > .data-grid td .section .header::before):
(.content-view.indexed-database-object-store > .data-grid td .section .header .title):
(.content-view.indexed-database-object-store > .data-grid table.data):
(.content-view.indexed-database-object-store > .data-grid table.data tr:nth-child(even)):
(.content-view.indexed-database-object-store > .data-grid table.data tr:nth-child(odd)):
(.content-view.indexed-database-object-store > .data-grid table.data tr.filler):
(.content-view.indexed-database-object-store > .data-grid :focus tr.selected td .section .header::before):
(.content-view.indexed-database-object-store > .data-grid :focus tr.selected td .section.expanded .header::before):
(.content-view.indexed-database-object-store > .data-grid :focus tr.selected td .properties-tree li.parent::before):
(.content-view.indexed-database-object-store > .data-grid :focus tr.selected td .properties-tree li.parent.expanded::before):
(.content-view.indexed-database-object-store > .data-grid :focus tr.selected td .properties-tree li *):
* UserInterface/IndexedDatabaseObjectStoreContentView.js: Added.
(WebInspector.IndexedDatabaseObjectStoreContentView.displayKeyPath):
(WebInspector.IndexedDatabaseObjectStoreContentView):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype.closed):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype.saveToCookie):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype.updateLayout):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype._reset):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype._dataGridScrolled):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype._fetchMoreData.processEntries):
(WebInspector.IndexedDatabaseObjectStoreContentView.prototype._fetchMoreData):
* UserInterface/IndexedDatabaseObjectStoreIndex.js: Added.
(WebInspector.IndexedDatabaseObjectStoreIndex):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.get name):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.get keyPath):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.get unique):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.get multiEntry):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.get parentObjectStore):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.saveIdentityToCookie):
(WebInspector.IndexedDatabaseObjectStoreIndex.prototype.establishRelationship):
* UserInterface/IndexedDatabaseObjectStoreIndexTreeElement.js: Added.
(WebInspector.IndexedDatabaseObjectStoreIndexTreeElement):
(WebInspector.IndexedDatabaseObjectStoreIndexTreeElement.prototype.get objectStoreIndex):
* UserInterface/IndexedDatabaseObjectStoreTreeElement.js: Added.
(WebInspector.IndexedDatabaseObjectStoreTreeElement):
(WebInspector.IndexedDatabaseObjectStoreTreeElement.prototype.get objectStore):
(WebInspector.IndexedDatabaseObjectStoreTreeElement.prototype.oncollapse):
(WebInspector.IndexedDatabaseObjectStoreTreeElement.prototype.onpopulate):
* UserInterface/IndexedDatabaseTreeElement.js: Added.
(WebInspector.IndexedDatabaseTreeElement):
(WebInspector.IndexedDatabaseTreeElement.prototype.get indexedDatabase):
(WebInspector.IndexedDatabaseTreeElement.prototype.oncollapse):
(WebInspector.IndexedDatabaseTreeElement.prototype.onpopulate):
* UserInterface/Main.html:
* UserInterface/Main.js:
(WebInspector.sidebarPanelForRepresentedObject):
* UserInterface/ResourceSidebarPanel.js:
(WebInspector.ResourceSidebarPanel):
(WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):
(WebInspector.ResourceSidebarPanel.prototype._indexedDatabaseWasAdded):
(WebInspector.ResourceSidebarPanel.prototype._storageCleared):
* UserInterface/StorageManager.js:
(WebInspector.StorageManager):
(WebInspector.StorageManager.prototype.initialize):
(WebInspector.StorageManager.prototype.processData):
(WebInspector.StorageManager.prototype.requestIndexedDatabaseData):
(WebInspector.StorageManager.prototype._mainResourceDidChange):
(WebInspector.StorageManager.prototype._addIndexedDBDatabasesIfNeeded.processDatabaseNames):
(WebInspector.StorageManager.prototype._addIndexedDBDatabasesIfNeeded.processDatabase):
(WebInspector.StorageManager.prototype._addIndexedDBDatabasesIfNeeded):
(WebInspector.StorageManager.prototype._addIndexedDBDatabasesIfNeeded.processObjectStore):
(WebInspector.StorageManager.prototype._addIndexedDBDatabasesIfNeeded.processObjectStoreIndex):
(WebInspector.StorageManager.prototype._securityOriginDidChange):
* UserInterface/URLUtilities.js:
(parseSecurityOrigin):

LayoutTests:

* http/tests/inspector-protocol/resources/InspectorTest.js:
(InspectorTest.initializeInspectorModels): Add IndexedDatabase models and StorageManager.
* inspector-protocol/indexeddb/basics-expected.txt: Added.
* inspector-protocol/indexeddb/basics.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Revert r164434 since it actually broke ASan builds
<http://webkit.org/b/128871>

* Configurations/WebKit.xcconfig: This caused -asan-blacklist to
be included twice on every compiler command, which caused clang
to error out.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164542 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Organize WebInspectorUI/UserInterface into sub-directories.

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

Rubber-stamped by Joseph Pecoraro.

* Scripts/copy-user-interface-resources.sh: Fix Image URLs and Protocol paths.
* UserInterface/Base: Added.
* UserInterface/Controllers: Added.
* UserInterface/Images: Added.
* UserInterface/Main.html: Updated.
* UserInterface/Models Added.
* UserInterface/Protocol Added.
* UserInterface/Views: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164543 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix production builds and tests.

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

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rename JWK key_ops values from wrap/unwrap to wrapKey/unwrapKey
https://bugs.webkit.org/show_bug.cgi?id=129121

Reviewed by Sam Weinig.

Source/WebCore:

* bindings/js/JSCryptoKeySerializationJWK.cpp:
(WebCore::JSCryptoKeySerializationJWK::reconcileUsages): Updated to newer names.
(WebCore::addUsagesToJSON): Ditto.
(WebCore::JSCryptoKeySerializationJWK::serialize): rsa-oaep-key-manipulation test
started ot fail, because RSA-OAEP with 2048 bit key and sha-1 can only encrypt
214 bytes, and the new longer names made JSON serialization slightly longer.
Compensate by not doing any indentation in JSON.

LayoutTests:

* crypto/subtle/aes-export-key-expected.txt:
* crypto/subtle/aes-export-key.html:
* crypto/subtle/jwk-export-use-values-expected.txt:
* crypto/subtle/jwk-export-use-values.html:
* crypto/subtle/jwk-import-use-values-expected.txt:
* crypto/subtle/jwk-import-use-values.html:
* crypto/subtle/rsa-oaep-key-manipulation-expected.txt:
* crypto/subtle/rsa-oaep-key-manipulation.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<rdar://problem/12500358> [Cocoa] Development variants of XPC services should not be installed in WebKit2.framework/XPCServices
https://bugs.webkit.org/show_bug.cgi?id=129197

Reviewed by Sam Weinig.

* Configurations/BaseXPCService.xcconfig: Made INSTALL_PATH vary based on
WK_XPC_SERVICE_VARIANT. For the Development variant, use an install path outside the
framework. Note that engineering builds using the build action continue to have the
Development variants copied into the framework by a script build phase.
* Configurations/DatabaseService.Development.xcconfig: Set WK_XPC_SERVICE_VARIANT.
* Configurations/DatabaseService.xcconfig: Ditto.
* Configurations/NetworkService.Development.xcconfig: Ditto.
* Configurations/NetworkService.xcconfig: Ditto.
* Configurations/PluginService.32.xcconfig: Ditto.
* Configurations/PluginService.64.xcconfig: Ditto.
* Configurations/PluginService.Development.xcconfig: Ditto.
* Configurations/WebContentService.Development.xcconfig: Ditto.
* Configurations/WebContentService.xcconfig: Ditto.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164547 268f45cc-cd09-0410-ab3c-d52691b4dbfc
It should be possible for a LinkBuffer to outlive the MacroAssembler and still be useful
https://bugs.webkit.org/show_bug.cgi?id=124733

Reviewed by Oliver Hunt.
        
This also takes the opportunity to de-duplicate some branch compaction code.

* assembler/ARM64Assembler.h:
* assembler/ARMv7Assembler.h:
(JSC::ARMv7Assembler::buffer):
* assembler/AssemblerBuffer.h:
(JSC::AssemblerData::AssemblerData):
(JSC::AssemblerBuffer::AssemblerBuffer):
(JSC::AssemblerBuffer::storage):
(JSC::AssemblerBuffer::grow):
* assembler/LinkBuffer.h:
(JSC::LinkBuffer::LinkBuffer):
(JSC::LinkBuffer::executableOffsetFor):
(JSC::LinkBuffer::applyOffset):
* assembler/MacroAssemblerARM64.h:
(JSC::MacroAssemblerARM64::link):
* assembler/MacroAssemblerARMv7.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164548 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed, ARMv7 build fix.

* assembler/ARMv7Assembler.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164549 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Cocoa] WKUIDelegate.h is a project header
https://bugs.webkit.org/show_bug.cgi?id=129215

Reviewed by Anders Carlsson.

* WebKit2.xcodeproj/project.pbxproj: Make it a public header.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164550 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Expose phase and momentum phase as SPI on DOMWheelEvent
<rdar://problem/16110871>
https://bugs.webkit.org/show_bug.cgi?id=129184

Reviewed by Anders Carlsson.

../WebCore: 

* WebCore.exp.in:
Export core(DOMWheelEvent).

* WebCore.xcodeproj/project.pbxproj:
Make DOMWheelEventInternal.h available in WebKit.

* dom/Element.cpp:
(WebCore::Element::dispatchWheelEvent):
* dom/WheelEvent.cpp:
(WebCore::determineDeltaMode):
(WebCore::WheelEvent::WheelEvent):
(WebCore::WheelEvent::initWheelEvent):
(WebCore::WheelEvent::initWebKitWheelEvent):
Move PlatformWheelEvent -> DOMWheelEvent conversion to DOMWheelEvent.

* dom/WheelEvent.h:
(WebCore::WheelEvent::create):
(WebCore::WheelEvent::phase):
(WebCore::WheelEvent::momentumPhase):
Store phase and momentumPhase on the WheelEvent.

../WebKit/mac: 

* DOM/WebDOMOperations.mm:
(toNSEventPhase):
(-[DOMWheelEvent _phase]):
(-[DOMWheelEvent _momentumPhase]):
* DOM/WebDOMOperationsPrivate.h:
Expose _phase and _momentumPhase as SPI.

* MigrateHeaders.make:
Make DOMWheelEventInternal.h to WebKit.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Letterpress effect disabled for synthetic italic
https://bugs.webkit.org/show_bug.cgi?id=129218
<rdar://problem/15997846>

Reviewed by Dan Bernstein.

There was no need to guard against synthetic italics and letterpress.

* platform/graphics/mac/FontMac.mm:
(WebCore::Font::drawGlyphs): Remove !useLetterpressEffect from conditional.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Remove some unreachable code (-Wunreachable-code)
https://bugs.webkit.org/show_bug.cgi?id=129220

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2014-02-22
Reviewed by Eric Carlson.

Source/JavaScriptCore:

* API/tests/testapi.c:
(EvilExceptionObject_convertToType):
* disassembler/udis86/udis86_decode.c:
(decode_operand):

Source/WebCore:

* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::processCharacterBuffer):
(WebCore::HTMLTreeBuilder::processEndTag):
The only tricky case. Here there was a break inside the
#if, but not the #else, and a break after the #endif.
Remove the break inside the #if, and always use the
break after the #endif.

* Modules/indexeddb/IDBTransaction.cpp:
(WebCore::IDBTransaction::modeToString):
* bindings/js/JSTrackCustom.cpp:
(WebCore::toJS):
* bindings/js/JSWebGLRenderingContextCustom.cpp:
(WebCore::functionForUniform):
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::parseAttribute):
* page/CaptionUserPreferencesMediaAF.cpp:
(WebCore::CaptionUserPreferencesMediaAF::captionDisplayMode):

Source/WebKit2:

* WebProcess/InjectedBundle/API/c/WKBundleAPICast.h:
(WebKit::toAPI):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION (r164507): Crash beneath JSGlobalObjectInspectorController::reportAPIException at facebook.com, twitter.com, youtube.com
https://bugs.webkit.org/show_bug.cgi?id=129227

Reviewed by Eric Carlson.

Reverted r164507.

Source/JavaScriptCore: 

* API/JSBase.cpp:
(JSEvaluateScript):
(JSCheckScriptSyntax):
* API/JSObjectRef.cpp:
(JSObjectMakeFunction):
(JSObjectMakeArray):
(JSObjectMakeDate):
(JSObjectMakeError):
(JSObjectMakeRegExp):
(JSObjectGetProperty):
(JSObjectSetProperty):
(JSObjectGetPropertyAtIndex):
(JSObjectSetPropertyAtIndex):
(JSObjectDeleteProperty):
(JSObjectCallAsFunction):
(JSObjectCallAsConstructor):
* API/JSValue.mm:
(valueToArray):
(valueToDictionary):
* API/JSValueRef.cpp:
(JSValueIsEqual):
(JSValueIsInstanceOfConstructor):
(JSValueCreateJSONString):
(JSValueToNumber):
(JSValueToStringCopy):
(JSValueToObject):
* inspector/ConsoleMessage.cpp:
(Inspector::ConsoleMessage::ConsoleMessage):
(Inspector::ConsoleMessage::autogenerateMetadata):
* inspector/ConsoleMessage.h:
* inspector/JSGlobalObjectInspectorController.cpp:
(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
* inspector/JSGlobalObjectInspectorController.h:
* inspector/ScriptCallStack.cpp:
* inspector/ScriptCallStack.h:
* inspector/ScriptCallStackFactory.cpp:
(Inspector::createScriptCallStack):
(Inspector::createScriptCallStackForConsole):
(Inspector::createScriptCallStackFromException):
* inspector/ScriptCallStackFactory.h:
* inspector/agents/InspectorConsoleAgent.cpp:
(Inspector::InspectorConsoleAgent::enable):
(Inspector::InspectorConsoleAgent::addMessageToConsole):
(Inspector::InspectorConsoleAgent::count):
* inspector/agents/JSGlobalObjectDebuggerAgent.cpp:
(Inspector::JSGlobalObjectDebuggerAgent::breakpointActionLog):

Source/WebCore: 

* bindings/js/JSDOMBinding.cpp:
(WebCore::reportException):
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::buildInitiatorObject):
* inspector/PageDebuggerAgent.cpp:
(WebCore::PageDebuggerAgent::breakpointActionLog):
* inspector/TimelineRecordFactory.cpp:
(WebCore::TimelineRecordFactory::createGenericRecord):
* page/Console.cpp:
(WebCore::internalAddMessage):
(WebCore::Console::profile):
(WebCore::Console::profileEnd):
(WebCore::Console::timeEnd):
* page/ContentSecurityPolicy.cpp:
(WebCore::gatherSecurityPolicyViolationEventData):
(WebCore::ContentSecurityPolicy::reportViolation):
* page/DOMWindow.cpp:
(WebCore::DOMWindow::postMessage):

Source/WebInspectorUI: 

* UserInterface/Views/ConsoleMessageImpl.js:
(WebInspector.ConsoleMessageImpl.prototype._formatMessage):
(WebInspector.ConsoleMessageImpl.prototype._populateStackTraceTreeElement):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Subpixel rendering: Add devicepixel based computation to BorderEdge class.
https://bugs.webkit.org/show_bug.cgi?id=129224

Reviewed by Simon Fraser.

To produce correct width (and type) results, BorderEdge class needs to take device pixel ratio into account.

Currently not testable.

* rendering/RenderBoxModelObject.cpp:
(WebCore::BorderEdge::BorderEdge):
(WebCore::BorderEdge::obscuresBackgroundEdge):
(WebCore::BorderEdge::getDoubleBorderStripeWidths): this does not always produce the same
result as before, but the sum of inner and outer is not different.
(WebCore::BorderEdge::borderWidthInDevicePixel):
(WebCore::RenderBoxModelObject::getBorderEdgeInfo):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@164555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Subpixel rendering: Fix bleed avoidance subpixel calculation.
https://bugs.webkit.org/show_bug.cgi?id=129225

Reviewed by Simon Fraser.

static_cast<LayoutUnit>(int value) only produces the desired result when subpixel is off.

Currently not testable.

* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::getBackgroundRoundedRect):
(WebCore::shrinkRectByOneDevicePixel):
(WebCore::RenderBoxModelObject::borderInnerRectAdjustedForBleedAvoidance):
(WebCore::RenderBoxModelObject::backgroundRoundedRectAdjustedForBleedAvoidance):
(WebCore::RenderBoxModelObject::paintFillLayerExtended):
* rendering/RenderBoxModelObject.h:


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