| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| index a21f433b1aa4105a57fe8c3104bdbdd011cd6ca8..50f76547169457a1e0f24966b8b6664e108b7e36 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -290,7 +290,11 @@ void PaintPropertyTreeBuilder::updateTransformForNonRootSVG(
|
| context.current.paintOffset == LayoutPoint());
|
|
|
| if (object.needsPaintPropertyUpdate() || context.forceSubtreeUpdate) {
|
| - AffineTransform transform = object.localToSVGParentTransform();
|
| + // TODO(pdr): Refactor this so all non-root SVG objects use the same
|
| + // transform function.
|
| + const AffineTransform& transform = object.isSVGForeignObject()
|
| + ? object.localSVGTransform()
|
| + : object.localToSVGParentTransform();
|
| // TODO(pdr): Check for the presence of a transform instead of the value.
|
| // Checking for an identity matrix will cause the property tree structure
|
| // to change during animations if the animation passes through the
|
|
|