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

Unified Diff: Source/core/paint/InlinePainter.h

Issue 585743003: Move paint code from RenderInline into InlinePainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merged. Created 6 years, 3 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/BlockPainter.cpp ('k') | Source/core/paint/InlinePainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/paint/BlockPainter.cpp ('k') | Source/core/paint/InlinePainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698