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

Side by Side Diff: Source/core/style/StyleDifference.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/StyleContentAlignmentData.h ('k') | Source/core/style/StyleMotionData.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 // 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 StyleDifference_h 5 #ifndef StyleDifference_h
6 #define StyleDifference_h 6 #define StyleDifference_h
7 7
8 #include "wtf/Allocator.h"
8 #include "wtf/Assertions.h" 9 #include "wtf/Assertions.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class StyleDifference { 13 class StyleDifference {
14 STACK_ALLOCATED();
13 public: 15 public:
14 enum PropertyDifference { 16 enum PropertyDifference {
15 TransformChanged = 1 << 0, 17 TransformChanged = 1 << 0,
16 OpacityChanged = 1 << 1, 18 OpacityChanged = 1 << 1,
17 ZIndexChanged = 1 << 2, 19 ZIndexChanged = 1 << 2,
18 FilterChanged = 1 << 3, 20 FilterChanged = 1 << 3,
19 BackdropFilterChanged = 1 << 4, 21 BackdropFilterChanged = 1 << 4,
20 // The object needs to issue paint invalidations if it contains text or properties dependent on color (e.g., border or outline). 22 // The object needs to issue paint invalidations if it contains text or properties dependent on color (e.g., border or outline).
21 TextOrColorChanged = 1 << 5, 23 TextOrColorChanged = 1 << 5,
22 // If you add a value here, be sure to update the number of bits on m_pr opertySpecificDifferences. 24 // If you add a value here, be sure to update the number of bits on m_pr opertySpecificDifferences.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 FullLayout 98 FullLayout
97 }; 99 };
98 unsigned m_layoutType : 2; 100 unsigned m_layoutType : 2;
99 101
100 unsigned m_propertySpecificDifferences : 6; 102 unsigned m_propertySpecificDifferences : 6;
101 }; 103 };
102 104
103 } // namespace blink 105 } // namespace blink
104 106
105 #endif // StyleDifference_h 107 #endif // StyleDifference_h
OLDNEW
« no previous file with comments | « Source/core/style/StyleContentAlignmentData.h ('k') | Source/core/style/StyleMotionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698