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

Unified Diff: third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
index 1cd243bbd4e8e603a2451833e310d2c956f99fd3..1ff27ae98c88b84fc59118729416e027ae5e4006 100644
--- a/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp
@@ -51,9 +51,8 @@ FloatRect SVGInlineTextBoxPainter::boundsForDrawingRecorder(
const ComputedStyle& style,
const LayoutPoint& paintOffset,
bool includeSelectionRect) const {
- LayoutRect bounds(
- m_svgInlineTextBox.locationIncludingFlipping() + paintOffset,
- m_svgInlineTextBox.size());
+ LayoutRect bounds(m_svgInlineTextBox.topLeft() + paintOffset,
+ m_svgInlineTextBox.size());
if (hasShadow(paintInfo, style))
bounds.expand(style.textShadow()->rectOutsetsIncludingOriginal());
if (includeSelectionRect) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698