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"
13 class GraphicsContext
;
16 // Information extracted from ComputedStyle for box painting.
17 struct BoxDecorationData
{
20 BoxDecorationData(const LayoutBox
&);
22 Color backgroundColor
;
23 BackgroundBleedAvoidance bleedAvoidance
;
25 bool hasBorderDecoration
;
29 BackgroundBleedAvoidance
determineBackgroundBleedAvoidance(const LayoutBox
&);