OLD | NEW |
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 namespace blink { | 8 namespace blink { |
9 | 9 |
10 struct PaintInfo; | 10 struct PaintInfo; |
(...skipping 21 matching lines...) Expand all Loading... |
32 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 32 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
33 static void paintAsInlineBlock(LayoutObject&, const PaintInfo&, const Layout
Point&); | 33 static void paintAsInlineBlock(LayoutObject&, const PaintInfo&, const Layout
Point&); |
34 static void paintChildrenOfFlexibleBox(LayoutFlexibleBox&, const PaintInfo&,
const LayoutPoint& paintOffset); | 34 static void paintChildrenOfFlexibleBox(LayoutFlexibleBox&, const PaintInfo&,
const LayoutPoint& paintOffset); |
35 static void paintInlineBox(InlineBox&, const PaintInfo&, const LayoutPoint&
paintOffset); | 35 static void paintInlineBox(InlineBox&, const PaintInfo&, const LayoutPoint&
paintOffset); |
36 | 36 |
37 private: | 37 private: |
38 LayoutRect overflowRectForPaintRejection() const; | 38 LayoutRect overflowRectForPaintRejection() const; |
39 bool hasCaret() const; | 39 bool hasCaret() const; |
40 void paintCarets(const PaintInfo&, const LayoutPoint&); | 40 void paintCarets(const PaintInfo&, const LayoutPoint&); |
41 void paintContents(const PaintInfo&, const LayoutPoint&); | 41 void paintContents(const PaintInfo&, const LayoutPoint&); |
42 void paintColumnContents(const PaintInfo&, const LayoutPoint&, bool paintFlo
ats = false); | |
43 void paintColumnRules(const PaintInfo&, const LayoutPoint&); | |
44 void paintSelection(const PaintInfo&, const LayoutPoint&); | 42 void paintSelection(const PaintInfo&, const LayoutPoint&); |
45 void paintContinuationOutlines(const PaintInfo&, const LayoutPoint&); | 43 void paintContinuationOutlines(const PaintInfo&, const LayoutPoint&); |
46 | 44 |
47 LayoutBlock& m_layoutBlock; | 45 LayoutBlock& m_layoutBlock; |
48 }; | 46 }; |
49 | 47 |
50 } // namespace blink | 48 } // namespace blink |
51 | 49 |
52 #endif // BlockPainter_h | 50 #endif // BlockPainter_h |
OLD | NEW |