| 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 BoxPainter_h | 5 #ifndef BoxPainter_h |
| 6 #define BoxPainter_h | 6 #define BoxPainter_h |
| 7 | 7 |
| 8 #include "core/layout/BackgroundBleedAvoidance.h" | 8 #include "core/layout/BackgroundBleedAvoidance.h" |
| 9 #include "core/style/ShadowData.h" | 9 #include "core/style/ShadowData.h" |
| 10 #include "platform/geometry/LayoutSize.h" | 10 #include "platform/geometry/LayoutSize.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 class LayoutBox; | 27 class LayoutBox; |
| 28 class LayoutObject; | 28 class LayoutObject; |
| 29 | 29 |
| 30 class BoxPainter { | 30 class BoxPainter { |
| 31 STACK_ALLOCATED(); | 31 STACK_ALLOCATED(); |
| 32 | 32 |
| 33 public: | 33 public: |
| 34 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) {} | 34 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) {} |
| 35 void paint(const PaintInfo&, const LayoutPoint&); | 35 void paint(const PaintInfo&, const LayoutPoint&); |
| 36 | 36 |
| 37 void paintChildren(const PaintInfo&, const LayoutPoint&); |
| 37 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); | 38 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); |
| 38 void paintMask(const PaintInfo&, const LayoutPoint&); | 39 void paintMask(const PaintInfo&, const LayoutPoint&); |
| 39 void paintClippingMask(const PaintInfo&, const LayoutPoint&); | 40 void paintClippingMask(const PaintInfo&, const LayoutPoint&); |
| 40 | 41 |
| 41 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; | 42 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; |
| 42 // Returns true if the result fill layers have non-associative blending or | 43 // Returns true if the result fill layers have non-associative blending or |
| 43 // compositing mode. (i.e. The rendering will be different without creating | 44 // compositing mode. (i.e. The rendering will be different without creating |
| 44 // isolation group by context.saveLayer().) Note that the output list will be | 45 // isolation group by context.saveLayer().) Note that the output list will be |
| 45 // in top-bottom order. | 46 // in top-bottom order. |
| 46 bool calculateFillLayerOcclusionCulling( | 47 bool calculateFillLayerOcclusionCulling( |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 const LayoutRect&, | 107 const LayoutRect&, |
| 107 const Color& backgroundColor, | 108 const Color& backgroundColor, |
| 108 BackgroundBleedAvoidance = BackgroundBleedNone); | 109 BackgroundBleedAvoidance = BackgroundBleedNone); |
| 109 | 110 |
| 110 const LayoutBox& m_layoutBox; | 111 const LayoutBox& m_layoutBox; |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 } // namespace blink | 114 } // namespace blink |
| 114 | 115 |
| 115 #endif | 116 #endif |
| OLD | NEW |