Drop legacy SVGException type
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2017 02:36:52 +0000 (02:36 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2017 02:36:52 +0000 (02:36 +0000)
commit62042b9a952a8dbf61ddb5ee79cd9160afe7fd36
tree4f240678c259550f2c3bcab17da39912c2fb5f62
parentd718298f0773a9ef055b63f2bf37b811a383591b
Drop legacy SVGException type
https://bugs.webkit.org/show_bug.cgi?id=174695

Reviewed by Darin Adler.

Source/WebCore:

Drop legacy SVGException type and use DOMException instead, as per the latest
SVG specification. Both Chrome and Firefox no longer expose the SVGException
type.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMExceptionHandling.cpp:
(WebCore::createDOMException):
* bindings/js/JSExceptionBase.cpp:
(WebCore::toExceptionBase):
* dom/DOMExceptions.in:
* svg/SVGAllInOne.cpp:
* svg/SVGCircleElement.cpp:
* svg/SVGException.cpp: Removed.
* svg/SVGException.h: Removed.
* svg/SVGException.idl: Removed.
* svg/SVGGraphicsElement.idl:
* svg/SVGLocatable.cpp:
(WebCore::SVGLocatable::getTransformToElement):
* svg/SVGMatrixValue.h:
* svg/SVGPathSegList.cpp:
(WebCore::SVGPathSegList::getItem):
(WebCore::SVGPathSegList::replaceItem):
(WebCore::SVGPathSegList::removeItem):
* svg/SVGPathSegList.h:
* svg/SVGPathSegList.idl:
* svg/properties/SVGAnimatedEnumerationPropertyTearOff.h:
* svg/properties/SVGListProperty.h:

LayoutTests:

Update existing tests to reflect behavior change.

* fast/dom/Window/resources/window-properties.js:
* js/dom/global-constructors-attributes-expected.txt:
* platform/gtk/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-elcapitan/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-highsierra-wk1/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-highsierra/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt:
* platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt:
* platform/mac/js/dom/global-constructors-attributes-expected.txt:
* platform/win/js/dom/global-constructors-attributes-expected.txt:
* platform/wpe/js/dom/global-constructors-attributes-expected.txt:
* svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt:
* svg/custom/SVGException-expected.txt: Removed.
* svg/custom/SVGException.html: Removed.
* svg/custom/global-constructors-expected.txt:
* svg/custom/global-constructors.html:
* svg/custom/js-svg-constructors-expected.txt:
* svg/custom/js-svg-constructors.svg:
* svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt:
* svg/dom/SVGAnimatedEnumeration-expected.txt:
* svg/dom/SVGException-obsolete-expected.txt: Added.
* svg/dom/SVGException-obsolete.html: Added.
* svg/dom/SVGMatrix-interface-expected.txt:
* svg/dom/svglist-exception-on-out-bounds-error-expected.txt:
* svg/filters/feBlend-invalid-mode-expected.txt:
* svg/filters/feComponentTransfer-style-crash-expected.txt:
* svg/filters/feDisplacementMap-crash-test-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219712 268f45cc-cd09-0410-ab3c-d52691b4dbfc
70 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/resources/window-properties.js
LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt
LayoutTests/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/gtk/fast/dom/Window/window-lookup-precedence-expected.txt
LayoutTests/platform/gtk/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-elcapitan/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-highsierra-wk1/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-highsierra/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-wk1/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt
LayoutTests/platform/mac/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/win/js/dom/global-constructors-attributes-expected.txt
LayoutTests/platform/wpe/js/dom/global-constructors-attributes-expected.txt
LayoutTests/svg/animations/animate-marker-orient-from-angle-to-autostartreverse-expected.txt
LayoutTests/svg/custom/SVGException-expected.txt [deleted file]
LayoutTests/svg/custom/SVGException.html [deleted file]
LayoutTests/svg/custom/global-constructors-expected.txt
LayoutTests/svg/custom/global-constructors.html
LayoutTests/svg/custom/js-svg-constructors-expected.txt
LayoutTests/svg/custom/js-svg-constructors.svg
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGClipPathElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGComponentTransferFunctionElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEBlendElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEColorMatrixElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFECompositeElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEConvolveMatrixElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEDisplacementMapElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFEMorphologyElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFETurbulenceElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGFilterElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGGradientElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMarkerElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGMaskElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGPatternElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextContentElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-SVGTextPathElement-expected.txt
LayoutTests/svg/dom/SVGAnimatedEnumeration-expected.txt
LayoutTests/svg/dom/SVGException-obsolete-expected.txt [new file with mode: 0644]
LayoutTests/svg/dom/SVGException-obsolete.html [new file with mode: 0644]
LayoutTests/svg/dom/SVGMatrix-interface-expected.txt
LayoutTests/svg/dom/svglist-exception-on-out-bounds-error-expected.txt
LayoutTests/svg/filters/feBlend-invalid-mode-expected.txt
LayoutTests/svg/filters/feComponentTransfer-style-crash-expected.txt
LayoutTests/svg/filters/feDisplacementMap-crash-test-expected.txt
Source/WebCore/.gitattributes
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSBindingsAllInOne.cpp
Source/WebCore/bindings/js/JSDOMExceptionHandling.cpp
Source/WebCore/bindings/js/JSExceptionBase.cpp [deleted file]
Source/WebCore/bindings/js/JSExceptionBase.h [deleted file]
Source/WebCore/dom/DOMExceptions.in
Source/WebCore/svg/SVGAllInOne.cpp
Source/WebCore/svg/SVGCircleElement.cpp
Source/WebCore/svg/SVGException.cpp [deleted file]
Source/WebCore/svg/SVGException.h [deleted file]
Source/WebCore/svg/SVGException.idl [deleted file]
Source/WebCore/svg/SVGGraphicsElement.idl
Source/WebCore/svg/SVGLocatable.cpp
Source/WebCore/svg/SVGMatrixValue.h
Source/WebCore/svg/SVGPathSegList.cpp
Source/WebCore/svg/SVGPathSegList.h
Source/WebCore/svg/SVGPathSegList.idl
Source/WebCore/svg/properties/SVGAnimatedEnumerationPropertyTearOff.h
Source/WebCore/svg/properties/SVGListProperty.h