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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void paintCompositionBackgrounds(GraphicsContext&, const LayoutPoint& boxOri
gin, const ComputedStyle&, const Font&, bool useCustomUnderlines); | 48 void paintCompositionBackgrounds(GraphicsContext&, const LayoutPoint& boxOri
gin, const ComputedStyle&, const Font&, bool useCustomUnderlines); |
49 void paintSingleCompositionBackgroundRun(GraphicsContext&, const LayoutPoint
& boxOrigin, const ComputedStyle&, const Font&, Color backgroundColor, int start
Pos, int endPos); | 49 void paintSingleCompositionBackgroundRun(GraphicsContext&, const LayoutPoint
& boxOrigin, const ComputedStyle&, const Font&, Color backgroundColor, int start
Pos, int endPos); |
50 template <PaintOptions> | 50 template <PaintOptions> |
51 void paintSelection(GraphicsContext&, const LayoutRect& boxRect, const Compu
tedStyle&, const Font&, Color textColor, LayoutTextCombine* = nullptr); | 51 void paintSelection(GraphicsContext&, const LayoutRect& boxRect, const Compu
tedStyle&, const Font&, Color textColor, LayoutTextCombine* = nullptr); |
52 void paintDecoration(const PaintInfo&, const LayoutPoint& boxOrigin, TextDec
oration); | 52 void paintDecoration(const PaintInfo&, const LayoutPoint& boxOrigin, TextDec
oration); |
53 void paintCompositionUnderline(GraphicsContext&, const LayoutPoint& boxOrigi
n, const CompositionUnderline&); | 53 void paintCompositionUnderline(GraphicsContext&, const LayoutPoint& boxOrigi
n, const CompositionUnderline&); |
54 unsigned underlinePaintStart(const CompositionUnderline&); | 54 unsigned underlinePaintStart(const CompositionUnderline&); |
55 unsigned underlinePaintEnd(const CompositionUnderline&); | 55 unsigned underlinePaintEnd(const CompositionUnderline&); |
56 bool shouldPaintTextBox(const PaintInfo&); | 56 bool shouldPaintTextBox(const PaintInfo&); |
57 void expandToIncludeNewlineForSelection(LayoutRect&); | 57 void expandToIncludeNewlineForSelection(LayoutRect&); |
| 58 LayoutObject& inlineLayoutObject() const; |
58 | 59 |
59 const InlineTextBox& m_inlineTextBox; | 60 const InlineTextBox& m_inlineTextBox; |
60 }; | 61 }; |
61 | 62 |
62 } // namespace blink | 63 } // namespace blink |
63 | 64 |
64 #endif // InlineTextBoxPainter_h | 65 #endif // InlineTextBoxPainter_h |
OLD | NEW |