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

Unified Diff: Source/core/paint/EllipsisBoxPainter.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 | « no previous file | Source/core/paint/InlineTextBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/EllipsisBoxPainter.cpp
diff --git a/Source/core/paint/EllipsisBoxPainter.cpp b/Source/core/paint/EllipsisBoxPainter.cpp
index 86870dd2cf8ae46724d6bb8669c665f2b1afad57..eac0253b0e4bdd205df9f4a7a9bf59220da2adb0 100644
--- a/Source/core/paint/EllipsisBoxPainter.cpp
+++ b/Source/core/paint/EllipsisBoxPainter.cpp
@@ -7,7 +7,6 @@
#include "core/paint/TextPainter.h"
#include "core/rendering/EllipsisBox.h"
-#include "core/rendering/InlineTextBox.h"
#include "core/rendering/PaintInfo.h"
#include "core/rendering/RootInlineBox.h"
#include "core/rendering/TextRunConstructor.h"
@@ -27,7 +26,7 @@ void EllipsisBoxPainter::paint(PaintInfo& paintInfo, const LayoutPoint& paintOff
FloatRect boxRect(boxOrigin, LayoutSize(m_ellipsisBox.logicalWidth(), m_ellipsisBox.virtualLogicalHeight()));
GraphicsContextStateSaver stateSaver(*context);
if (!m_ellipsisBox.isHorizontal())
- context->concatCTM(InlineTextBox::rotation(boxRect, InlineTextBox::Clockwise));
+ context->concatCTM(TextPainter::rotation(boxRect, TextPainter::Clockwise));
FloatPoint textOrigin(boxOrigin.x(), boxOrigin.y() + font.fontMetrics().ascent());
bool isPrinting = m_ellipsisBox.renderer().document().printing();
« no previous file with comments | « no previous file | Source/core/paint/InlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698