| 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/LayoutBoxModelObject.h" | 8 #include "core/layout/LayoutBoxModelObject.h" |
| 9 #include "core/paint/ObjectPainter.h" | 9 #include "core/paint/ObjectPainter.h" |
| 10 #include "wtf/Allocator.h" |
| 10 | 11 |
| 11 namespace blink { | 12 namespace blink { |
| 12 | 13 |
| 13 class BackgroundImageGeometry; | 14 class BackgroundImageGeometry; |
| 14 class FloatRoundedRect; | 15 class FloatRoundedRect; |
| 15 class LayoutPoint; | 16 class LayoutPoint; |
| 16 struct PaintInfo; | 17 struct PaintInfo; |
| 17 class LayoutBox; | 18 class LayoutBox; |
| 18 class LayoutObject; | 19 class LayoutObject; |
| 19 | 20 |
| 20 class BoxPainter { | 21 class BoxPainter { |
| 22 STACK_ALLOCATED(); |
| 21 public: | 23 public: |
| 22 BoxPainter(LayoutBox& layoutBox) : m_layoutBox(layoutBox) { } | 24 BoxPainter(LayoutBox& layoutBox) : m_layoutBox(layoutBox) { } |
| 23 void paint(const PaintInfo&, const LayoutPoint&); | 25 void paint(const PaintInfo&, const LayoutPoint&); |
| 24 | 26 |
| 25 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); | 27 void paintBoxDecorationBackground(const PaintInfo&, const LayoutPoint&); |
| 26 void paintMask(const PaintInfo&, const LayoutPoint&); | 28 void paintMask(const PaintInfo&, const LayoutPoint&); |
| 27 void paintClippingMask(const PaintInfo&, const LayoutPoint&); | 29 void paintClippingMask(const PaintInfo&, const LayoutPoint&); |
| 28 | 30 |
| 29 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; | 31 typedef Vector<const FillLayer*, 8> FillLayerOcclusionOutputList; |
| 30 // Returns true if the result fill layers have non-associative blending or c
ompositing mode. | 32 // Returns true if the result fill layers have non-associative blending or c
ompositing mode. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 54 | 56 |
| 55 LayoutRect boundsForDrawingRecorder(const LayoutPoint& paintOffset); | 57 LayoutRect boundsForDrawingRecorder(const LayoutPoint& paintOffset); |
| 56 | 58 |
| 57 // FIXME: this should be const. | 59 // FIXME: this should be const. |
| 58 LayoutBox& m_layoutBox; | 60 LayoutBox& m_layoutBox; |
| 59 }; | 61 }; |
| 60 | 62 |
| 61 } // namespace blink | 63 } // namespace blink |
| 62 | 64 |
| 63 #endif | 65 #endif |
| OLD | NEW |