| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
|
| index 8fbeb7903c1321cc5b881a20f898a017e4541e4c..99ff2eb287621923159474a0993008f507c623a5 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
|
| @@ -46,6 +46,13 @@ void LayoutSVGForeignObject::paint(const PaintInfo& paintInfo,
|
| SVGForeignObjectPainter(*this).paint(paintInfo);
|
| }
|
|
|
| +AffineTransform LayoutSVGForeignObject::localToSVGParentTransform() const {
|
| + // Unlike other viewport-defining SVG objects, here localSVGTransform applies
|
| + // to the viewport offset.
|
| + return localSVGTransform() *
|
| + AffineTransform::translation(location().x(), location().y());
|
| +}
|
| +
|
| LayoutUnit LayoutSVGForeignObject::elementX() const {
|
| return LayoutUnit(
|
| roundf(SVGLengthContext(toSVGElement(node()))
|
|
|