| 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 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 void paintAllChildPhasesAtomically(const LayoutBox&, | 35 void paintAllChildPhasesAtomically(const LayoutBox&, |
| 36 const PaintInfo&, | 36 const PaintInfo&, |
| 37 const LayoutPoint&); | 37 const LayoutPoint&); |
| 38 static void paintChildrenOfFlexibleBox(const LayoutFlexibleBox&, | 38 static void paintChildrenOfFlexibleBox(const LayoutFlexibleBox&, |
| 39 const PaintInfo&, | 39 const PaintInfo&, |
| 40 const LayoutPoint& paintOffset); | 40 const LayoutPoint& paintOffset); |
| 41 static void paintInlineBox(const InlineBox&, | 41 static void paintInlineBox(const InlineBox&, |
| 42 const PaintInfo&, | 42 const PaintInfo&, |
| 43 const LayoutPoint& paintOffset); | 43 const LayoutPoint& paintOffset); |
| 44 | 44 |
| 45 // The adjustedPaintOffset should include the location (offset) of the object
itself. | 45 // The adjustedPaintOffset should include the location (offset) of the object |
| 46 // itself. |
| 46 bool intersectsPaintRect(const PaintInfo&, | 47 bool intersectsPaintRect(const PaintInfo&, |
| 47 const LayoutPoint& adjustedPaintOffset) const; | 48 const LayoutPoint& adjustedPaintOffset) const; |
| 48 | 49 |
| 49 private: | 50 private: |
| 50 void paintCarets(const PaintInfo&, const LayoutPoint&); | 51 void paintCarets(const PaintInfo&, const LayoutPoint&); |
| 51 | 52 |
| 52 const LayoutBlock& m_layoutBlock; | 53 const LayoutBlock& m_layoutBlock; |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace blink | 56 } // namespace blink |
| 56 | 57 |
| 57 #endif // BlockPainter_h | 58 #endif // BlockPainter_h |
| OLD | NEW |