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

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

Issue 630093005: Move paint code from RootInlineBox and EllipsisBox to RootInlineBoxPainter and EllipsisBoxPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/EllipsisBoxPainter.cpp ('k') | Source/core/paint/RootInlineBoxPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/RootInlineBoxPainter.h
diff --git a/Source/core/paint/RootInlineBoxPainter.h b/Source/core/paint/RootInlineBoxPainter.h
new file mode 100644
index 0000000000000000000000000000000000000000..61942eec845f9e60d172983b458a7662ed563bf6
--- /dev/null
+++ b/Source/core/paint/RootInlineBoxPainter.h
@@ -0,0 +1,29 @@
+// 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 RootInlineBoxPainter_h
+#define RootInlineBoxPainter_h
+
+namespace blink {
+
+struct PaintInfo;
+class LayoutPoint;
+class LayoutUnit;
+class RootInlineBox;
+
+class RootInlineBoxPainter {
+public:
+ RootInlineBoxPainter(RootInlineBox& rootInlineBox) : m_rootInlineBox(rootInlineBox) { }
+
+ void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom);
+
+private:
+ void paintEllipsisBox(PaintInfo&, const LayoutPoint& paintOffset, LayoutUnit lineTop, LayoutUnit lineBottom) const;
+
+ RootInlineBox& m_rootInlineBox;
+};
+
+} // namespace blink
+
+#endif // RootInlineBoxPainter_h
« no previous file with comments | « Source/core/paint/EllipsisBoxPainter.cpp ('k') | Source/core/paint/RootInlineBoxPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698