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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/TouchAdjustment.cpp ('k') | Source/core/paint/BoxDecorationData.cpp » ('j') | 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/LayoutBoxModelObject.h" // For BackgroundBleedAvoidance.
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 LayoutStyle for box painting. 16 // Information extracted from ComputedStyle for box painting.
17 class BoxDecorationData { 17 class BoxDecorationData {
18 public: 18 public:
19 BoxDecorationData(const LayoutBox&, GraphicsContext*); 19 BoxDecorationData(const LayoutBox&, GraphicsContext*);
20 20
21 Color backgroundColor; 21 Color backgroundColor;
22 bool hasBackground; 22 bool hasBackground;
23 bool hasBorder; 23 bool hasBorder;
24 bool hasAppearance; 24 bool hasAppearance;
25 BackgroundBleedAvoidance bleedAvoidance() { return static_cast<BackgroundBle edAvoidance>(m_bleedAvoidance); } 25 BackgroundBleedAvoidance bleedAvoidance() { return static_cast<BackgroundBle edAvoidance>(m_bleedAvoidance); }
26 26
27 private: 27 private:
28 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&, GraphicsContext*); 28 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const LayoutBox&, GraphicsContext*);
29 bool borderObscuresBackgroundEdge(const LayoutStyle&, const FloatSize& conte xtScale) const; 29 bool borderObscuresBackgroundEdge(const ComputedStyle&, const FloatSize& con textScale) const;
30 unsigned m_bleedAvoidance : 2; // BackgroundBleedAvoidance 30 unsigned m_bleedAvoidance : 2; // BackgroundBleedAvoidance
31 }; 31 };
32 32
33 } // namespace blink 33 } // namespace blink
34 34
35 #endif 35 #endif
OLDNEW
« no previous file with comments | « Source/core/page/TouchAdjustment.cpp ('k') | Source/core/paint/BoxDecorationData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698