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

Side by Side Diff: Source/core/paint/BlockPainter.h

Issue 589283002: Move painting code from RenderView to ViewPainter. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/ViewPainter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BlockPainter_h 5 #ifndef BlockPainter_h
6 #define BlockPainter_h 6 #define BlockPainter_h
7 7
8 #include "core/rendering/RenderBlock.h"
9
10 namespace blink { 8 namespace blink {
11 9
12 struct PaintInfo; 10 struct PaintInfo;
11 class InlineBox;
13 class LayoutPoint; 12 class LayoutPoint;
13 class LayoutRect;
14 class RenderBlock;
15 class RenderBox;
16 class RenderObject;
14 17
15 class BlockPainter { 18 class BlockPainter {
16 public: 19 public:
17 BlockPainter(RenderBlock& block) : m_renderBlock(block) { } 20 BlockPainter(RenderBlock& block) : m_renderBlock(block) { }
18 21
19 void paint(PaintInfo&, const LayoutPoint& paintOffset); 22 void paint(PaintInfo&, const LayoutPoint& paintOffset);
20 void paintObject(PaintInfo&, const LayoutPoint&); 23 void paintObject(PaintInfo&, const LayoutPoint&);
21 void paintChildren(PaintInfo&, const LayoutPoint&); 24 void paintChildren(PaintInfo&, const LayoutPoint&);
22 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&); 25 void paintChildAsInlineBlock(RenderBox*, PaintInfo&, const LayoutPoint&);
23 26
(...skipping 13 matching lines...) Expand all
37 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&); 40 void paintChild(RenderBox*, PaintInfo&, const LayoutPoint&);
38 void paintSelection(PaintInfo&, const LayoutPoint&); 41 void paintSelection(PaintInfo&, const LayoutPoint&);
39 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&); 42 void paintContinuationOutlines(PaintInfo&, const LayoutPoint&);
40 43
41 RenderBlock& m_renderBlock; 44 RenderBlock& m_renderBlock;
42 }; 45 };
43 46
44 } // namespace blink 47 } // namespace blink
45 48
46 #endif // BlockPainter_h 49 #endif // BlockPainter_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/paint/ViewPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698