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 #include "wtf/Allocator.h" | 8 #include "wtf/Allocator.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 struct PaintInfo; | 12 struct PaintInfo; |
13 class InlineBox; | 13 class InlineBox; |
14 class LayoutBlock; | 14 class LayoutBlock; |
15 class LayoutBox; | 15 class LayoutBox; |
16 class LayoutFlexibleBox; | 16 class LayoutFlexibleBox; |
17 class LayoutObject; | |
18 class LayoutPoint; | 17 class LayoutPoint; |
19 class LayoutRect; | |
20 | 18 |
21 class BlockPainter { | 19 class BlockPainter { |
22 STACK_ALLOCATED(); | 20 STACK_ALLOCATED(); |
23 | 21 |
24 public: | 22 public: |
25 BlockPainter(const LayoutBlock& block) : m_layoutBlock(block) {} | 23 BlockPainter(const LayoutBlock& block) : m_layoutBlock(block) {} |
26 | 24 |
27 void paint(const PaintInfo&, const LayoutPoint& paintOffset); | 25 void paint(const PaintInfo&, const LayoutPoint& paintOffset); |
28 void paintObject(const PaintInfo&, const LayoutPoint&); | 26 void paintObject(const PaintInfo&, const LayoutPoint&); |
29 void paintContents(const PaintInfo&, const LayoutPoint&); | 27 void paintContents(const PaintInfo&, const LayoutPoint&); |
(...skipping 19 matching lines...) Expand all Loading... |
49 | 47 |
50 private: | 48 private: |
51 void paintCarets(const PaintInfo&, const LayoutPoint&); | 49 void paintCarets(const PaintInfo&, const LayoutPoint&); |
52 | 50 |
53 const LayoutBlock& m_layoutBlock; | 51 const LayoutBlock& m_layoutBlock; |
54 }; | 52 }; |
55 | 53 |
56 } // namespace blink | 54 } // namespace blink |
57 | 55 |
58 #endif // BlockPainter_h | 56 #endif // BlockPainter_h |
OLD | NEW |