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

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

Issue 2476923002: [RFC] Move StyleTransformData to ComputedStyle top-level (Closed)
Patch Set: Add export for StyleTransformData Created 4 years 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class CSSTransitionData; 53 class CSSTransitionData;
54 class ShadowList; 54 class ShadowList;
55 class StyleDeprecatedFlexibleBoxData; 55 class StyleDeprecatedFlexibleBoxData;
56 class StyleFilterData; 56 class StyleFilterData;
57 class StyleFlexibleBoxData; 57 class StyleFlexibleBoxData;
58 class StyleGridData; 58 class StyleGridData;
59 class StyleGridItemData; 59 class StyleGridItemData;
60 class StyleMultiColData; 60 class StyleMultiColData;
61 class StyleNonInheritedVariables; 61 class StyleNonInheritedVariables;
62 class StyleReflection; 62 class StyleReflection;
63 class StyleTransformData;
64 class StyleWillChangeData; 63 class StyleWillChangeData;
65 64
66 // Page size type. 65 // Page size type.
67 // StyleRareNonInheritedData::m_pageSize is meaningful only when 66 // StyleRareNonInheritedData::m_pageSize is meaningful only when
68 // StyleRareNonInheritedData::m_pageSizeType is PAGE_SIZE_RESOLVED. 67 // StyleRareNonInheritedData::m_pageSizeType is PAGE_SIZE_RESOLVED.
69 enum PageSizeType { 68 enum PageSizeType {
70 PAGE_SIZE_AUTO, // size: auto 69 PAGE_SIZE_AUTO, // size: auto
71 PAGE_SIZE_AUTO_LANDSCAPE, // size: landscape 70 PAGE_SIZE_AUTO_LANDSCAPE, // size: landscape
72 PAGE_SIZE_AUTO_PORTRAIT, // size: portrait 71 PAGE_SIZE_AUTO_PORTRAIT, // size: portrait
73 PAGE_SIZE_RESOLVED // Size is fully resolved. 72 PAGE_SIZE_RESOLVED // Size is fully resolved.
(...skipping 28 matching lines...) Expand all
102 bool animationDataEquivalent(const StyleRareNonInheritedData&) const; 101 bool animationDataEquivalent(const StyleRareNonInheritedData&) const;
103 bool transitionDataEquivalent(const StyleRareNonInheritedData&) const; 102 bool transitionDataEquivalent(const StyleRareNonInheritedData&) const;
104 bool shapeOutsideDataEquivalent(const StyleRareNonInheritedData&) const; 103 bool shapeOutsideDataEquivalent(const StyleRareNonInheritedData&) const;
105 bool clipPathDataEquivalent(const StyleRareNonInheritedData&) const; 104 bool clipPathDataEquivalent(const StyleRareNonInheritedData&) const;
106 bool hasFilters() const; 105 bool hasFilters() const;
107 bool hasBackdropFilters() const; 106 bool hasBackdropFilters() const;
108 bool hasOpacity() const { return opacity < 1; } 107 bool hasOpacity() const { return opacity < 1; }
109 108
110 float opacity; // Whether or not we're transparent. 109 float opacity; // Whether or not we're transparent.
111 110
112 float m_perspective;
113 float m_shapeImageThreshold; 111 float m_shapeImageThreshold;
114 112
115 int m_order; 113 int m_order;
116 114
117 LengthPoint m_perspectiveOrigin;
118 LengthPoint m_objectPosition; 115 LengthPoint m_objectPosition;
119 116
120 LineClampValue lineClamp; // An Apple extension. 117 LineClampValue lineClamp; // An Apple extension.
121 DraggableRegionMode m_draggableRegionMode; 118 DraggableRegionMode m_draggableRegionMode;
122 119
123 DataRef<StyleDeprecatedFlexibleBoxData> 120 DataRef<StyleDeprecatedFlexibleBoxData>
124 m_deprecatedFlexibleBox; // Flexible box properties 121 m_deprecatedFlexibleBox; // Flexible box properties
125 DataRef<StyleFlexibleBoxData> m_flexibleBox; 122 DataRef<StyleFlexibleBoxData> m_flexibleBox;
126 DataRef<StyleMultiColData> m_multiCol; // CSS3 multicol properties 123 DataRef<StyleMultiColData> m_multiCol; // CSS3 multicol properties
127 DataRef<StyleTransformData>
128 m_transform; // Transform properties (rotate, scale, skew, etc.)
129 DataRef<StyleWillChangeData> m_willChange; // CSS Will Change 124 DataRef<StyleWillChangeData> m_willChange; // CSS Will Change
130 125
131 DataPersistent<StyleFilterData> 126 DataPersistent<StyleFilterData>
132 m_filter; // Filter operations (url, sepia, blur, etc.) 127 m_filter; // Filter operations (url, sepia, blur, etc.)
133 DataPersistent<StyleFilterData> 128 DataPersistent<StyleFilterData>
134 m_backdropFilter; // Backdrop filter operations (url, sepia, blur, etc.) 129 m_backdropFilter; // Backdrop filter operations (url, sepia, blur, etc.)
135 130
136 DataRef<StyleGridData> m_grid; 131 DataRef<StyleGridData> m_grid;
137 DataRef<StyleGridItemData> m_gridItem; 132 DataRef<StyleGridItemData> m_gridItem;
138 DataRef<StyleScrollSnapData> m_scrollSnap; 133 DataRef<StyleScrollSnapData> m_scrollSnap;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 std::unique_ptr<StyleNonInheritedVariables> m_variables; 168 std::unique_ptr<StyleNonInheritedVariables> m_variables;
174 169
175 StyleContentAlignmentData m_alignContent; 170 StyleContentAlignmentData m_alignContent;
176 StyleSelfAlignmentData m_alignItems; 171 StyleSelfAlignmentData m_alignItems;
177 StyleSelfAlignmentData m_alignSelf; 172 StyleSelfAlignmentData m_alignSelf;
178 StyleContentAlignmentData m_justifyContent; 173 StyleContentAlignmentData m_justifyContent;
179 StyleSelfAlignmentData m_justifyItems; 174 StyleSelfAlignmentData m_justifyItems;
180 StyleSelfAlignmentData m_justifySelf; 175 StyleSelfAlignmentData m_justifySelf;
181 176
182 unsigned m_pageSizeType : 2; // PageSizeType 177 unsigned m_pageSizeType : 2; // PageSizeType
183 unsigned m_transformStyle3D : 1; // ETransformStyle3D
184 unsigned m_backfaceVisibility : 1; // EBackfaceVisibility
185 178
186 unsigned userDrag : 2; // EUserDrag 179 unsigned userDrag : 2; // EUserDrag
187 unsigned textOverflow : 1; // Whether or not lines that spill out should be 180 unsigned textOverflow : 1; // Whether or not lines that spill out should be
188 // truncated with "..." 181 // truncated with "..."
189 unsigned marginBeforeCollapse : 2; // EMarginCollapse 182 unsigned marginBeforeCollapse : 2; // EMarginCollapse
190 unsigned marginAfterCollapse : 2; // EMarginCollapse 183 unsigned marginAfterCollapse : 2; // EMarginCollapse
191 unsigned m_appearance : 6; // EAppearance 184 unsigned m_appearance : 6; // EAppearance
192 185
193 unsigned m_textDecorationStyle : 3; // TextDecorationStyle 186 unsigned m_textDecorationStyle : 3; // TextDecorationStyle
194 187
195 unsigned m_hasCurrentOpacityAnimation : 1; 188 unsigned m_hasCurrentOpacityAnimation : 1;
196 unsigned m_hasCurrentTransformAnimation : 1; 189 unsigned m_hasCurrentTransformAnimation : 1;
197 unsigned m_hasCurrentFilterAnimation : 1; 190 unsigned m_hasCurrentFilterAnimation : 1;
198 unsigned m_hasCurrentBackdropFilterAnimation : 1; 191 unsigned m_hasCurrentBackdropFilterAnimation : 1;
199 unsigned m_runningOpacityAnimationOnCompositor : 1; 192 unsigned m_runningOpacityAnimationOnCompositor : 1;
200 unsigned m_runningTransformAnimationOnCompositor : 1; 193 unsigned m_runningTransformAnimationOnCompositor : 1;
201 unsigned m_runningFilterAnimationOnCompositor : 1; 194 unsigned m_runningFilterAnimationOnCompositor : 1;
202 unsigned m_runningBackdropFilterAnimationOnCompositor : 1; 195 unsigned m_runningBackdropFilterAnimationOnCompositor : 1;
203 196
204 unsigned m_isStackingContext : 1;
205
206 unsigned m_effectiveBlendMode : 5; // EBlendMode 197 unsigned m_effectiveBlendMode : 5; // EBlendMode
207 198
208 unsigned m_touchAction : TouchActionBits; // TouchAction 199 unsigned m_touchAction : TouchActionBits; // TouchAction
209 200
210 unsigned m_objectFit : 3; // ObjectFit 201 unsigned m_objectFit : 3; // ObjectFit
211 202
212 unsigned m_isolation : 1; // Isolation 203 unsigned m_isolation : 1; // Isolation
213 204
214 unsigned m_contain : 4; // Containment 205 unsigned m_contain : 4; // Containment
215 206
216 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavior 207 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavior
217 // has a third value (that can only be specified using CSSOM scroll APIs) so 2 208 // has a third value (that can only be specified using CSSOM scroll APIs) so 2
218 // bits are needed. 209 // bits are needed.
219 unsigned m_scrollBehavior : 2; 210 unsigned m_scrollBehavior : 2;
220 211
221 unsigned m_scrollSnapType : 2; // ScrollSnapType 212 unsigned m_scrollSnapType : 2; // ScrollSnapType
222 213
223 // Plugins require accelerated compositing for reasons external to blink. 214 // Plugins require accelerated compositing for reasons external to blink.
224 // In which case, we need to update the ComputedStyle on the 215 // In which case, we need to update the ComputedStyle on the
225 // LayoutEmbeddedObject, so store this bit so that the style actually changes 216 // LayoutEmbeddedObject, so store this bit so that the style actually changes
226 // when the plugin becomes composited. 217 // when the plugin becomes composited.
227 unsigned m_requiresAcceleratedCompositingForExternalReasons : 1; 218 unsigned m_requiresAcceleratedCompositingForExternalReasons : 1;
228 219
229 // Whether the transform (if it exists) is stored in the element's inline
230 // style.
231 unsigned m_hasInlineTransform : 1;
232 unsigned m_resize : 2; // EResize 220 unsigned m_resize : 2; // EResize
233 unsigned m_hasCompositorProxy : 1; 221 unsigned m_hasCompositorProxy : 1;
234 222
235 // Style adjustment for appearance is disabled when certain properties are 223 // Style adjustment for appearance is disabled when certain properties are
236 // set. 224 // set.
237 unsigned m_hasAuthorBackground : 1; // Whether there is a author-defined 225 unsigned m_hasAuthorBackground : 1; // Whether there is a author-defined
238 // background. 226 // background.
239 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border. 227 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border.
240 228
241 private: 229 private:
242 StyleRareNonInheritedData(); 230 StyleRareNonInheritedData();
243 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 231 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
244 }; 232 };
245 233
246 } // namespace blink 234 } // namespace blink
247 235
248 #endif // StyleRareNonInheritedData_h 236 #endif // StyleRareNonInheritedData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StylePath.h ('k') | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698