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

Side by Side Diff: Source/core/style/FillLayer.h

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/style/DataRef.h ('k') | Source/core/style/GridCoordinate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 13 matching lines...) Expand all
24 24
25 #ifndef FillLayer_h 25 #ifndef FillLayer_h
26 #define FillLayer_h 26 #define FillLayer_h
27 27
28 #include "core/CoreExport.h" 28 #include "core/CoreExport.h"
29 #include "core/style/ComputedStyleConstants.h" 29 #include "core/style/ComputedStyleConstants.h"
30 #include "core/style/StyleImage.h" 30 #include "core/style/StyleImage.h"
31 #include "platform/Length.h" 31 #include "platform/Length.h"
32 #include "platform/LengthSize.h" 32 #include "platform/LengthSize.h"
33 #include "platform/graphics/GraphicsTypes.h" 33 #include "platform/graphics/GraphicsTypes.h"
34 #include "wtf/Allocator.h"
34 #include "wtf/RefPtr.h" 35 #include "wtf/RefPtr.h"
35 36
36 namespace blink { 37 namespace blink {
37 38
38 struct FillSize { 39 struct FillSize {
40 STACK_ALLOCATED();
39 FillSize() 41 FillSize()
40 : type(SizeLength) 42 : type(SizeLength)
41 { 43 {
42 } 44 }
43 45
44 FillSize(EFillSizeType t, const LengthSize& l) 46 FillSize(EFillSizeType t, const LengthSize& l)
45 : type(t) 47 : type(t)
46 , size(l) 48 , size(l)
47 { 49 {
48 } 50 }
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 248
247 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer 249 mutable unsigned m_thisOrNextLayersClipMax : 2; // EFillBox, maximum m_clip value from this to bottom layer
248 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin. 250 mutable unsigned m_thisOrNextLayersUseContentBox : 1; // True if any of this or subsequent layers has content-box clip or origin.
249 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment. 251 mutable unsigned m_thisOrNextLayersHaveLocalAttachment : 1; // True if any o f this or subsequent layers has local attachment.
250 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter. 252 mutable unsigned m_cachedPropertiesComputed : 1; // Set once any of the abov e is accessed. The layers will be frozen thereafter.
251 }; 253 };
252 254
253 } // namespace blink 255 } // namespace blink
254 256
255 #endif // FillLayer_h 257 #endif // FillLayer_h
OLDNEW
« no previous file with comments | « Source/core/style/DataRef.h ('k') | Source/core/style/GridCoordinate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698