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 SVGInlineTextBoxPainter_h | 5 #ifndef SVGInlineTextBoxPainter_h |
6 #define SVGInlineTextBoxPainter_h | 6 #define SVGInlineTextBoxPainter_h |
7 | 7 |
8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
9 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" | 9 #include "core/layout/svg/LayoutSVGResourcePaintServer.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 const ComputedStyle&, | 58 const ComputedStyle&, |
59 const LayoutPoint&, | 59 const LayoutPoint&, |
60 bool includeSelectionRect) const; | 60 bool includeSelectionRect) const; |
61 void paintTextFragments(const PaintInfo&, LayoutObject&); | 61 void paintTextFragments(const PaintInfo&, LayoutObject&); |
62 void paintDecoration(const PaintInfo&, | 62 void paintDecoration(const PaintInfo&, |
63 TextDecoration, | 63 TextDecoration, |
64 const SVGTextFragment&); | 64 const SVGTextFragment&); |
65 bool setupTextPaint(const PaintInfo&, | 65 bool setupTextPaint(const PaintInfo&, |
66 const ComputedStyle&, | 66 const ComputedStyle&, |
67 LayoutSVGResourceMode, | 67 LayoutSVGResourceMode, |
68 SkPaint&); | 68 PaintFlags&); |
69 void paintText(const PaintInfo&, | 69 void paintText(const PaintInfo&, |
70 TextRun&, | 70 TextRun&, |
71 const SVGTextFragment&, | 71 const SVGTextFragment&, |
72 int startPosition, | 72 int startPosition, |
73 int endPosition, | 73 int endPosition, |
74 const SkPaint&); | 74 const PaintFlags&); |
75 void paintText(const PaintInfo&, | 75 void paintText(const PaintInfo&, |
76 const ComputedStyle&, | 76 const ComputedStyle&, |
77 const ComputedStyle& selectionStyle, | 77 const ComputedStyle& selectionStyle, |
78 const SVGTextFragment&, | 78 const SVGTextFragment&, |
79 LayoutSVGResourceMode, | 79 LayoutSVGResourceMode, |
80 bool shouldPaintSelection); | 80 bool shouldPaintSelection); |
81 Vector<SVGTextFragmentWithRange> collectTextMatches( | 81 Vector<SVGTextFragmentWithRange> collectTextMatches( |
82 const DocumentMarker&) const; | 82 const DocumentMarker&) const; |
83 Vector<SVGTextFragmentWithRange> collectFragmentsInRange( | 83 Vector<SVGTextFragmentWithRange> collectFragmentsInRange( |
84 int startPosition, | 84 int startPosition, |
85 int endPosition) const; | 85 int endPosition) const; |
86 LayoutObject& inlineLayoutObject() const; | 86 LayoutObject& inlineLayoutObject() const; |
87 LayoutObject& parentInlineLayoutObject() const; | 87 LayoutObject& parentInlineLayoutObject() const; |
88 LayoutSVGInlineText& inlineText() const; | 88 LayoutSVGInlineText& inlineText() const; |
89 | 89 |
90 const SVGInlineTextBox& m_svgInlineTextBox; | 90 const SVGInlineTextBox& m_svgInlineTextBox; |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // SVGInlineTextBoxPainter_h | 95 #endif // SVGInlineTextBoxPainter_h |
OLD | NEW |