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

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

Issue 2533633002: Don't flip SVG text coordinates (Closed)
Patch Set: Rebaseline-cl 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/line/SVGRootInlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
index dc9ce84caf51890504915a11995412655fbe20ad..fe9541f71d65a99e69b410da692d48126567bf1d 100644
--- a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp
@@ -108,14 +108,10 @@ LayoutRect SVGRootInlineBox::layoutInlineBoxes(InlineBox& box) {
void SVGRootInlineBox::adjustInlineBoxesToBlockSpace(InlineBox& box) {
LineLayoutBlockFlow parentBlock = block();
- LayoutRect rect(box.topLeft(), box.size());
- // In layoutChildBoxes(), the box was laid out in physical SVG coordinates.
- rect.moveBy(-parentBlock.location());
- // Convert physical coordinates into "physical coordinates in flipped block
- // direction".
- parentBlock.flipForWritingMode(rect);
- box.setX(rect.x());
- box.setY(rect.y());
+ LayoutPoint location = box.topLeft();
+ location.moveBy(-parentBlock.location());
+ box.setX(location.x());
+ box.setY(location.y());
if (!box.isInlineFlowBox())
return;

Powered by Google App Engine
This is Rietveld 408576698