Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: third_party/WebKit/Source/core/paint/BoxDecorationData.h

Issue 2007673004: Move BackgroundBleedAvoidance definition to a separate file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698