Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |