| 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 LineBoxListPainter_h | 5 #ifndef LineBoxListPainter_h |
| 6 #define LineBoxListPainter_h | 6 #define LineBoxListPainter_h |
| 7 | 7 |
| 8 #include "core/style/ComputedStyleConstants.h" | 8 #include "core/style/ComputedStyleConstants.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class LayoutPoint; | 13 class LayoutPoint; |
| 14 struct PaintInfo; | 14 struct PaintInfo; |
| 15 class LayoutBoxModelObject; | 15 class LayoutBoxModelObject; |
| 16 class LineBoxList; | 16 class LineBoxList; |
| 17 | 17 |
| 18 class LineBoxListPainter { | 18 class LineBoxListPainter { |
| 19 STACK_ALLOCATED(); | 19 STACK_ALLOCATED(); |
| 20 public: | 20 public: |
| 21 LineBoxListPainter(LineBoxList& lineBoxList) : m_lineBoxList(lineBoxList) {
} | 21 LineBoxListPainter(LineBoxList& lineBoxList) : m_lineBoxList(lineBoxList) {
} |
| 22 | 22 |
| 23 void paint(LayoutBoxModelObject*, const PaintInfo&, const LayoutPoint&) cons
t; | 23 void paint(LayoutBoxModelObject*, const PaintInfo&, const LayoutPoint&) cons
t; |
| 24 | 24 |
| 25 void invalidateLineBoxPaintOffsets(const PaintInfo&) const; |
| 26 |
| 25 private: | 27 private: |
| 26 LineBoxList& m_lineBoxList; | 28 LineBoxList& m_lineBoxList; |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 } // namespace blink | 31 } // namespace blink |
| 30 | 32 |
| 31 #endif // LineBoxListPainter_h | 33 #endif // LineBoxListPainter_h |
| OLD | NEW |