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

Unified Diff: Source/core/paint/InlineTextBoxPainter.cpp

Issue 734313004: Move InlineTextBox::rotation to TextPainter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/InlineTextBoxPainter.cpp
diff --git a/Source/core/paint/InlineTextBoxPainter.cpp b/Source/core/paint/InlineTextBoxPainter.cpp
index 93621fa5e29c29cc8a1ed2d9af1edb638b081d70..d283d84b4d96c7365895ff500ff4b8cd6eb94e36 100644
--- a/Source/core/paint/InlineTextBoxPainter.cpp
+++ b/Source/core/paint/InlineTextBoxPainter.cpp
@@ -109,7 +109,7 @@ void InlineTextBoxPainter::paint(PaintInfo& paintInfo, const LayoutPoint& paintO
bool shouldRotate = !m_inlineTextBox.isHorizontal() && !combinedText;
if (shouldRotate)
- context->concatCTM(InlineTextBox::rotation(boxRect, InlineTextBox::Clockwise));
+ context->concatCTM(TextPainter::rotation(boxRect, TextPainter::Clockwise));
// Determine whether or not we have composition underlines to draw.
bool containsComposition = m_inlineTextBox.renderer().node() && m_inlineTextBox.renderer().frame()->inputMethodController().compositionNode() == m_inlineTextBox.renderer().node();
@@ -217,11 +217,10 @@ void InlineTextBoxPainter::paint(PaintInfo& paintInfo, const LayoutPoint& paintO
GraphicsContextStateSaver stateSaver(*context, false);
TextPainter::updateGraphicsContext(context, textStyle, m_inlineTextBox.isHorizontal(), stateSaver);
if (combinedText)
-
- context->concatCTM(InlineTextBox::rotation(boxRect, InlineTextBox::Clockwise));
+ context->concatCTM(TextPainter::rotation(boxRect, TextPainter::Clockwise));
paintDecoration(context, boxOrigin, textDecorations);
if (combinedText)
- context->concatCTM(InlineTextBox::rotation(boxRect, InlineTextBox::Counterclockwise));
+ context->concatCTM(TextPainter::rotation(boxRect, TextPainter::Counterclockwise));
}
if (paintInfo.phase == PaintPhaseForeground) {
@@ -240,7 +239,7 @@ void InlineTextBoxPainter::paint(PaintInfo& paintInfo, const LayoutPoint& paintO
}
if (shouldRotate)
- context->concatCTM(InlineTextBox::rotation(boxRect, InlineTextBox::Counterclockwise));
+ context->concatCTM(TextPainter::rotation(boxRect, TextPainter::Counterclockwise));
}
unsigned InlineTextBoxPainter::underlinePaintStart(const CompositionUnderline& underline)
« no previous file with comments | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/TextPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698