Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h |
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h |
index ce6422d7e6786865b53f975c36117e24170aaa02..61bf92e1d26ab1518bade0148fe9793df375e9cb 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h |
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h |
@@ -53,7 +53,7 @@ class LayoutSVGForeignObject final : public LayoutSVGBlock { |
void layout() override; |
FloatRect objectBoundingBox() const override { |
- return FloatRect(frameRect()); |
+ return FloatRect(FloatPoint(), FloatSize(size())); |
} |
FloatRect strokeBoundingBox() const override { return objectBoundingBox(); } |
FloatRect visualRectInLocalSVGCoordinates() const override { |
@@ -70,6 +70,8 @@ class LayoutSVGForeignObject final : public LayoutSVGBlock { |
void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } |
+ AffineTransform localToSVGParentTransform() const override; |
+ |
private: |
LayoutUnit elementX() const; |
LayoutUnit elementY() const; |