haikuwebkit/LayoutTests/transitions/svg-layout-transition-expec...

11 lines
675 B
Plaintext
Raw Permalink Normal View History

Turn cx/cy to presentation attributes https://bugs.webkit.org/show_bug.cgi?id=135975 Reviewed by Dean Jackson. This follows the patch for width and height presentation attributes and Source/WebCore: turns x and y to presentation attributes as well: ​http://trac.webkit.org/changeset/171341 Extended existing tests. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isSimpleLengthPropertyID): * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * css/SVGCSSPropertyNames.in: * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * rendering/style/RenderStyle.h: * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::setCx): (WebCore::SVGRenderStyle::setCy): (WebCore::SVGRenderStyle::cx): (WebCore::SVGRenderStyle::cy): * rendering/style/SVGRenderStyleDefs.cpp: (WebCore::StyleLayoutData::StyleLayoutData): (WebCore::StyleLayoutData::operator==): * rendering/style/SVGRenderStyleDefs.h: * rendering/svg/RenderSVGEllipse.cpp: (WebCore::RenderSVGEllipse::calculateRadiiAndCenter): * rendering/svg/SVGPathData.cpp: (WebCore::updatePathFromCircleElement): (WebCore::updatePathFromEllipseElement): * svg/SVGCircleElement.cpp: (WebCore::SVGCircleElement::svgAttributeChanged): (WebCore::SVGCircleElement::selfHasRelativeLengths): Deleted. * svg/SVGCircleElement.h: * svg/SVGElement.cpp: (WebCore::populateAttributeNameToCSSPropertyIDMap): (WebCore::populateCSSPropertyWithSVGDOMNameToAnimatedPropertyTypeMap): * svg/SVGEllipseElement.cpp: (WebCore::SVGEllipseElement::svgAttributeChanged): (WebCore::SVGEllipseElement::selfHasRelativeLengths): Deleted. * svg/SVGEllipseElement.h: LayoutTests: turns cx and cy to presentation attributes as well: ​http://trac.webkit.org/changeset/171341 * svg/css/parse-length-expected.txt: * svg/css/parse-length.html: * transitions/svg-layout-transition-expected.txt: * transitions/svg-layout-transition.html: Canonical link: https://commits.webkit.org/153837@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-08-15 19:38:10 +00:00
PASS - "cx" property for "cx" element at 0.5s saw something close to: 150
PASS - "cy" property for "cy" element at 0.5s saw something close to: 150
Turn r/rx/ry to presentation attributes https://bugs.webkit.org/show_bug.cgi?id=135978 Patch by Dirk Schulze <krit@webkit.org> on 2014-08-15 Reviewed by Dean Jackson. This follows the patch for width and height presentation attributes and Source/WebCore: turns rx, ry and r to presentation attributes as well: ​http://trac.webkit.org/changeset/171341 Extended existing tests. * css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isSimpleLengthPropertyID): * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): * css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): * css/SVGCSSPropertyNames.in: * page/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * rendering/style/RenderStyle.h: * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::setR): (WebCore::SVGRenderStyle::setRx): (WebCore::SVGRenderStyle::setRy): (WebCore::SVGRenderStyle::r): (WebCore::SVGRenderStyle::rx): (WebCore::SVGRenderStyle::ry): * rendering/style/SVGRenderStyleDefs.cpp: (WebCore::StyleLayoutData::StyleLayoutData): (WebCore::StyleLayoutData::operator==): * rendering/style/SVGRenderStyleDefs.h: * rendering/svg/RenderSVGEllipse.cpp: (WebCore::RenderSVGEllipse::calculateRadiiAndCenter): * rendering/svg/SVGPathData.cpp: (WebCore::updatePathFromCircleElement): (WebCore::updatePathFromEllipseElement): (WebCore::updatePathFromRectElement): (WebCore::updatePathFromLineElement): Deleted. * svg/SVGCircleElement.cpp: (WebCore::SVGCircleElement::svgAttributeChanged): * svg/SVGElement.cpp: (WebCore::populateAttributeNameToCSSPropertyIDMap): (WebCore::populateCSSPropertyWithSVGDOMNameToAnimatedPropertyTypeMap): * svg/SVGEllipseElement.cpp: (WebCore::SVGEllipseElement::svgAttributeChanged): * svg/SVGRectElement.cpp: (WebCore::SVGRectElement::svgAttributeChanged): LayoutTests: turns r, rx and ry to presentation attributes as well: ​http://trac.webkit.org/changeset/171341 * svg/css/parse-length.html: * transitions/svg-layout-transition-expected.txt: * transitions/svg-layout-transition.html: Canonical link: https://commits.webkit.org/153838@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-08-15 19:42:38 +00:00
PASS - "r" property for "r" element at 0.5s saw something close to: 150
PASS - "rx" property for "rx" element at 0.5s saw something close to: 150
PASS - "ry" property for "ry" element at 0.5s saw something close to: 150
Turn x/y to presentation attributes https://bugs.webkit.org/show_bug.cgi?id=135215 Source/WebCore: Patch by Dirk Schulze <krit@webkit.org> on 2014-07-24 Reviewed by Dean Jackson. This follows the patch for width and height presentation attributes and turns x and y to presentation attributes as well: http://trac.webkit.org/changeset/171341 Tests: svg/css/parse-length.html transitions/svg-layout-transition.html Added copyright where I forgot it in previous patch. * css/CSSComputedStyleDeclaration.cpp: Computed style of x and y. (WebCore::ComputedStyleExtractor::propertyValue): * css/CSSParser.cpp: (WebCore::isSimpleLengthPropertyID): Add x and y to list. * css/DeprecatedStyleBuilder.cpp: (WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder): Resolve x and y. * css/SVGCSSParser.cpp: (WebCore::CSSParser::parseSVGValue): Parse x and y property. * css/SVGCSSPropertyNames.in: Add x and y to list of names. * css/StyleResolver.h: * page/animation/CSSPropertyAnimation.cpp: Animate x and y as Length. (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * rendering/style/RenderStyle.h: Add x and y setters and getters. * rendering/style/SVGRenderStyle.cpp: Add x and y setters for StyleLayoutData. (WebCore::SVGRenderStyle::SVGRenderStyle): (WebCore::SVGRenderStyle::operator==): (WebCore::SVGRenderStyle::copyNonInheritedFrom): (WebCore::SVGRenderStyle::diff): * rendering/style/SVGRenderStyle.h: (WebCore::SVGRenderStyle::setX): (WebCore::SVGRenderStyle::setY): (WebCore::SVGRenderStyle::x): (WebCore::SVGRenderStyle::y): * rendering/style/SVGRenderStyleDefs.cpp: Add StyleLayoutData for style storing. (WebCore::StyleLayoutData::StyleLayoutData): (WebCore::StyleLayoutData::copy): (WebCore::StyleLayoutData::operator==): * rendering/style/SVGRenderStyleDefs.h: (WebCore::StyleLayoutData::create): (WebCore::StyleLayoutData::operator!=): * rendering/svg/RenderSVGRect.cpp: (WebCore::RenderSVGRect::updateShapeFromElement): * rendering/svg/SVGPathData.cpp: Use RenderStyle values rather than attribute values. (WebCore::updatePathFromRectElement): * svg/SVGAnimationElement.cpp: (WebCore::SVGAnimationElement::isTargetAttributeCSSProperty): Fix text detection. * svg/SVGElement.cpp: Add x and y to the relevant property lists. (WebCore::populateAttributeNameToCSSPropertyIDMap): (WebCore::populateCSSPropertyWithSVGDOMNameToAnimatedPropertyTypeMap): * svg/SVGFilterElement.cpp: Style update on change of x and y. (WebCore::SVGFilterElement::svgAttributeChanged): * svg/SVGMaskElement.cpp: Ditto. (WebCore::SVGMaskElement::svgAttributeChanged): * svg/SVGPatternElement.cpp: Ditto. (WebCore::SVGPatternElement::svgAttributeChanged): * svg/SVGRectElement.cpp: Ditto. (WebCore::SVGRectElement::svgAttributeChanged): * svg/SVGTextPositioningElement.cpp: Exclude x and y of text elements since they are lists instead of individual values. Solution about to be discussed in the WG. Keep current behavior for now. (WebCore::SVGTextPositioningElement::collectStyleForPresentationAttribute): (WebCore::SVGTextPositioningElement::isPresentationAttribute): * svg/SVGTextPositioningElement.h: LayoutTests: Test parsing of x and y attributes. Rendering and SVG animation covered by existing tests. CSS Transition test, test transition from specified attribute value to new property value. Patch by Dirk Schulze <krit@webkit.org> on 2014-07-24 Reviewed by Dean Jackson. * svg/css/parse-length-expected.txt: Added. * svg/css/parse-length.html: Renamed from LayoutTests/svg/css/parse-width.html. * svg/css/parse-width-expected.txt: Removed. * transitions/svg-layout-transition-expected.txt: Added. * transitions/svg-layout-transition.html: Added. Canonical link: https://commits.webkit.org/153179@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@171591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-07-25 09:52:25 +00:00
PASS - "x" property for "x" element at 0.5s saw something close to: 150
PASS - "y" property for "y" element at 0.5s saw something close to: 150
PASS - "width" property for "width" element at 0.5s saw something close to: 150
PASS - "height" property for "height" element at 0.5s saw something close to: 150