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

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

Issue 627773002: Move painting code from SVGInlineTextBox to SVGInlineTextBoxPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed. Created 6 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SVGInlineTextBoxPainter_h
6 #define SVGInlineTextBoxPainter_h
7
8 #include "core/rendering/style/RenderStyleConstants.h"
9 #include "core/rendering/svg/RenderSVGResource.h"
10
11 namespace blink {
12
13 class FloatPoint;
14 class Font;
15 class GraphicsContext;
16 struct PaintInfo;
17 class LayoutPoint;
18 class RenderStyle;
19 class RenderObject;
20 class SVGInlineTextBox;
21 struct SVGTextFragment;
22 class TextRun;
23 class DocumentMarker;
24
25 class SVGInlineTextBoxPainter {
26 public:
27 SVGInlineTextBoxPainter(SVGInlineTextBox& svgInlineTextBox) : m_svgInlineTex tBox(svgInlineTextBox) { }
28 void paint(PaintInfo&, const LayoutPoint&);
29 void paintSelectionBackground(PaintInfo&);
30 virtual void paintTextMatchMarker(GraphicsContext*, const FloatPoint&, Docum entMarker*, RenderStyle*, const Font&);
31
32 private:
33 void paintDecoration(GraphicsContext*, TextDecoration, const SVGTextFragment &);
34 void paintDecorationWithStyle(GraphicsContext*, TextDecoration, const SVGTex tFragment&, RenderObject* decorationRenderer, RenderSVGResourceModeFlags);
35 void paintTextWithShadows(GraphicsContext*, RenderStyle*, TextRun&, const SV GTextFragment&, int startPosition, int endPosition, RenderSVGResourceModeFlags);
36 void paintText(GraphicsContext*, RenderStyle*, RenderStyle* selectionStyle, const SVGTextFragment&, RenderSVGResourceModeFlags, bool hasSelection, bool pain tSelectedTextOnly);
37
38 SVGInlineTextBox& m_svgInlineTextBox;
39 };
40
41 } // namespace blink
42
43 #endif // SVGInlineTextBoxPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698