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

Unified 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: Fix debug build. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/InlineTextBoxPainter.cpp ('k') | Source/core/paint/SVGInlineTextBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/SVGInlineTextBoxPainter.h
diff --git a/Source/core/paint/SVGInlineTextBoxPainter.h b/Source/core/paint/SVGInlineTextBoxPainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..704afc9be27d5e57fa5b1db6e1214c9d82d25f62
--- /dev/null
+++ b/Source/core/paint/SVGInlineTextBoxPainter.h
@@ -0,0 +1,43 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SVGInlineTextBoxPainter_h
+#define SVGInlineTextBoxPainter_h
+
+#include "core/rendering/style/RenderStyleConstants.h"
+#include "core/rendering/svg/RenderSVGResource.h"
+
+namespace blink {
+
+class FloatPoint;
+class Font;
+class GraphicsContext;
+struct PaintInfo;
+class LayoutPoint;
+class RenderStyle;
+class RenderObject;
+class SVGInlineTextBox;
+struct SVGTextFragment;
+class TextRun;
+class DocumentMarker;
+
+class SVGInlineTextBoxPainter {
+public:
+ SVGInlineTextBoxPainter(SVGInlineTextBox& svgInlineTextBox) : m_svgInlineTextBox(svgInlineTextBox) { }
+ void paint(PaintInfo&, const LayoutPoint&);
+ void paintSelectionBackground(PaintInfo&);
+ virtual void paintTextMatchMarker(GraphicsContext*, const FloatPoint&, DocumentMarker*, RenderStyle*, const Font&);
+
+private:
+ void paintDecoration(GraphicsContext*, TextDecoration, const SVGTextFragment&);
+ void paintDecorationWithStyle(GraphicsContext*, TextDecoration, const SVGTextFragment&, RenderObject* decorationRenderer, RenderSVGResourceModeFlags);
+ void paintTextWithShadows(GraphicsContext*, RenderStyle*, TextRun&, const SVGTextFragment&, int startPosition, int endPosition, RenderSVGResourceModeFlags);
+ void paintText(GraphicsContext*, RenderStyle*, RenderStyle* selectionStyle, const SVGTextFragment&, RenderSVGResourceModeFlags, bool hasSelection, bool paintSelectedTextOnly);
+
+ SVGInlineTextBox& m_svgInlineTextBox;
+};
+
+} // namespace blink
+
+#endif // SVGInlineTextBoxPainter_h
« no previous file with comments | « Source/core/paint/InlineTextBoxPainter.cpp ('k') | Source/core/paint/SVGInlineTextBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698