Chromium Code Reviews| Index: Source/core/svg/SVGGraphicsElement.cpp |
| diff --git a/Source/core/svg/SVGGraphicsElement.cpp b/Source/core/svg/SVGGraphicsElement.cpp |
| index 61075da967ce57a3aa76961c4b597e8d09c15498..69b1ab3d43db17259e347ebe4e49ffd5ddf161d7 100644 |
| --- a/Source/core/svg/SVGGraphicsElement.cpp |
| +++ b/Source/core/svg/SVGGraphicsElement.cpp |
| @@ -122,6 +122,12 @@ PassRefPtr<SVGMatrixTearOff> SVGGraphicsElement::getScreenCTMFromJavascript() |
| return SVGMatrixTearOff::create(getScreenCTM()); |
| } |
| +bool SVGGraphicsElement::hasAnimatedLocalTransform() const |
| +{ |
| + RenderStyle* style = renderer() ? renderer()->style() : 0; |
| + return (style && style->hasTransform()) || !m_transform->currentValue()->isEmpty() || hasSVGRareData(); |
|
fs
2014/11/05 13:46:47
Maybe there ought to be a comment here pointing to
pdr.
2014/11/07 04:20:27
Excellent point. Done
|
| +} |
| + |
| AffineTransform SVGGraphicsElement::calculateAnimatedLocalTransform() const |
| { |
| AffineTransform matrix; |