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

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

Issue 714303003: Move painting code from RenderPart to PartPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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/core.gypi ('k') | Source/core/paint/PartPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/PartPainter.h
diff --git a/Source/core/paint/SVGRootPainter.h b/Source/core/paint/PartPainter.h
similarity index 54%
copy from Source/core/paint/SVGRootPainter.h
copy to Source/core/paint/PartPainter.h
index 0c169dec2454c2df91701c918cf5e37631638981..76411117960321ba98dc88639ae5208bf65f1981 100644
--- a/Source/core/paint/SVGRootPainter.h
+++ b/Source/core/paint/PartPainter.h
@@ -2,25 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SVGRootPainter_h
mstensho (USE GERRIT) 2014/11/12 08:54:16 I think we got outsmarted by (the default) --find-
chrishtr 2014/11/12 17:17:22 This file is so short and simple, I don't think it
-#define SVGRootPainter_h
+#ifndef PartPainter_h
+#define PartPainter_h
namespace blink {
struct PaintInfo;
class LayoutPoint;
-class RenderSVGRoot;
+class RenderPart;
-class SVGRootPainter {
+class PartPainter {
public:
- SVGRootPainter(RenderSVGRoot& renderSVGRoot) : m_renderSVGRoot(renderSVGRoot) { }
+ PartPainter(RenderPart& renderPart) : m_renderPart(renderPart) { }
void paint(PaintInfo&, const LayoutPoint&);
+ void paintContents(PaintInfo&, const LayoutPoint&);
private:
- RenderSVGRoot& m_renderSVGRoot;
+ RenderPart& m_renderPart;
};
} // namespace blink
-#endif // SVGRootPainter_h
+#endif // PartPainter_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/PartPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698