| 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 InlineTextBoxPainter_h | 5 #ifndef InlineTextBoxPainter_h |
| 6 #define InlineTextBoxPainter_h | 6 #define InlineTextBoxPainter_h |
| 7 | 7 |
| 8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
| 9 #include "platform/geometry/LayoutRect.h" | 9 #include "platform/geometry/LayoutRect.h" |
| 10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 struct PaintInfo; | 14 struct PaintInfo; |
| 15 | 15 |
| 16 class AppliedTextDecoration; |
| 16 class Color; | 17 class Color; |
| 17 class CompositionUnderline; | 18 class CompositionUnderline; |
| 18 class ComputedStyle; | 19 class ComputedStyle; |
| 19 class DocumentMarker; | 20 class DocumentMarker; |
| 20 class Font; | 21 class Font; |
| 21 class GraphicsContext; | 22 class GraphicsContext; |
| 22 class InlineTextBox; | 23 class InlineTextBox; |
| 23 class LayoutObject; | 24 class LayoutObject; |
| 24 class LayoutPoint; | 25 class LayoutPoint; |
| 25 class LayoutTextCombine; | 26 class LayoutTextCombine; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 Color backgroundColor, | 75 Color backgroundColor, |
| 75 int startPos, | 76 int startPos, |
| 76 int endPos); | 77 int endPos); |
| 77 template <PaintOptions> | 78 template <PaintOptions> |
| 78 void paintSelection(GraphicsContext&, | 79 void paintSelection(GraphicsContext&, |
| 79 const LayoutRect& boxRect, | 80 const LayoutRect& boxRect, |
| 80 const ComputedStyle&, | 81 const ComputedStyle&, |
| 81 const Font&, | 82 const Font&, |
| 82 Color textColor, | 83 Color textColor, |
| 83 LayoutTextCombine* = nullptr); | 84 LayoutTextCombine* = nullptr); |
| 84 void paintDecoration(const PaintInfo&, | 85 void paintDecorations(const PaintInfo&, |
| 85 const LayoutPoint& boxOrigin, | 86 const LayoutPoint& boxOrigin, |
| 86 TextDecoration); | 87 const Vector<AppliedTextDecoration>&); |
| 87 void paintCompositionUnderline(GraphicsContext&, | 88 void paintCompositionUnderline(GraphicsContext&, |
| 88 const LayoutPoint& boxOrigin, | 89 const LayoutPoint& boxOrigin, |
| 89 const CompositionUnderline&); | 90 const CompositionUnderline&); |
| 90 unsigned underlinePaintStart(const CompositionUnderline&); | 91 unsigned underlinePaintStart(const CompositionUnderline&); |
| 91 unsigned underlinePaintEnd(const CompositionUnderline&); | 92 unsigned underlinePaintEnd(const CompositionUnderline&); |
| 92 bool shouldPaintTextBox(const PaintInfo&); | 93 bool shouldPaintTextBox(const PaintInfo&); |
| 93 void expandToIncludeNewlineForSelection(LayoutRect&); | 94 void expandToIncludeNewlineForSelection(LayoutRect&); |
| 94 LayoutObject& inlineLayoutObject() const; | 95 LayoutObject& inlineLayoutObject() const; |
| 95 | 96 |
| 96 const InlineTextBox& m_inlineTextBox; | 97 const InlineTextBox& m_inlineTextBox; |
| 97 }; | 98 }; |
| 98 | 99 |
| 99 } // namespace blink | 100 } // namespace blink |
| 100 | 101 |
| 101 #endif // InlineTextBoxPainter_h | 102 #endif // InlineTextBoxPainter_h |
| OLD | NEW |