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

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

Issue 1512803004: Use refs for GraphicsContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarTheme
Patch Set: Created 5 years 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 "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 10 matching lines...) Expand all
21 struct SVGTextFragment; 21 struct SVGTextFragment;
22 class TextRun; 22 class TextRun;
23 class DocumentMarker; 23 class DocumentMarker;
24 24
25 class SVGInlineTextBoxPainter { 25 class SVGInlineTextBoxPainter {
26 STACK_ALLOCATED(); 26 STACK_ALLOCATED();
27 public: 27 public:
28 SVGInlineTextBoxPainter(const SVGInlineTextBox& svgInlineTextBox) : m_svgInl ineTextBox(svgInlineTextBox) { } 28 SVGInlineTextBoxPainter(const SVGInlineTextBox& svgInlineTextBox) : m_svgInl ineTextBox(svgInlineTextBox) { }
29 void paint(const PaintInfo&, const LayoutPoint&); 29 void paint(const PaintInfo&, const LayoutPoint&);
30 void paintSelectionBackground(const PaintInfo&); 30 void paintSelectionBackground(const PaintInfo&);
31 virtual void paintTextMatchMarker(GraphicsContext*, const LayoutPoint&, Docu mentMarker*, const ComputedStyle&, const Font&); 31 virtual void paintTextMatchMarker(GraphicsContext&, const LayoutPoint&, Docu mentMarker*, const ComputedStyle&, const Font&);
32 32
33 private: 33 private:
34 bool shouldPaintSelection(const PaintInfo&) const; 34 bool shouldPaintSelection(const PaintInfo&) const;
35 void paintTextFragments(const PaintInfo&, LayoutObject&); 35 void paintTextFragments(const PaintInfo&, LayoutObject&);
36 void paintDecoration(const PaintInfo&, TextDecoration, const SVGTextFragment &); 36 void paintDecoration(const PaintInfo&, TextDecoration, const SVGTextFragment &);
37 void paintTextWithShadows(const PaintInfo&, const ComputedStyle&, TextRun&, const SVGTextFragment&, int startPosition, int endPosition, LayoutSVGResourceMod e); 37 void paintTextWithShadows(const PaintInfo&, const ComputedStyle&, TextRun&, const SVGTextFragment&, int startPosition, int endPosition, LayoutSVGResourceMod e);
38 void paintText(const PaintInfo&, const ComputedStyle&, const ComputedStyle& selectionStyle, const SVGTextFragment&, LayoutSVGResourceMode, bool shouldPaintS election); 38 void paintText(const PaintInfo&, const ComputedStyle&, const ComputedStyle& selectionStyle, const SVGTextFragment&, LayoutSVGResourceMode, bool shouldPaintS election);
39 39
40 const SVGInlineTextBox& m_svgInlineTextBox; 40 const SVGInlineTextBox& m_svgInlineTextBox;
41 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // SVGInlineTextBoxPainter_h 45 #endif // SVGInlineTextBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698