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

Unified Diff: Source/core/rendering/InlineTextBox.h

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/TextPainter.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/InlineTextBox.h
diff --git a/Source/core/rendering/InlineTextBox.h b/Source/core/rendering/InlineTextBox.h
index c01cb95d328857532e62c86a265322219b1b1227..ca8b58070b16c8a245fef2add4691eab39de6fa0 100644
--- a/Source/core/rendering/InlineTextBox.h
+++ b/Source/core/rendering/InlineTextBox.h
@@ -26,7 +26,6 @@
#include "core/rendering/FloatToLayoutUnit.h"
#include "core/rendering/InlineBox.h"
#include "core/rendering/RenderText.h" // so textRenderer() can be inline
-#include "platform/fonts/TextBlob.h"
#include "platform/text/TextRun.h"
#include "wtf/Forward.h"
@@ -97,9 +96,6 @@ public:
virtual const char* boxName() const override;
#endif
- enum RotationDirection { Counterclockwise, Clockwise };
- static AffineTransform rotation(const FloatRectWillBeLayoutRect& boxRect, RotationDirection);
-
public:
TextRun constructTextRunForInspector(RenderStyle*, const Font&) const;
virtual FloatRectWillBeLayoutRect calculateBoundaries() const override { return FloatRectWillBeLayoutRect(x(), y(), width(), height()); }
@@ -178,12 +174,6 @@ DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox);
void alignSelectionRectToDevicePixels(FloatRectWillBeLayoutRect&);
-inline AffineTransform InlineTextBox::rotation(const FloatRectWillBeLayoutRect& boxRect, RotationDirection rotationDirection)
-{
- return rotationDirection == Clockwise ? AffineTransform(0, 1, -1, 0, boxRect.x() + boxRect.maxY(), boxRect.maxY() - boxRect.x())
- : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.maxY(), boxRect.x() + boxRect.maxY());
-}
-
} // namespace blink
#endif // InlineTextBox_h
« no previous file with comments | « Source/core/paint/TextPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698