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

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

Issue 550363004: Factor painting code out of RenderBox into a new class called BoxPainter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix debug build. Created 6 years, 3 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
OLDNEW
(Empty)
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.
4
5 #ifndef BoxDecorationData_h
6 #define BoxDecorationData_h
7
8 #include "core/rendering/RenderBoxModelObject.h"
9 #include "platform/graphics/Color.h"
10
11 namespace blink {
12
13 class RenderStyle;
14 class GraphicsContext;
15
16 // Information extracted from RenderStyle for box painting.
17 class BoxDecorationData {
pdr. 2014/09/09 20:45:42 I feel like this is more of a struct than a class.
chrishtr 2014/09/09 22:38:18 Has public and private? I don't really have much o
18 public:
19 BoxDecorationData(const RenderStyle&, bool canRenderBorderImage, bool backgr oundHasOpaqueTopLayer, GraphicsContext*);
20
21 Color backgroundColor;
22 bool hasBackground;
23 bool hasBorder;
24 bool hasAppearance;
25 BackgroundBleedAvoidance bleedAvoidance;
pdr. 2014/09/09 20:45:42 Save 4 bytes with this one weird trick! Backgroun
chrishtr 2014/09/09 22:38:18 Done
26
27 private:
28 BackgroundBleedAvoidance determineBackgroundBleedAvoidance(const RenderStyle &, bool canRenderBorderImage, bool backgroundHasOpaqueTopLayer, GraphicsContext* );
29 bool borderObscuresBackgroundEdge(const RenderStyle&, const FloatSize& conte xtScale) const;
30 };
31
32 } // namespace blink
33
34 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698