haikuwebkit/LayoutTests/svg/animations/animate-color-fill-from-by-...

27 lines
531 B
Plaintext
Raw Permalink Normal View History

SVG 1.1 dynamic animation tests
Tests animation on 'currentColor'.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Initial condition:
[CSS Parser] Eliminate SVGPaint and SVGColor https://bugs.webkit.org/show_bug.cgi?id=165819 Reviewed by Dean Jackson. Source/WebCore: Remove SVGColor and SVGPaint CSS values from the tree. The new parser already stopped making these values when parsing, so all that's left is to make sure computed style doesn't use these values either. We are the only browser engine to support these CSS values, they see no use on the Web, and they're already gone at the parsing level, so it's time to remove these interfaces from our tree. * CMakeLists.txt: * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSCSSValueCustom.cpp: (WebCore::toJSNewlyCreated): * css/CSSComputedStyleDeclaration.h: * css/CSSValue.cpp: (WebCore::CSSValue::equals): (WebCore::CSSValue::cssText): (WebCore::CSSValue::destroy): (WebCore::CSSValue::cloneForCSSOM): * css/CSSValue.h: (WebCore::CSSValue::isSubtypeExposedToCSSOM): (WebCore::CSSValue::isSVGColor): Deleted. (WebCore::CSSValue::isSVGPaint): Deleted. * css/SVGCSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor): (WebCore::ComputedStyleExtractor::svgPropertyValue): * css/StyleBuilderConverter.h: (WebCore::StyleBuilderConverter::convertSVGColor): * css/StyleBuilderCustom.h: (WebCore::StyleBuilderCustom::applyValueFill): (WebCore::StyleBuilderCustom::applyValueStroke): * page/animation/CSSPropertyAnimation.cpp: (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint): * rendering/style/RenderStyle.h: (WebCore::RenderStyle::fillPaintType): (WebCore::RenderStyle::setFillPaintColor): (WebCore::RenderStyle::strokePaintType): (WebCore::RenderStyle::setStrokePaintColor): * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::initialFillPaintType): (WebCore::SVGRenderStyle::initialStrokePaintType): (WebCore::SVGRenderStyle::setFillPaint): (WebCore::SVGRenderStyle::setStrokePaint): (WebCore::SVGRenderStyle::fillPaintType): (WebCore::SVGRenderStyle::strokePaintType): (WebCore::SVGRenderStyle::visitedLinkFillPaintType): (WebCore::SVGRenderStyle::visitedLinkStrokePaintType): (WebCore::SVGRenderStyle::hasStroke): (WebCore::SVGRenderStyle::hasFill): * rendering/style/SVGRenderStyleDefs.h: * rendering/svg/RenderSVGResource.cpp: (WebCore::requestPaintingResource): * rendering/svg/SVGResources.cpp: (WebCore::paintingResourceFromSVGPaint): * svg/SVGAllInOne.cpp: * svg/SVGAnimatedColor.cpp: (WebCore::SVGAnimatedColorAnimator::constructFromString): (WebCore::parseColorFromString): (WebCore::SVGAnimatedColorAnimator::calculateDistance): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGColor.cpp: Removed. * svg/SVGColor.h: Removed. * svg/SVGColor.idl: Removed. * svg/SVGFEDiffuseLightingElement.cpp: * svg/SVGFESpecularLightingElement.cpp: * svg/SVGPaint.cpp: Removed. * svg/SVGPaint.h: Removed. * svg/SVGPaint.idl: Removed. LayoutTests: * fast/dom/Window/resources/window-properties.js: * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt: * platform/mac/js/dom/global-constructors-attributes-expected.txt: * svg/animations/additive-type-by-animation-expected.txt: * svg/animations/animate-color-calcMode-discrete-expected.txt: * svg/animations/animate-color-fill-currentColor-expected.txt: * svg/animations/animate-color-fill-from-by-expected.txt: * svg/animations/animate-color-transparent-expected.txt: * svg/animations/animate-currentColor-expected.txt: * svg/animations/animate-dynamic-update-attributeName-expected.txt: * svg/animations/animate-elem-03-t-drt-expected.txt: * svg/animations/animate-inherit-css-property-expected.txt: * svg/animations/attributeTypes-expected.txt: * svg/animations/resources/SVGAnimationTestCase.js: (expectColor): * svg/animations/script-tests/animate-color-fill-currentColor.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/animate-color-fill-from-by.js: (sample1): (sample2): (sample3): * svg/css/getComputedStyle-basic-expected.txt: * svg/css/rect-system-color-expected.txt: * svg/css/rect-system-color.xhtml: * 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: Canonical link: https://commits.webkit.org/183423@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-13 22:15:13 +00:00
PASS colorComponents[1] is 208
PASS colorComponents[2] is 0
PASS colorComponents[3] is 0
Half-time condition:
[CSS Parser] Eliminate SVGPaint and SVGColor https://bugs.webkit.org/show_bug.cgi?id=165819 Reviewed by Dean Jackson. Source/WebCore: Remove SVGColor and SVGPaint CSS values from the tree. The new parser already stopped making these values when parsing, so all that's left is to make sure computed style doesn't use these values either. We are the only browser engine to support these CSS values, they see no use on the Web, and they're already gone at the parsing level, so it's time to remove these interfaces from our tree. * CMakeLists.txt: * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSCSSValueCustom.cpp: (WebCore::toJSNewlyCreated): * css/CSSComputedStyleDeclaration.h: * css/CSSValue.cpp: (WebCore::CSSValue::equals): (WebCore::CSSValue::cssText): (WebCore::CSSValue::destroy): (WebCore::CSSValue::cloneForCSSOM): * css/CSSValue.h: (WebCore::CSSValue::isSubtypeExposedToCSSOM): (WebCore::CSSValue::isSVGColor): Deleted. (WebCore::CSSValue::isSVGPaint): Deleted. * css/SVGCSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor): (WebCore::ComputedStyleExtractor::svgPropertyValue): * css/StyleBuilderConverter.h: (WebCore::StyleBuilderConverter::convertSVGColor): * css/StyleBuilderCustom.h: (WebCore::StyleBuilderCustom::applyValueFill): (WebCore::StyleBuilderCustom::applyValueStroke): * page/animation/CSSPropertyAnimation.cpp: (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint): * rendering/style/RenderStyle.h: (WebCore::RenderStyle::fillPaintType): (WebCore::RenderStyle::setFillPaintColor): (WebCore::RenderStyle::strokePaintType): (WebCore::RenderStyle::setStrokePaintColor): * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::initialFillPaintType): (WebCore::SVGRenderStyle::initialStrokePaintType): (WebCore::SVGRenderStyle::setFillPaint): (WebCore::SVGRenderStyle::setStrokePaint): (WebCore::SVGRenderStyle::fillPaintType): (WebCore::SVGRenderStyle::strokePaintType): (WebCore::SVGRenderStyle::visitedLinkFillPaintType): (WebCore::SVGRenderStyle::visitedLinkStrokePaintType): (WebCore::SVGRenderStyle::hasStroke): (WebCore::SVGRenderStyle::hasFill): * rendering/style/SVGRenderStyleDefs.h: * rendering/svg/RenderSVGResource.cpp: (WebCore::requestPaintingResource): * rendering/svg/SVGResources.cpp: (WebCore::paintingResourceFromSVGPaint): * svg/SVGAllInOne.cpp: * svg/SVGAnimatedColor.cpp: (WebCore::SVGAnimatedColorAnimator::constructFromString): (WebCore::parseColorFromString): (WebCore::SVGAnimatedColorAnimator::calculateDistance): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGColor.cpp: Removed. * svg/SVGColor.h: Removed. * svg/SVGColor.idl: Removed. * svg/SVGFEDiffuseLightingElement.cpp: * svg/SVGFESpecularLightingElement.cpp: * svg/SVGPaint.cpp: Removed. * svg/SVGPaint.h: Removed. * svg/SVGPaint.idl: Removed. LayoutTests: * fast/dom/Window/resources/window-properties.js: * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt: * platform/mac/js/dom/global-constructors-attributes-expected.txt: * svg/animations/additive-type-by-animation-expected.txt: * svg/animations/animate-color-calcMode-discrete-expected.txt: * svg/animations/animate-color-fill-currentColor-expected.txt: * svg/animations/animate-color-fill-from-by-expected.txt: * svg/animations/animate-color-transparent-expected.txt: * svg/animations/animate-currentColor-expected.txt: * svg/animations/animate-dynamic-update-attributeName-expected.txt: * svg/animations/animate-elem-03-t-drt-expected.txt: * svg/animations/animate-inherit-css-property-expected.txt: * svg/animations/attributeTypes-expected.txt: * svg/animations/resources/SVGAnimationTestCase.js: (expectColor): * svg/animations/script-tests/animate-color-fill-currentColor.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/animate-color-fill-from-by.js: (sample1): (sample2): (sample3): * svg/css/getComputedStyle-basic-expected.txt: * svg/css/rect-system-color-expected.txt: * svg/css/rect-system-color.xhtml: * 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: Canonical link: https://commits.webkit.org/183423@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-13 22:15:13 +00:00
PASS colorComponents[1] is 208
PASS colorComponents[2] is 0
PASS colorComponents[3] is 104
End condition:
[CSS Parser] Eliminate SVGPaint and SVGColor https://bugs.webkit.org/show_bug.cgi?id=165819 Reviewed by Dean Jackson. Source/WebCore: Remove SVGColor and SVGPaint CSS values from the tree. The new parser already stopped making these values when parsing, so all that's left is to make sure computed style doesn't use these values either. We are the only browser engine to support these CSS values, they see no use on the Web, and they're already gone at the parsing level, so it's time to remove these interfaces from our tree. * CMakeLists.txt: * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSCSSValueCustom.cpp: (WebCore::toJSNewlyCreated): * css/CSSComputedStyleDeclaration.h: * css/CSSValue.cpp: (WebCore::CSSValue::equals): (WebCore::CSSValue::cssText): (WebCore::CSSValue::destroy): (WebCore::CSSValue::cloneForCSSOM): * css/CSSValue.h: (WebCore::CSSValue::isSubtypeExposedToCSSOM): (WebCore::CSSValue::isSVGColor): Deleted. (WebCore::CSSValue::isSVGPaint): Deleted. * css/SVGCSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::adjustSVGPaintForCurrentColor): (WebCore::ComputedStyleExtractor::svgPropertyValue): * css/StyleBuilderConverter.h: (WebCore::StyleBuilderConverter::convertSVGColor): * css/StyleBuilderCustom.h: (WebCore::StyleBuilderCustom::applyValueFill): (WebCore::StyleBuilderCustom::applyValueStroke): * page/animation/CSSPropertyAnimation.cpp: (WebCore::PropertyWrapperSVGPaint::PropertyWrapperSVGPaint): * rendering/style/RenderStyle.h: (WebCore::RenderStyle::fillPaintType): (WebCore::RenderStyle::setFillPaintColor): (WebCore::RenderStyle::strokePaintType): (WebCore::RenderStyle::setStrokePaintColor): * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::initialFillPaintType): (WebCore::SVGRenderStyle::initialStrokePaintType): (WebCore::SVGRenderStyle::setFillPaint): (WebCore::SVGRenderStyle::setStrokePaint): (WebCore::SVGRenderStyle::fillPaintType): (WebCore::SVGRenderStyle::strokePaintType): (WebCore::SVGRenderStyle::visitedLinkFillPaintType): (WebCore::SVGRenderStyle::visitedLinkStrokePaintType): (WebCore::SVGRenderStyle::hasStroke): (WebCore::SVGRenderStyle::hasFill): * rendering/style/SVGRenderStyleDefs.h: * rendering/svg/RenderSVGResource.cpp: (WebCore::requestPaintingResource): * rendering/svg/SVGResources.cpp: (WebCore::paintingResourceFromSVGPaint): * svg/SVGAllInOne.cpp: * svg/SVGAnimatedColor.cpp: (WebCore::SVGAnimatedColorAnimator::constructFromString): (WebCore::parseColorFromString): (WebCore::SVGAnimatedColorAnimator::calculateDistance): * svg/SVGAnimatedType.cpp: (WebCore::SVGAnimatedType::setValueAsString): * svg/SVGAnimatedType.h: * svg/SVGColor.cpp: Removed. * svg/SVGColor.h: Removed. * svg/SVGColor.idl: Removed. * svg/SVGFEDiffuseLightingElement.cpp: * svg/SVGFESpecularLightingElement.cpp: * svg/SVGPaint.cpp: Removed. * svg/SVGPaint.h: Removed. * svg/SVGPaint.idl: Removed. LayoutTests: * fast/dom/Window/resources/window-properties.js: * platform/mac-yosemite/js/dom/global-constructors-attributes-expected.txt: * platform/mac/fast/dom/Window/window-lookup-precedence-expected.txt: * platform/mac/js/dom/global-constructors-attributes-expected.txt: * svg/animations/additive-type-by-animation-expected.txt: * svg/animations/animate-color-calcMode-discrete-expected.txt: * svg/animations/animate-color-fill-currentColor-expected.txt: * svg/animations/animate-color-fill-from-by-expected.txt: * svg/animations/animate-color-transparent-expected.txt: * svg/animations/animate-currentColor-expected.txt: * svg/animations/animate-dynamic-update-attributeName-expected.txt: * svg/animations/animate-elem-03-t-drt-expected.txt: * svg/animations/animate-inherit-css-property-expected.txt: * svg/animations/attributeTypes-expected.txt: * svg/animations/resources/SVGAnimationTestCase.js: (expectColor): * svg/animations/script-tests/animate-color-fill-currentColor.js: (sample1): (sample2): (sample3): * svg/animations/script-tests/animate-color-fill-from-by.js: (sample1): (sample2): (sample3): * svg/css/getComputedStyle-basic-expected.txt: * svg/css/rect-system-color-expected.txt: * svg/css/rect-system-color.xhtml: * 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: Canonical link: https://commits.webkit.org/183423@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-13 22:15:13 +00:00
PASS colorComponents[1] is 208
PASS colorComponents[2] is 0
PASS colorComponents[3] is 208
PASS successfullyParsed is true
TEST COMPLETE