| 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" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void setEmphasisMark(const AtomicString&, TextEmphasisPosition); | 47 void setEmphasisMark(const AtomicString&, TextEmphasisPosition); |
| 48 void setCombinedText(LayoutTextCombine* combinedText) { | 48 void setCombinedText(LayoutTextCombine* combinedText) { |
| 49 m_combinedText = combinedText; | 49 m_combinedText = combinedText; |
| 50 } | 50 } |
| 51 | 51 |
| 52 static void updateGraphicsContext(GraphicsContext&, | 52 static void updateGraphicsContext(GraphicsContext&, |
| 53 const Style&, | 53 const Style&, |
| 54 bool horizontal, | 54 bool horizontal, |
| 55 GraphicsContextStateSaver&); | 55 GraphicsContextStateSaver&); |
| 56 | 56 |
| 57 void clipDecorationsStripe(float upper, float stripeWidth, float dilation); |
| 57 void paint(unsigned startOffset, | 58 void paint(unsigned startOffset, |
| 58 unsigned endOffset, | 59 unsigned endOffset, |
| 59 unsigned length, | 60 unsigned length, |
| 60 const Style&, | 61 const Style&, |
| 61 TextBlobPtr* cachedTextBlob = 0); | 62 TextBlobPtr* cachedTextBlob = 0); |
| 62 | 63 |
| 63 struct Style { | 64 struct Style { |
| 64 STACK_ALLOCATED(); | 65 STACK_ALLOCATED(); |
| 65 Color currentColor; | 66 Color currentColor; |
| 66 Color fillColor; | 67 Color fillColor; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 return rotationDirection == Clockwise | 141 return rotationDirection == Clockwise |
| 141 ? AffineTransform(0, 1, -1, 0, boxRect.x() + boxRect.maxY(), | 142 ? AffineTransform(0, 1, -1, 0, boxRect.x() + boxRect.maxY(), |
| 142 boxRect.y() - boxRect.x()) | 143 boxRect.y() - boxRect.x()) |
| 143 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.y(), | 144 : AffineTransform(0, -1, 1, 0, boxRect.x() - boxRect.y(), |
| 144 boxRect.x() + boxRect.maxY()); | 145 boxRect.x() + boxRect.maxY()); |
| 145 } | 146 } |
| 146 | 147 |
| 147 } // namespace blink | 148 } // namespace blink |
| 148 | 149 |
| 149 #endif // TextPainter_h | 150 #endif // TextPainter_h |
| OLD | NEW |