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

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

Powered by Google App Engine
This is Rietveld 408576698