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

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

Issue 2536493002: Let SVGForeignObject's local SVG coordinates mean what it should (Closed)
Patch Set: - Created 4 years, 1 month 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.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
index 1f916a0ff13552b509a550625883ccec31a661cd..e45295775d3354565741e9f34a66fad32c7e65ec 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGForeignObject.cpp
@@ -46,13 +46,6 @@ 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()))

Powered by Google App Engine
This is Rietveld 408576698