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/BackgroundBleedAvoidance.h" | 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; | |
14 class LayoutBox; | 13 class LayoutBox; |
15 | 14 |
16 // Information extracted from ComputedStyle for box painting. | 15 // Information extracted from ComputedStyle for box painting. |
17 struct BoxDecorationData { | 16 struct BoxDecorationData { |
18 STACK_ALLOCATED(); | 17 STACK_ALLOCATED(); |
19 | 18 |
20 public: | 19 public: |
21 BoxDecorationData(const LayoutBox&); | 20 BoxDecorationData(const LayoutBox&); |
22 | 21 |
23 Color backgroundColor; | 22 Color backgroundColor; |
24 BackgroundBleedAvoidance bleedAvoidance; | 23 BackgroundBleedAvoidance bleedAvoidance; |
25 bool hasBackground; | 24 bool hasBackground; |
26 bool hasBorderDecoration; | 25 bool hasBorderDecoration; |
27 bool hasAppearance; | 26 bool hasAppearance; |
28 | 27 |
29 private: | 28 private: |
30 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&); | 29 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&); |
31 }; | 30 }; |
32 | 31 |
33 } // namespace blink | 32 } // namespace blink |
34 | 33 |
35 #endif | 34 #endif |
OLD | NEW |