| Index: Source/core/paint/InlinePainter.h
|
| diff --git a/Source/core/paint/InlinePainter.h b/Source/core/paint/InlinePainter.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..22e0cd254fa2b3925a07b6d7ff364b8f97b14aca
|
| --- /dev/null
|
| +++ b/Source/core/paint/InlinePainter.h
|
| @@ -0,0 +1,34 @@
|
| +// 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 InlinePainter_h
|
| +#define InlinePainter_h
|
| +
|
| +#include "core/rendering/style/RenderStyleConstants.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class Color;
|
| +class GraphicsContext;
|
| +class LayoutPoint;
|
| +class LayoutRect;
|
| +struct PaintInfo;
|
| +class RenderInline;
|
| +
|
| +class InlinePainter {
|
| +public:
|
| + InlinePainter(RenderInline& renderInline) : m_renderInline(renderInline) { }
|
| +
|
| + void paint(PaintInfo&, const LayoutPoint& paintOffset);
|
| + void paintOutline(PaintInfo&, const LayoutPoint& paintOffset);
|
| +
|
| +private:
|
| + void paintOutlineForLine(GraphicsContext*, const LayoutPoint&, const LayoutRect& prevLine, const LayoutRect& thisLine,
|
| + const LayoutRect& nextLine, const Color);
|
| + RenderInline& m_renderInline;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // InlinePainter_h
|
|
|