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

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

Issue 569683004: Factor painting code from RenderBlock into BlockPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Finish. 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BlockPainter_h
6 #define BlockPainter_h
7
8 #include "core/rendering/RenderBlock.h"
9
10 namespace blink {
11
12 struct PaintInfo;
13 class LayoutPoint;
14
15 class BlockPainter {
16 public:
17 BlockPainter(RenderBlock& block) : m_renderBlock(block) { }
Stephen Chennney 2014/09/15 20:18:05 Nit: New line after constructor?
chrishtr 2014/09/15 20:52:08 Done.
18 void paint(PaintInfo&, const LayoutPoint& paintOffset);
19 void paintObject(PaintInfo&, const LayoutPoint&);
20
21 private:
22 LayoutRect overflowRectForPaintRejection() const;
23 bool hasCaret() const;
24 void paintCarets(PaintInfo&, const LayoutPoint&);
25 void paintContents(PaintInfo&, const LayoutPoint&);
26 void paintColumnContents(PaintInfo&, const LayoutPoint&, bool paintFloats = false);
27 void paintColumnRules(PaintInfo&, const LayoutPoint&);
28
29 RenderBlock& m_renderBlock;
30 };
31
32 } // namespace blink
33
34 #endif // BlockPainter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698