| 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
|
|
|