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

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

Issue 2767343003: Revert: "Let SVGForeignObject's local SVG coordinates mean what it should" (Closed)
Patch Set: Rebaseline test 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 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;

Powered by Google App Engine
This is Rietveld 408576698