Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / paint / BoxDecorationData.h
blob5c2560ea54d2ae81d550dc451a4b578ca9b6a435
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
3 // found in the LICENSE file.
5 #ifndef BoxDecorationData_h
6 #define BoxDecorationData_h
8 #include "core/layout/LayoutBoxModelObject.h" // For BackgroundBleedAvoidance.
9 #include "platform/graphics/Color.h"
11 namespace blink {
13 class GraphicsContext;
14 class LayoutBox;
16 // Information extracted from ComputedStyle for box painting.
17 struct BoxDecorationData {
18 STACK_ALLOCATED();
19 public:
20 BoxDecorationData(const LayoutBox&);
22 Color backgroundColor;
23 BackgroundBleedAvoidance bleedAvoidance;
24 bool hasBackground;
25 bool hasBorderDecoration;
26 bool hasAppearance;
28 private:
29 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&);
32 } // namespace blink
34 #endif