haikuwebkit/LayoutTests/svg/dom/SVGViewSpec-expected.txt

52 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

SVGViewSpec DOM bindings aka SVGSVGElement.currentView is unimplemented https://bugs.webkit.org/show_bug.cgi?id=15495 Reviewed by Rob Buis. Source/WebCore: Finish SVGViewSpec implementation and expose it to the Web. Numerous smaller bugs are fixed: - SVGViewSpec and all of its contents should be read-only. Enforce that and test it. Add a new enum to SVGPropertyInfo so that each SVGAnimatedProperty knows if its content is supposed to be read-write or read-only. - Make the 'transform' attribute of SVGViewSpec exposable by switching to a SVGTransformListProperty - it can now be accessed from JS. - Assure that following XXXString methods are in sync with the corresponding SVG DOM interfaces readonly attribute DOMString viewBoxString; readonly attribute DOMString preserveAspectRatioString; readonly attribute DOMString transformString; readonly attribute DOMString viewTargetString; - Cleanup code in svg/properties that was intended to handle SVGViewSpec. Turns out lot of the complexity was unncessary, and can be removed. - Move SVGFitToViewBox to the same pattern SVGZoomAndPan uses since two days, that avoids any virtual function calls for attribute parsing. - Create/expose ObjectiveC/JS bindings for SVGViewSpec. - Enable SVGViewSpec constructor. Tests: svg/custom/linking-a-03-b-all-expected.svg svg/dom/SVGViewSpec-defaults.html svg/dom/SVGViewSpec.html svg/dom/complex-svgView-specification.html svg/dom/viewspec-parser.html * CMakeLists.txt: * DerivedSources.cpp: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gyp/WebCore.gyp: * WebCore.gypi: * WebCore.order: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSSVGLengthCustom.cpp: (WebCore::JSSVGLength::setValue): (WebCore::JSSVGLength::convertToSpecifiedUnits): * bindings/objc/DOMSVG.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): (NativeToJSValue): * bindings/scripts/CodeGeneratorObjC.pm: (GenerateImplementation): * bindings/scripts/CodeGeneratorV8.pm: (GenerateNormalAttrGetter): (GenerateNormalAttrSetter): (GenerateFunctionCallback): * bindings/v8/custom/V8SVGLengthCustom.cpp: (WebCore::V8SVGLength::valueAccessorSetter): (WebCore::V8SVGLength::convertToSpecifiedUnitsCallback): * page/DOMWindow.idl: * rendering/svg/RenderSVGResourcePattern.cpp: (WebCore::RenderSVGResourcePattern::buildTileImageTransform): * svg/SVGFitToViewBox.cpp: * svg/SVGFitToViewBox.h: (SVGFitToViewBox): (WebCore::SVGFitToViewBox::parseAttribute): * svg/SVGMarkerElement.cpp: (WebCore::SVGMarkerElement::orientTypePropertyInfo): (WebCore::SVGMarkerElement::parseAttribute): (WebCore::SVGMarkerElement::synchronizeOrientType): (WebCore::SVGMarkerElement::lookupOrCreateOrientTypeWrapper): * svg/SVGPathElement.cpp: (WebCore::SVGPathElement::dPropertyInfo): (WebCore::SVGPathElement::svgAttributeChanged): (WebCore::SVGPathElement::pathByteStream): (WebCore::SVGPathElement::lookupOrCreateDWrapper): (WebCore::SVGPathElement::synchronizeD): * svg/SVGPathSegWithContext.h: (WebCore::SVGPathSegWithContext::animatedProperty): * svg/SVGPatternElement.cpp: (WebCore::SVGPatternElement::parseAttribute): * svg/SVGPolyElement.cpp: (WebCore::SVGPolyElement::pointsPropertyInfo): (WebCore::SVGPolyElement::parseAttribute): (WebCore::SVGPolyElement::synchronizePoints): (WebCore::SVGPolyElement::lookupOrCreatePointsWrapper): * svg/SVGRect.h: * svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::~SVGSVGElement): (WebCore::SVGSVGElement::currentView): (WebCore::SVGSVGElement::parseAttribute): (WebCore::SVGSVGElement::currentViewBoxRect): (WebCore::SVGSVGElement::viewBoxToViewTransform): (WebCore::SVGSVGElement::setupInitialView): (WebCore::SVGSVGElement::inheritViewAttributes): * svg/SVGSVGElement.h: (SVGSVGElement): * svg/SVGSVGElement.idl: * svg/SVGSymbolElement.cpp: (WebCore::SVGSymbolElement::parseAttribute): * svg/SVGTests.cpp: (WebCore::SVGTests::requiredFeaturesPropertyInfo): (WebCore::SVGTests::requiredExtensionsPropertyInfo): (WebCore::SVGTests::systemLanguagePropertyInfo): (WebCore::SVGTests::synchronizeRequiredFeatures): (WebCore::SVGTests::synchronizeRequiredExtensions): (WebCore::SVGTests::synchronizeSystemLanguage): * svg/SVGTextContentElement.cpp: (WebCore::SVGTextContentElement::textLengthPropertyInfo): (WebCore::SVGTextContentElement::synchronizeTextLength): (WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper): * svg/SVGViewElement.cpp: (WebCore::SVGViewElement::parseAttribute): * svg/SVGViewElement.h: * svg/SVGViewSpec.cpp: (WebCore::SVGViewSpec::viewBoxPropertyInfo): (WebCore::SVGViewSpec::preserveAspectRatioPropertyInfo): (WebCore::SVGViewSpec::transformPropertyInfo): (WebCore::SVGViewSpec::SVGViewSpec): (WebCore::SVGViewSpec::viewBoxIdentifier): (WebCore::SVGViewSpec::preserveAspectRatioIdentifier): (WebCore::SVGViewSpec::transformIdentifier): (WebCore::SVGViewSpec::setZoomAndPan): (WebCore::SVGViewSpec::setTransformString): (WebCore::SVGViewSpec::transformString): (WebCore::SVGViewSpec::viewBoxString): (WebCore::SVGViewSpec::preserveAspectRatioString): (WebCore::SVGViewSpec::viewTarget): (WebCore::SVGViewSpec::transform): (WebCore::SVGViewSpec::lookupOrCreateViewBoxWrapper): (WebCore::SVGViewSpec::lookupOrCreatePreserveAspectRatioWrapper): (WebCore::SVGViewSpec::lookupOrCreateTransformWrapper): (WebCore::SVGViewSpec::reset): (WebCore::SVGViewSpec::parseViewSpec): * svg/SVGViewSpec.h: (WebCore::SVGViewSpec::~SVGViewSpec): (SVGViewSpec): (WebCore::SVGViewSpec::create): (WebCore::SVGViewSpec::setViewTargetString): (WebCore::SVGViewSpec::setZoomAndPan): (WebCore::SVGViewSpec::contextElement): (WebCore::SVGViewSpec::resetContextElement): (WebCore::SVGViewSpec::transformBaseValue): (WebCore::SVGViewSpec::viewBoxAnimated): (WebCore::SVGViewSpec::viewBox): (WebCore::SVGViewSpec::viewBoxBaseValue): (WebCore::SVGViewSpec::setViewBoxBaseValue): (WebCore::SVGViewSpec::preserveAspectRatioAnimated): (WebCore::SVGViewSpec::preserveAspectRatio): (WebCore::SVGViewSpec::preserveAspectRatioBaseValue): (WebCore::SVGViewSpec::setPreserveAspectRatioBaseValue): * svg/SVGViewSpec.idl: * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isReadOnly): (WebCore::SVGAnimatedProperty::setIsReadOnly): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::lookupOrCreateWrapper): (WebCore::SVGAnimatedProperty::lookupWrapper): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyMacros.h: (WebCore::SVGSynchronizableAnimatedProperty::synchronize): (SVGSynchronizableAnimatedProperty): * svg/properties/SVGAnimatedPropertySynchronizer.h: Removed. * svg/properties/SVGAttributeToPropertyMap.h: * svg/properties/SVGListProperty.h: * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::isReadOnly): * svg/properties/SVGPathSegListPropertyTearOff.h: (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::isReadOnly): * svg/properties/SVGProperty.h: (SVGProperty): * svg/properties/SVGPropertyInfo.h: (WebCore::SVGPropertyInfo::SVGPropertyInfo): (SVGPropertyInfo): * svg/properties/SVGPropertyTearOff.h: (WebCore::SVGPropertyTearOff::isReadOnly): * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::isReadOnly): Source/WebKit/mac: * MigrateHeaders.make: Copy DOMSVGViewSpec*.h headers. LayoutTests: Re-enable a long disabled test for SVGViewSpec, and make it actually work. Extend SVGViewSpec test coverage, and rebaseline results that changed due the SVGViewSpec constructor addition. Make linking-a-03-b-all.svg a reftest, to avoid rebaselines on all platforms. * platform/chromium-linux/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-mac/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-win/fast/js/global-constructors-expected.txt: * platform/chromium-win/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-win/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/gtk/fast/js/global-constructors-expected.txt: * platform/gtk/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/gtk/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/mac/fast/js/global-constructors-expected.txt: * platform/mac/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/mac/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/qt/fast/js/global-constructors-expected.txt: * platform/qt/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/qt/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/win/fast/js/global-constructors-expected.txt: * svg/custom/global-constructors-expected.txt: * svg/custom/linking-a-03-b-all-expected.svg: Added. * svg/dom/SVGViewSpec-defaults-expected.txt: Added. * svg/dom/SVGViewSpec-defaults.html: Added. * svg/dom/SVGViewSpec-expected.txt: Added. * svg/dom/SVGViewSpec.html: Added. * svg/dom/complex-svgView-specification-expected.html: Added. * svg/dom/complex-svgView-specification.html: Added. * svg/dom/resources/viewspec-target.svg: Added. * svg/dom/script-tests/SVGViewSpec-defaults.js: Added. * svg/dom/script-tests/SVGViewSpec.js: Added. (completeTest.script.onload): (completeTest): (testFragment): (matrixToString): (continueTesting): * svg/dom/viewspec-parser-expected.txt: Added. * svg/dom/viewspec-parser.html: Renamed from LayoutTests/svg/dom/viewspec-parser.html-disabled. Canonical link: https://commits.webkit.org/105477@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-29 08:41:58 +00:00
This test checks the SVGViewSpec API, operating on a parsed viewSpec
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Loading external SVG resources/viewspec-target.svg
Passing SVGViewSpec: svgView(viewBox(0,0,100,50);preserveAspectRatio(xMinYMid slice);transform(translate(0 10) translate(25 25) rotate(45) translate(-25 -25) scale(0.7 0.7));viewTarget(blub);zoomAndPan(disable))
Check transform value
PASS currentView.transformString is "translate(0 10) translate(25 25) rotate(45) translate(-25 -25) scale(0.7 0.7)"
PASS currentView.transform.numberOfItems is 5
PASS currentView.transform.getItem(0).type is SVGTransform.SVG_TRANSFORM_TRANSLATE
PASS currentView.transform.getItem(0).angle is 0
PASS matrixToString(currentView.transform.getItem(0).matrix) is "[1.00 0.00 0.00 1.00 0.00 10.00]"
PASS currentView.transform.getItem(1).type is SVGTransform.SVG_TRANSFORM_TRANSLATE
PASS currentView.transform.getItem(1).angle is 0
PASS matrixToString(currentView.transform.getItem(1).matrix) is "[1.00 0.00 0.00 1.00 25.00 25.00]"
PASS currentView.transform.getItem(2).type is SVGTransform.SVG_TRANSFORM_ROTATE
PASS currentView.transform.getItem(2).angle is 45
PASS matrixToString(currentView.transform.getItem(2).matrix) is "[0.71 0.71 -0.71 0.71 0.00 0.00]"
PASS currentView.transform.getItem(3).type is SVGTransform.SVG_TRANSFORM_TRANSLATE
PASS currentView.transform.getItem(3).angle is 0
PASS matrixToString(currentView.transform.getItem(3).matrix) is "[1.00 0.00 0.00 1.00 -25.00 -25.00]"
PASS currentView.transform.getItem(4).type is SVGTransform.SVG_TRANSFORM_SCALE
PASS currentView.transform.getItem(4).angle is 0
PASS matrixToString(currentView.transform.getItem(4).matrix) is "[0.70 0.00 0.00 0.70 0.00 0.00]"
Check viewTarget value
PASS currentView.viewTargetString is "blub"
PASS currentView.viewTarget is null
Check zoomAndPan value
Get rid of multiple inheritence for SVGViewElement interface https://bugs.webkit.org/show_bug.cgi?id=118014 Reviewed by Kentaro Hara. Source/WebCore: Web IDL no longer supports multiple inheritence. As per the latest specification SVGViewElement should only inherit from SVGElement. 'implements' statements are used for the rest. This patch refactors the IDL files to match the latest specification: http://www.w3.org/TR/SVG2/linking.html#InterfaceSVGViewElement Note that there is a WebExposed change as SVGZoomAndPan used to be exposed on the Window and it is not anymore. SVGZoomAndPan merely supplements SVGViewElement and should not be exposed to JavaScript according to the latest specification. No new tests, covered by existing tests. * CMakeLists.txt: * DerivedSources.pri: * GNUmakefile.list.am: * svg/SVGExternalResourcesRequired.idl: * svg/SVGFitToViewBox.idl: * svg/SVGViewElement.idl: * svg/SVGZoomAndPan.idl: LayoutTests: Update / Rebaseline several SVG test cases now that SVGZoomAndPan interface is no longer exposed. * fast/js/global-constructors-attributes-expected.txt: * platform/efl/fast/js/global-constructors-attributes-expected.txt: * platform/gtk/fast/js/global-constructors-attributes-expected.txt: * platform/mac-lion/fast/js/global-constructors-attributes-expected.txt: * platform/qt/fast/js/global-constructors-attributes-expected.txt: * svg/custom/global-constructors-expected.txt: * svg/custom/js-svg-constructors-expected.txt: * svg/custom/js-svg-constructors.svg: * svg/custom/script-tests/global-constructors.js: * svg/dom/SVGViewSpec-defaults-expected.txt: * svg/dom/SVGViewSpec-expected.txt: * svg/dom/resources/viewspec-parser.js: (zoomAndPanToString): (viewSpecToString): * svg/dom/script-tests/SVGViewSpec-defaults.js: * svg/dom/script-tests/SVGViewSpec.js: (continueTesting): Canonical link: https://commits.webkit.org/136121@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2013-06-26 10:39:50 +00:00
PASS currentView.zoomAndPan is SVGViewElement.SVG_ZOOMANDPAN_DISABLE
SVGViewSpec DOM bindings aka SVGSVGElement.currentView is unimplemented https://bugs.webkit.org/show_bug.cgi?id=15495 Reviewed by Rob Buis. Source/WebCore: Finish SVGViewSpec implementation and expose it to the Web. Numerous smaller bugs are fixed: - SVGViewSpec and all of its contents should be read-only. Enforce that and test it. Add a new enum to SVGPropertyInfo so that each SVGAnimatedProperty knows if its content is supposed to be read-write or read-only. - Make the 'transform' attribute of SVGViewSpec exposable by switching to a SVGTransformListProperty - it can now be accessed from JS. - Assure that following XXXString methods are in sync with the corresponding SVG DOM interfaces readonly attribute DOMString viewBoxString; readonly attribute DOMString preserveAspectRatioString; readonly attribute DOMString transformString; readonly attribute DOMString viewTargetString; - Cleanup code in svg/properties that was intended to handle SVGViewSpec. Turns out lot of the complexity was unncessary, and can be removed. - Move SVGFitToViewBox to the same pattern SVGZoomAndPan uses since two days, that avoids any virtual function calls for attribute parsing. - Create/expose ObjectiveC/JS bindings for SVGViewSpec. - Enable SVGViewSpec constructor. Tests: svg/custom/linking-a-03-b-all-expected.svg svg/dom/SVGViewSpec-defaults.html svg/dom/SVGViewSpec.html svg/dom/complex-svgView-specification.html svg/dom/viewspec-parser.html * CMakeLists.txt: * DerivedSources.cpp: * DerivedSources.make: * DerivedSources.pri: * GNUmakefile.list.am: * Target.pri: * WebCore.gyp/WebCore.gyp: * WebCore.gypi: * WebCore.order: * WebCore.vcproj/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSSVGLengthCustom.cpp: (WebCore::JSSVGLength::setValue): (WebCore::JSSVGLength::convertToSpecifiedUnits): * bindings/objc/DOMSVG.h: * bindings/scripts/CodeGeneratorJS.pm: (GenerateImplementation): (NativeToJSValue): * bindings/scripts/CodeGeneratorObjC.pm: (GenerateImplementation): * bindings/scripts/CodeGeneratorV8.pm: (GenerateNormalAttrGetter): (GenerateNormalAttrSetter): (GenerateFunctionCallback): * bindings/v8/custom/V8SVGLengthCustom.cpp: (WebCore::V8SVGLength::valueAccessorSetter): (WebCore::V8SVGLength::convertToSpecifiedUnitsCallback): * page/DOMWindow.idl: * rendering/svg/RenderSVGResourcePattern.cpp: (WebCore::RenderSVGResourcePattern::buildTileImageTransform): * svg/SVGFitToViewBox.cpp: * svg/SVGFitToViewBox.h: (SVGFitToViewBox): (WebCore::SVGFitToViewBox::parseAttribute): * svg/SVGMarkerElement.cpp: (WebCore::SVGMarkerElement::orientTypePropertyInfo): (WebCore::SVGMarkerElement::parseAttribute): (WebCore::SVGMarkerElement::synchronizeOrientType): (WebCore::SVGMarkerElement::lookupOrCreateOrientTypeWrapper): * svg/SVGPathElement.cpp: (WebCore::SVGPathElement::dPropertyInfo): (WebCore::SVGPathElement::svgAttributeChanged): (WebCore::SVGPathElement::pathByteStream): (WebCore::SVGPathElement::lookupOrCreateDWrapper): (WebCore::SVGPathElement::synchronizeD): * svg/SVGPathSegWithContext.h: (WebCore::SVGPathSegWithContext::animatedProperty): * svg/SVGPatternElement.cpp: (WebCore::SVGPatternElement::parseAttribute): * svg/SVGPolyElement.cpp: (WebCore::SVGPolyElement::pointsPropertyInfo): (WebCore::SVGPolyElement::parseAttribute): (WebCore::SVGPolyElement::synchronizePoints): (WebCore::SVGPolyElement::lookupOrCreatePointsWrapper): * svg/SVGRect.h: * svg/SVGSVGElement.cpp: (WebCore::SVGSVGElement::~SVGSVGElement): (WebCore::SVGSVGElement::currentView): (WebCore::SVGSVGElement::parseAttribute): (WebCore::SVGSVGElement::currentViewBoxRect): (WebCore::SVGSVGElement::viewBoxToViewTransform): (WebCore::SVGSVGElement::setupInitialView): (WebCore::SVGSVGElement::inheritViewAttributes): * svg/SVGSVGElement.h: (SVGSVGElement): * svg/SVGSVGElement.idl: * svg/SVGSymbolElement.cpp: (WebCore::SVGSymbolElement::parseAttribute): * svg/SVGTests.cpp: (WebCore::SVGTests::requiredFeaturesPropertyInfo): (WebCore::SVGTests::requiredExtensionsPropertyInfo): (WebCore::SVGTests::systemLanguagePropertyInfo): (WebCore::SVGTests::synchronizeRequiredFeatures): (WebCore::SVGTests::synchronizeRequiredExtensions): (WebCore::SVGTests::synchronizeSystemLanguage): * svg/SVGTextContentElement.cpp: (WebCore::SVGTextContentElement::textLengthPropertyInfo): (WebCore::SVGTextContentElement::synchronizeTextLength): (WebCore::SVGTextContentElement::lookupOrCreateTextLengthWrapper): * svg/SVGViewElement.cpp: (WebCore::SVGViewElement::parseAttribute): * svg/SVGViewElement.h: * svg/SVGViewSpec.cpp: (WebCore::SVGViewSpec::viewBoxPropertyInfo): (WebCore::SVGViewSpec::preserveAspectRatioPropertyInfo): (WebCore::SVGViewSpec::transformPropertyInfo): (WebCore::SVGViewSpec::SVGViewSpec): (WebCore::SVGViewSpec::viewBoxIdentifier): (WebCore::SVGViewSpec::preserveAspectRatioIdentifier): (WebCore::SVGViewSpec::transformIdentifier): (WebCore::SVGViewSpec::setZoomAndPan): (WebCore::SVGViewSpec::setTransformString): (WebCore::SVGViewSpec::transformString): (WebCore::SVGViewSpec::viewBoxString): (WebCore::SVGViewSpec::preserveAspectRatioString): (WebCore::SVGViewSpec::viewTarget): (WebCore::SVGViewSpec::transform): (WebCore::SVGViewSpec::lookupOrCreateViewBoxWrapper): (WebCore::SVGViewSpec::lookupOrCreatePreserveAspectRatioWrapper): (WebCore::SVGViewSpec::lookupOrCreateTransformWrapper): (WebCore::SVGViewSpec::reset): (WebCore::SVGViewSpec::parseViewSpec): * svg/SVGViewSpec.h: (WebCore::SVGViewSpec::~SVGViewSpec): (SVGViewSpec): (WebCore::SVGViewSpec::create): (WebCore::SVGViewSpec::setViewTargetString): (WebCore::SVGViewSpec::setZoomAndPan): (WebCore::SVGViewSpec::contextElement): (WebCore::SVGViewSpec::resetContextElement): (WebCore::SVGViewSpec::transformBaseValue): (WebCore::SVGViewSpec::viewBoxAnimated): (WebCore::SVGViewSpec::viewBox): (WebCore::SVGViewSpec::viewBoxBaseValue): (WebCore::SVGViewSpec::setViewBoxBaseValue): (WebCore::SVGViewSpec::preserveAspectRatioAnimated): (WebCore::SVGViewSpec::preserveAspectRatio): (WebCore::SVGViewSpec::preserveAspectRatioBaseValue): (WebCore::SVGViewSpec::setPreserveAspectRatioBaseValue): * svg/SVGViewSpec.idl: * svg/properties/SVGAnimatedProperty.h: (WebCore::SVGAnimatedProperty::isReadOnly): (WebCore::SVGAnimatedProperty::setIsReadOnly): (SVGAnimatedProperty): (WebCore::SVGAnimatedProperty::lookupOrCreateWrapper): (WebCore::SVGAnimatedProperty::lookupWrapper): (WebCore::SVGAnimatedProperty::SVGAnimatedProperty): * svg/properties/SVGAnimatedPropertyMacros.h: (WebCore::SVGSynchronizableAnimatedProperty::synchronize): (SVGSynchronizableAnimatedProperty): * svg/properties/SVGAnimatedPropertySynchronizer.h: Removed. * svg/properties/SVGAttributeToPropertyMap.h: * svg/properties/SVGListProperty.h: * svg/properties/SVGListPropertyTearOff.h: (SVGListPropertyTearOff): (WebCore::SVGListPropertyTearOff::isReadOnly): * svg/properties/SVGPathSegListPropertyTearOff.h: (SVGPathSegListPropertyTearOff): (WebCore::SVGPathSegListPropertyTearOff::isReadOnly): * svg/properties/SVGProperty.h: (SVGProperty): * svg/properties/SVGPropertyInfo.h: (WebCore::SVGPropertyInfo::SVGPropertyInfo): (SVGPropertyInfo): * svg/properties/SVGPropertyTearOff.h: (WebCore::SVGPropertyTearOff::isReadOnly): * svg/properties/SVGStaticListPropertyTearOff.h: (SVGStaticListPropertyTearOff): (WebCore::SVGStaticListPropertyTearOff::isReadOnly): Source/WebKit/mac: * MigrateHeaders.make: Copy DOMSVGViewSpec*.h headers. LayoutTests: Re-enable a long disabled test for SVGViewSpec, and make it actually work. Extend SVGViewSpec test coverage, and rebaseline results that changed due the SVGViewSpec constructor addition. Make linking-a-03-b-all.svg a reftest, to avoid rebaselines on all platforms. * platform/chromium-linux/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-mac/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-win/fast/js/global-constructors-expected.txt: * platform/chromium-win/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/chromium-win/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/gtk/fast/js/global-constructors-expected.txt: * platform/gtk/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/gtk/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/mac/fast/js/global-constructors-expected.txt: * platform/mac/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/mac/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/qt/fast/js/global-constructors-expected.txt: * platform/qt/svg/custom/linking-a-03-b-all-expected.png: Removed. * platform/qt/svg/custom/linking-a-03-b-all-expected.txt: Removed. * platform/win/fast/js/global-constructors-expected.txt: * svg/custom/global-constructors-expected.txt: * svg/custom/linking-a-03-b-all-expected.svg: Added. * svg/dom/SVGViewSpec-defaults-expected.txt: Added. * svg/dom/SVGViewSpec-defaults.html: Added. * svg/dom/SVGViewSpec-expected.txt: Added. * svg/dom/SVGViewSpec.html: Added. * svg/dom/complex-svgView-specification-expected.html: Added. * svg/dom/complex-svgView-specification.html: Added. * svg/dom/resources/viewspec-target.svg: Added. * svg/dom/script-tests/SVGViewSpec-defaults.js: Added. * svg/dom/script-tests/SVGViewSpec.js: Added. (completeTest.script.onload): (completeTest): (testFragment): (matrixToString): (continueTesting): * svg/dom/viewspec-parser-expected.txt: Added. * svg/dom/viewspec-parser.html: Renamed from LayoutTests/svg/dom/viewspec-parser.html-disabled. Canonical link: https://commits.webkit.org/105477@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@118735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-05-29 08:41:58 +00:00
Check viewBox value
PASS currentView.viewBox.baseVal.x is 0
PASS currentView.viewBox.baseVal.y is 0
PASS currentView.viewBox.baseVal.width is 100
PASS currentView.viewBox.baseVal.height is 50
PASS currentView.viewBoxString is "0 0 100 50"
Check preserveAspectRatio value
PASS currentView.preserveAspectRatioString is "xMinYMid slice"
PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID
PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE
PASS successfullyParsed is true
TEST COMPLETE