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

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

Issue 1070143002: [Alignment] Single class for holding the alignment data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjusting the StyleRareNonIheritedData class size. 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
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 18 matching lines...) Expand all
29 #include "core/layout/ClipPathOperation.h" 29 #include "core/layout/ClipPathOperation.h"
30 #include "core/style/BasicShapes.h" 30 #include "core/style/BasicShapes.h"
31 #include "core/style/CounterDirectives.h" 31 #include "core/style/CounterDirectives.h"
32 #include "core/style/CursorData.h" 32 #include "core/style/CursorData.h"
33 #include "core/style/DataRef.h" 33 #include "core/style/DataRef.h"
34 #include "core/style/FillLayer.h" 34 #include "core/style/FillLayer.h"
35 #include "core/style/ComputedStyleConstants.h" 35 #include "core/style/ComputedStyleConstants.h"
36 #include "core/style/LineClampValue.h" 36 #include "core/style/LineClampValue.h"
37 #include "core/style/NinePieceImage.h" 37 #include "core/style/NinePieceImage.h"
38 #include "core/style/ShapeValue.h" 38 #include "core/style/ShapeValue.h"
39 #include "core/style/StyleContentAlignmentData.h"
40 #include "core/style/StyleSelfAlignmentData.h"
39 #include "platform/LengthPoint.h" 41 #include "platform/LengthPoint.h"
40 #include "wtf/OwnPtr.h" 42 #include "wtf/OwnPtr.h"
41 #include "wtf/PassRefPtr.h" 43 #include "wtf/PassRefPtr.h"
42 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
43 45
44 namespace blink { 46 namespace blink {
45 47
46 class ContentData; 48 class ContentData;
47 class CSSAnimationData; 49 class CSSAnimationData;
48 class CSSTransitionData; 50 class CSSTransitionData;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 StyleColor m_visitedLinkTextDecorationColor; 139 StyleColor m_visitedLinkTextDecorationColor;
138 StyleColor m_visitedLinkBackgroundColor; 140 StyleColor m_visitedLinkBackgroundColor;
139 StyleColor m_visitedLinkOutlineColor; 141 StyleColor m_visitedLinkOutlineColor;
140 StyleColor m_visitedLinkBorderLeftColor; 142 StyleColor m_visitedLinkBorderLeftColor;
141 StyleColor m_visitedLinkBorderRightColor; 143 StyleColor m_visitedLinkBorderRightColor;
142 StyleColor m_visitedLinkBorderTopColor; 144 StyleColor m_visitedLinkBorderTopColor;
143 StyleColor m_visitedLinkBorderBottomColor; 145 StyleColor m_visitedLinkBorderBottomColor;
144 146
145 Vector<String> m_callbackSelectors; 147 Vector<String> m_callbackSelectors;
146 148
149 StyleContentAlignmentData m_alignContent;
150 StyleSelfAlignmentData m_alignItems;
151 StyleSelfAlignmentData m_alignSelf;
152 StyleContentAlignmentData m_justifyContent;
153 StyleSelfAlignmentData m_justifyItems;
154 StyleSelfAlignmentData m_justifySelf;
155
147 unsigned m_pageSizeType : 2; // PageSizeType 156 unsigned m_pageSizeType : 2; // PageSizeType
148 unsigned m_transformStyle3D : 1; // ETransformStyle3D 157 unsigned m_transformStyle3D : 1; // ETransformStyle3D
149 unsigned m_backfaceVisibility : 1; // EBackfaceVisibility 158 unsigned m_backfaceVisibility : 1; // EBackfaceVisibility
150 159
151 unsigned m_alignContent : 4; // ContentPosition
152 unsigned m_alignContentDistribution : 3; // ContentDistributionType
153 unsigned m_alignContentOverflowAlignment : 2; // OverflowAlignment
154 unsigned m_alignItems : 4; // ItemPosition
155 unsigned m_alignItemsOverflowAlignment : 2; // OverflowAlignment
156 unsigned m_alignSelf : 4; // ItemPosition
157 unsigned m_alignSelfOverflowAlignment : 2; // OverflowAlignment
158 unsigned m_justifyContent : 4; // ContentPosition
159 unsigned m_justifyContentDistribution : 3; // ContentDistributionType
160 unsigned m_justifyContentOverflowAlignment : 2; // OverflowAlignment
161
162 unsigned userDrag : 2; // EUserDrag 160 unsigned userDrag : 2; // EUserDrag
163 unsigned textOverflow : 1; // Whether or not lines that spill out should be truncated with "..." 161 unsigned textOverflow : 1; // Whether or not lines that spill out should be truncated with "..."
164 unsigned marginBeforeCollapse : 2; // EMarginCollapse 162 unsigned marginBeforeCollapse : 2; // EMarginCollapse
165 unsigned marginAfterCollapse : 2; // EMarginCollapse 163 unsigned marginAfterCollapse : 2; // EMarginCollapse
166 unsigned m_appearance : 6; // EAppearance 164 unsigned m_appearance : 6; // EAppearance
167 unsigned m_textCombine : 1; // CSS3 text-combine properties 165 unsigned m_textCombine : 1; // CSS3 text-combine properties
168 166
169 unsigned m_textDecorationStyle : 3; // TextDecorationStyle 167 unsigned m_textDecorationStyle : 3; // TextDecorationStyle
170 unsigned m_wrapFlow: 3; // WrapFlow 168 unsigned m_wrapFlow: 3; // WrapFlow
171 unsigned m_wrapThrough: 1; // WrapThrough 169 unsigned m_wrapThrough: 1; // WrapThrough
172 170
173 unsigned m_hasCurrentOpacityAnimation : 1; 171 unsigned m_hasCurrentOpacityAnimation : 1;
174 unsigned m_hasCurrentTransformAnimation : 1; 172 unsigned m_hasCurrentTransformAnimation : 1;
175 unsigned m_hasCurrentFilterAnimation : 1; 173 unsigned m_hasCurrentFilterAnimation : 1;
176 unsigned m_runningOpacityAnimationOnCompositor : 1; 174 unsigned m_runningOpacityAnimationOnCompositor : 1;
177 unsigned m_runningTransformAnimationOnCompositor : 1; 175 unsigned m_runningTransformAnimationOnCompositor : 1;
178 unsigned m_runningFilterAnimationOnCompositor : 1; 176 unsigned m_runningFilterAnimationOnCompositor : 1;
179 177
180 unsigned m_effectiveBlendMode: 5; // EBlendMode 178 unsigned m_effectiveBlendMode: 5; // EBlendMode
181 179
182 unsigned m_touchAction : TouchActionBits; // TouchAction 180 unsigned m_touchAction : TouchActionBits; // TouchAction
183 181
184 unsigned m_objectFit : 3; // ObjectFit 182 unsigned m_objectFit : 3; // ObjectFit
185 183
186 unsigned m_isolation : 1; // Isolation 184 unsigned m_isolation : 1; // Isolation
187 185
188 unsigned m_justifyItems : 4; // ItemPosition
189 unsigned m_justifyItemsOverflowAlignment : 2; // OverflowAlignment
190 unsigned m_justifyItemsPositionType: 1; // Whether or not alignment uses the 'legacy' keyword.
191
192 unsigned m_justifySelf : 4; // ItemPosition
193 unsigned m_justifySelfOverflowAlignment : 2; // OverflowAlignment
194
195 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavi or has a third 186 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavi or has a third
196 // value (that can only be specified using CSSOM scroll APIs) so 2 bits are needed. 187 // value (that can only be specified using CSSOM scroll APIs) so 2 bits are needed.
197 unsigned m_scrollBehavior: 2; 188 unsigned m_scrollBehavior: 2;
198 189
199 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn 190 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn
200 191
201 // Plugins require accelerated compositing for reasons external to blink. 192 // Plugins require accelerated compositing for reasons external to blink.
202 // In which case, we need to update the ComputedStyle on the LayoutEmbeddedO bject, 193 // In which case, we need to update the ComputedStyle on the LayoutEmbeddedO bject,
203 // so store this bit so that the style actually changes when the plugin 194 // so store this bit so that the style actually changes when the plugin
204 // becomes composited. 195 // becomes composited.
205 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1; 196 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1;
206 197
207 // Whether the transform (if it exists) is stored in the element's inline st yle. 198 // Whether the transform (if it exists) is stored in the element's inline st yle.
208 unsigned m_hasInlineTransform : 1; 199 unsigned m_hasInlineTransform : 1;
209 unsigned m_resize : 2; // EResize 200 unsigned m_resize : 2; // EResize
210 unsigned m_hasCompositorProxy : 1; 201 unsigned m_hasCompositorProxy : 1;
211 202
212 private: 203 private:
213 StyleRareNonInheritedData(); 204 StyleRareNonInheritedData();
214 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 205 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
215 }; 206 };
216 207
217 } // namespace blink 208 } // namespace blink
218 209
219 #endif // StyleRareNonInheritedData_h 210 #endif // StyleRareNonInheritedData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698