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 BoxDecorationData_h | 5 #ifndef BoxDecorationData_h |
6 #define BoxDecorationData_h | 6 #define BoxDecorationData_h |
7 | 7 |
8 #include "core/layout/LayoutBoxModelObject.h" // For BackgroundBleedAvoidance. | 8 #include "core/layout/BackgroundBleedAvoidance.h" |
9 #include "platform/graphics/Color.h" | 9 #include "platform/graphics/Color.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class GraphicsContext; | 13 class GraphicsContext; |
14 class LayoutBox; | 14 class LayoutBox; |
15 | 15 |
16 // Information extracted from ComputedStyle for box painting. | 16 // Information extracted from ComputedStyle for box painting. |
17 struct BoxDecorationData { | 17 struct BoxDecorationData { |
18 STACK_ALLOCATED(); | 18 STACK_ALLOCATED(); |
19 public: | 19 public: |
20 BoxDecorationData(const LayoutBox&); | 20 BoxDecorationData(const LayoutBox&); |
21 | 21 |
22 Color backgroundColor; | 22 Color backgroundColor; |
23 BackgroundBleedAvoidance bleedAvoidance; | 23 BackgroundBleedAvoidance bleedAvoidance; |
24 bool hasBackground; | 24 bool hasBackground; |
25 bool hasBorderDecoration; | 25 bool hasBorderDecoration; |
26 bool hasAppearance; | 26 bool hasAppearance; |
27 | 27 |
28 private: | 28 private: |
29 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&)
; | 29 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&)
; |
30 }; | 30 }; |
31 | 31 |
32 } // namespace blink | 32 } // namespace blink |
33 | 33 |
34 #endif | 34 #endif |
OLD | NEW |