| 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 cecdb95c06cbeb13622c5175cc32a92ac58f7823..2269ac4bc7ce5b43435b131377f5fb7c330f91d4 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp
|
| @@ -284,7 +284,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
|
|
|