Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.h

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "skia/ext/cdl_common.h"
10 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class Font; 15 class Font;
15 struct PaintInfo; 16 struct PaintInfo;
16 class LayoutPoint; 17 class LayoutPoint;
17 class LayoutSVGInlineText; 18 class LayoutSVGInlineText;
18 class ComputedStyle; 19 class ComputedStyle;
19 class SVGInlineTextBox; 20 class SVGInlineTextBox;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const ComputedStyle&, 59 const ComputedStyle&,
59 const LayoutPoint&, 60 const LayoutPoint&,
60 bool includeSelectionRect) const; 61 bool includeSelectionRect) const;
61 void paintTextFragments(const PaintInfo&, LayoutObject&); 62 void paintTextFragments(const PaintInfo&, LayoutObject&);
62 void paintDecoration(const PaintInfo&, 63 void paintDecoration(const PaintInfo&,
63 TextDecoration, 64 TextDecoration,
64 const SVGTextFragment&); 65 const SVGTextFragment&);
65 bool setupTextPaint(const PaintInfo&, 66 bool setupTextPaint(const PaintInfo&,
66 const ComputedStyle&, 67 const ComputedStyle&,
67 LayoutSVGResourceMode, 68 LayoutSVGResourceMode,
68 SkPaint&); 69 CdlPaint&);
69 void paintText(const PaintInfo&, 70 void paintText(const PaintInfo&,
70 TextRun&, 71 TextRun&,
71 const SVGTextFragment&, 72 const SVGTextFragment&,
72 int startPosition, 73 int startPosition,
73 int endPosition, 74 int endPosition,
74 const SkPaint&); 75 const CdlPaint&);
75 void paintText(const PaintInfo&, 76 void paintText(const PaintInfo&,
76 const ComputedStyle&, 77 const ComputedStyle&,
77 const ComputedStyle& selectionStyle, 78 const ComputedStyle& selectionStyle,
78 const SVGTextFragment&, 79 const SVGTextFragment&,
79 LayoutSVGResourceMode, 80 LayoutSVGResourceMode,
80 bool shouldPaintSelection); 81 bool shouldPaintSelection);
81 Vector<SVGTextFragmentWithRange> collectTextMatches(DocumentMarker*) const; 82 Vector<SVGTextFragmentWithRange> collectTextMatches(DocumentMarker*) const;
82 Vector<SVGTextFragmentWithRange> collectFragmentsInRange( 83 Vector<SVGTextFragmentWithRange> collectFragmentsInRange(
83 int startPosition, 84 int startPosition,
84 int endPosition) const; 85 int endPosition) const;
85 LayoutObject& inlineLayoutObject() const; 86 LayoutObject& inlineLayoutObject() const;
86 LayoutObject& parentInlineLayoutObject() const; 87 LayoutObject& parentInlineLayoutObject() const;
87 LayoutSVGInlineText& inlineText() const; 88 LayoutSVGInlineText& inlineText() const;
88 89
89 const SVGInlineTextBox& m_svgInlineTextBox; 90 const SVGInlineTextBox& m_svgInlineTextBox;
90 }; 91 };
91 92
92 } // namespace blink 93 } // namespace blink
93 94
94 #endif // SVGInlineTextBoxPainter_h 95 #endif // SVGInlineTextBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698