Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.h

Issue 2778873002: Reland "Let SVGForeignObject's local SVG coordinates mean what it should" (Closed)
Patch Set: Fix Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 61bf92e1d26ab1518bade0148fe9793df375e9cb..ce6422d7e6786865b53f975c36117e24170aaa02 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(FloatPoint(), FloatSize(size()));
+ return FloatRect(frameRect());
}
FloatRect strokeBoundingBox() const override { return objectBoundingBox(); }
FloatRect visualRectInLocalSVGCoordinates() const override {
@@ -70,8 +70,6 @@ class LayoutSVGForeignObject final : public LayoutSVGBlock {
void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
- AffineTransform localToSVGParentTransform() const override;
-
private:
LayoutUnit elementX() const;
LayoutUnit elementY() const;

Powered by Google App Engine
This is Rietveld 408576698