Index: Source/core/svg/SVGPatternElement.cpp |
diff --git a/Source/core/svg/SVGPatternElement.cpp b/Source/core/svg/SVGPatternElement.cpp |
index cce1bad7ac5d2c317f9d91171fc0a9b9ee3fdd1b..f8cb010227b0fdbc4c012a0a1567ca7d7941c935 100644 |
--- a/Source/core/svg/SVGPatternElement.cpp |
+++ b/Source/core/svg/SVGPatternElement.cpp |
@@ -57,21 +57,6 @@ inline SVGPatternElement::SVGPatternElement(Document& document) |
DEFINE_NODE_FACTORY(SVGPatternElement) |
-bool SVGPatternElement::isPresentationAttribute(const QualifiedName& name) const |
-{ |
- if (name == SVGNames::patternTransformAttr) |
- return true; |
- return SVGElement::isPresentationAttribute(name); |
-} |
- |
-void SVGPatternElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) |
-{ |
- if (name == SVGNames::patternTransformAttr) |
- addPropertyToPresentationAttributeStyle(style, CSSPropertyTransform, value); |
- else |
- SVGElement::collectStyleForPresentationAttribute(name, value, style); |
-} |
- |
bool SVGPatternElement::isSupportedAttribute(const QualifiedName& attrName) |
{ |
DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
@@ -127,11 +112,6 @@ void SVGPatternElement::svgAttributeChanged(const QualifiedName& attrName) |
return; |
} |
- if (attrName == SVGNames::patternTransformAttr) { |
- invalidateSVGPresentationAttributeStyle(); |
- setNeedsStyleRecalc(LocalStyleChange); |
- } |
- |
SVGElement::InvalidationGuard invalidationGuard(this); |
if (attrName == SVGNames::xAttr |
@@ -187,18 +167,10 @@ static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib |
if (!attributes.hasPatternContentUnits() && element->patternContentUnits()->isSpecified()) |
attributes.setPatternContentUnits(element->patternContentUnits()->currentValue()->enumValue()); |
- if (!attributes.hasPatternTransform()) { |
+ if (!attributes.hasPatternTransform() && element->patternTransform()->isSpecified()) { |
AffineTransform transform; |
- bool hasTransform = element->getStyleTransform(transform); |
- |
- // If CSS property was set, use that, otherwise fallback to attribute (if set). |
- if (!hasTransform && element->patternTransform()->isSpecified()) { |
- element->patternTransform()->currentValue()->concatenate(transform); |
- hasTransform = true; |
- } |
- |
- if (hasTransform) |
- attributes.setPatternTransform(transform); |
+ element->patternTransform()->currentValue()->concatenate(transform); |
+ attributes.setPatternTransform(transform); |
} |
if (!attributes.hasPatternContentElement() && ElementTraversal::firstWithin(*element)) |