| 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/geometry/FloatPoint.h" | 10 #include "platform/geometry/FloatPoint.h" |
| 11 #include "platform/geometry/FloatRect.h" | 11 #include "platform/geometry/FloatRect.h" |
| 12 #include "platform/geometry/LayoutRect.h" | 12 #include "platform/geometry/LayoutRect.h" |
| 13 #include "platform/graphics/Color.h" | 13 #include "platform/graphics/Color.h" |
| 14 #include "platform/transforms/AffineTransform.h" | 14 #include "platform/transforms/AffineTransform.h" |
| 15 #include "wtf/Allocator.h" | 15 #include "platform/wtf/Allocator.h" |
| 16 #include "wtf/text/AtomicString.h" | 16 #include "platform/wtf/text/AtomicString.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class ComputedStyle; | 20 class ComputedStyle; |
| 21 class Font; | 21 class Font; |
| 22 class GraphicsContext; | 22 class GraphicsContext; |
| 23 class GraphicsContextStateSaver; | 23 class GraphicsContextStateSaver; |
| 24 class LayoutTextCombine; | 24 class LayoutTextCombine; |
| 25 class LineLayoutItem; | 25 class LineLayoutItem; |
| 26 struct PaintInfo; | 26 struct PaintInfo; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 return rotation_direction == kClockwise | 141 return rotation_direction == kClockwise |
| 142 ? AffineTransform(0, 1, -1, 0, box_rect.X() + box_rect.MaxY(), | 142 ? AffineTransform(0, 1, -1, 0, box_rect.X() + box_rect.MaxY(), |
| 143 box_rect.Y() - box_rect.X()) | 143 box_rect.Y() - box_rect.X()) |
| 144 : AffineTransform(0, -1, 1, 0, box_rect.X() - box_rect.Y(), | 144 : AffineTransform(0, -1, 1, 0, box_rect.X() - box_rect.Y(), |
| 145 box_rect.X() + box_rect.MaxY()); | 145 box_rect.X() + box_rect.MaxY()); |
| 146 } | 146 } |
| 147 | 147 |
| 148 } // namespace blink | 148 } // namespace blink |
| 149 | 149 |
| 150 #endif // TextPainter_h | 150 #endif // TextPainter_h |
| OLD | NEW |