| 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 19 matching lines...) Expand all Loading... |
| 30 void paintChildAsInlineBlock(LayoutBox&, const PaintInfo&, const LayoutPoint
&); | 30 void paintChildAsInlineBlock(LayoutBox&, const PaintInfo&, const LayoutPoint
&); |
| 31 void paintOverflowControlsIfNeeded(const PaintInfo&, const LayoutPoint&); | 31 void paintOverflowControlsIfNeeded(const PaintInfo&, const LayoutPoint&); |
| 32 | 32 |
| 33 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements | 33 // inline-block elements paint all phases atomically. This function ensures
that. Certain other elements |
| 34 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. | 34 // (grid items, flex items) require this behavior as well, and this function
exists as a helper for them. |
| 35 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. | 35 // It is expected that the caller will call this function independent of the
value of paintInfo.phase. |
| 36 static void paintAsInlineBlock(LayoutObject&, const PaintInfo&, const Layout
Point&); | 36 static void paintAsInlineBlock(LayoutObject&, const PaintInfo&, const Layout
Point&); |
| 37 static void paintChildrenOfFlexibleBox(LayoutFlexibleBox&, const PaintInfo&,
const LayoutPoint& paintOffset); | 37 static void paintChildrenOfFlexibleBox(LayoutFlexibleBox&, const PaintInfo&,
const LayoutPoint& paintOffset); |
| 38 static void paintInlineBox(InlineBox&, const PaintInfo&, const LayoutPoint&
paintOffset); | 38 static void paintInlineBox(InlineBox&, const PaintInfo&, const LayoutPoint&
paintOffset); |
| 39 | 39 |
| 40 bool intersectsPaintRect(const PaintInfo&, const LayoutPoint& paintOffset) c
onst; |
| 41 |
| 40 private: | 42 private: |
| 41 LayoutRect overflowRectForPaintRejection() const; | |
| 42 bool hasCaret() const; | 43 bool hasCaret() const; |
| 43 void paintCarets(const PaintInfo&, const LayoutPoint&); | 44 void paintCarets(const PaintInfo&, const LayoutPoint&); |
| 44 void paintContents(const PaintInfo&, const LayoutPoint&); | 45 void paintContents(const PaintInfo&, const LayoutPoint&); |
| 45 | 46 |
| 46 LayoutBlock& m_layoutBlock; | 47 LayoutBlock& m_layoutBlock; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace blink | 50 } // namespace blink |
| 50 | 51 |
| 51 #endif // BlockPainter_h | 52 #endif // BlockPainter_h |
| OLD | NEW |