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/BackgroundBleedAvoidance.h" |
9 #include "core/paint/ObjectPainter.h" | |
10 #include "core/style/ShadowData.h" | 9 #include "core/style/ShadowData.h" |
| 10 #include "platform/geometry/LayoutSize.h" |
| 11 #include "platform/graphics/GraphicsTypes.h" |
| 12 #include "third_party/skia/include/core/SkXfermode.h" |
11 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
12 | 14 |
13 namespace blink { | 15 namespace blink { |
14 | 16 |
15 class BackgroundImageGeometry; | 17 class BackgroundImageGeometry; |
| 18 class ComputedStyle; |
| 19 class FillLayer; |
16 class FloatRoundedRect; | 20 class FloatRoundedRect; |
| 21 class GraphicsContext; |
| 22 class Image; |
| 23 class InlineFlowBox; |
17 class LayoutPoint; | 24 class LayoutPoint; |
| 25 class LayoutRect; |
| 26 class LayoutBoxModelObject; |
| 27 class NinePieceImage; |
18 struct PaintInfo; | 28 struct PaintInfo; |
19 class LayoutBox; | 29 class LayoutBox; |
20 class LayoutObject; | 30 class LayoutObject; |
21 | 31 |
22 class BoxPainter { | 32 class BoxPainter { |
23 STACK_ALLOCATED(); | 33 STACK_ALLOCATED(); |
24 public: | 34 public: |
25 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) { } | 35 BoxPainter(const LayoutBox& layoutBox) : m_layoutBox(layoutBox) { } |
26 void paint(const PaintInfo&, const LayoutPoint&); | 36 void paint(const PaintInfo&, const LayoutPoint&); |
27 | 37 |
(...skipping 24 matching lines...) Expand all Loading... |
52 | 62 |
53 private: | 63 private: |
54 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg
roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); | 64 void paintBackground(const PaintInfo&, const LayoutRect&, const Color& backg
roundColor, BackgroundBleedAvoidance = BackgroundBleedNone); |
55 | 65 |
56 const LayoutBox& m_layoutBox; | 66 const LayoutBox& m_layoutBox; |
57 }; | 67 }; |
58 | 68 |
59 } // namespace blink | 69 } // namespace blink |
60 | 70 |
61 #endif | 71 #endif |
OLD | NEW |