OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 NGBlockFlowPainter_h |
| 6 #define NGBlockFlowPainter_h |
| 7 |
| 8 #include "platform/wtf/Allocator.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class LayoutPoint; |
| 13 struct PaintInfo; |
| 14 class LayoutNGBlockFlow; |
| 15 class NGPhysicalBoxFragment; |
| 16 |
| 17 class NGBlockFlowPainter { |
| 18 STACK_ALLOCATED(); |
| 19 |
| 20 public: |
| 21 NGBlockFlowPainter(const LayoutNGBlockFlow& layout_ng_block_flow) |
| 22 : layout_ng_block_flow_(layout_ng_block_flow) {} |
| 23 void PaintContents(const PaintInfo&, const LayoutPoint&); |
| 24 |
| 25 private: |
| 26 void PaintNGBox(const NGPhysicalBoxFragment*, |
| 27 const PaintInfo&, |
| 28 const LayoutPoint&); |
| 29 |
| 30 const LayoutNGBlockFlow& layout_ng_block_flow_; |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif // NGBlockFlowPainter_h |
OLD | NEW |