OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TextPainter_h | 5 #ifndef TextPainter_h |
6 #define TextPainter_h | 6 #define TextPainter_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/style/ComputedStyleConstants.h" | 9 #include "core/style/ComputedStyleConstants.h" |
10 #include "platform/fonts/TextBlob.h" | 10 #include "platform/fonts/TextBlob.h" |
11 #include "platform/geometry/FloatPoint.h" | 11 #include "platform/geometry/FloatPoint.h" |
12 #include "platform/geometry/FloatRect.h" | 12 #include "platform/geometry/FloatRect.h" |
13 #include "platform/geometry/LayoutRect.h" | 13 #include "platform/geometry/LayoutRect.h" |
14 #include "platform/graphics/Color.h" | 14 #include "platform/graphics/Color.h" |
15 #include "platform/transforms/AffineTransform.h" | 15 #include "platform/transforms/AffineTransform.h" |
16 #include "wtf/Allocator.h" | 16 #include "wtf/Allocator.h" |
17 #include "wtf/text/AtomicString.h" | 17 #include "wtf/text/AtomicString.h" |
18 | 18 |
19 namespace blink { | 19 namespace blink { |
20 | 20 |
21 class ComputedStyle; | 21 class ComputedStyle; |
22 class Font; | 22 class Font; |
23 class GraphicsContext; | 23 class GraphicsContext; |
24 class GraphicsContextStateSaver; | 24 class GraphicsContextStateSaver; |
25 class LayoutTextCombine; | 25 class LayoutTextCombine; |
26 class LayoutObject; | |
27 class LineLayoutItem; | 26 class LineLayoutItem; |
28 struct PaintInfo; | 27 struct PaintInfo; |
29 class ShadowList; | 28 class ShadowList; |
30 class TextRun; | 29 class TextRun; |
31 struct TextRunPaintInfo; | 30 struct TextRunPaintInfo; |
32 | 31 |
33 class CORE_EXPORT TextPainter { | 32 class CORE_EXPORT TextPainter { |
34 STACK_ALLOCATED(); | 33 STACK_ALLOCATED(); |
35 | 34 |
36 public: | 35 public: |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return rotationDirection == Clockwise | 139 return rotationDirection == Clockwise |
141 ? AffineTransform(0, 1, -1, 0, boxRect.x() + boxRect.maxY(), | 140 ? AffineTransform(0, 1, -1, 0, boxRect.x() + boxRect.maxY(), |
142 boxRect.y() - boxRect.x()) | 141 boxRect.y() - boxRect.x()) |
143 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.y(), | 142 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.y(), |
144 boxRect.x() + boxRect.maxY()); | 143 boxRect.x() + boxRect.maxY()); |
145 } | 144 } |
146 | 145 |
147 } // namespace blink | 146 } // namespace blink |
148 | 147 |
149 #endif // TextPainter_h | 148 #endif // TextPainter_h |
OLD | NEW |