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

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

Issue 1148873005: Parsing CSS properties for scroll snap points (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comment Created 5 years, 6 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 20 matching lines...) Expand all
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" 40 #include "core/style/StyleContentAlignmentData.h"
41 #include "core/style/StyleScrollSnapData.h"
41 #include "core/style/StyleSelfAlignmentData.h" 42 #include "core/style/StyleSelfAlignmentData.h"
42 #include "platform/LengthPoint.h" 43 #include "platform/LengthPoint.h"
43 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
44 #include "wtf/PassRefPtr.h" 45 #include "wtf/PassRefPtr.h"
45 #include "wtf/Vector.h" 46 #include "wtf/Vector.h"
46 47
47 namespace blink { 48 namespace blink {
48 49
49 class ContentData; 50 class ContentData;
50 class CSSAnimationData; 51 class CSSAnimationData;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 DataRef<StyleDeprecatedFlexibleBoxData> m_deprecatedFlexibleBox; // Flexible box properties 111 DataRef<StyleDeprecatedFlexibleBoxData> m_deprecatedFlexibleBox; // Flexible box properties
111 DataRef<StyleFlexibleBoxData> m_flexibleBox; 112 DataRef<StyleFlexibleBoxData> m_flexibleBox;
112 DataRef<StyleMultiColData> m_multiCol; // CSS3 multicol properties 113 DataRef<StyleMultiColData> m_multiCol; // CSS3 multicol properties
113 DataRef<StyleTransformData> m_transform; // Transform properties (rotate, sc ale, skew, etc.) 114 DataRef<StyleTransformData> m_transform; // Transform properties (rotate, sc ale, skew, etc.)
114 DataRef<StyleWillChangeData> m_willChange; // CSS Will Change 115 DataRef<StyleWillChangeData> m_willChange; // CSS Will Change
115 116
116 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e tc.) 117 DataRef<StyleFilterData> m_filter; // Filter operations (url, sepia, blur, e tc.)
117 118
118 DataRef<StyleGridData> m_grid; 119 DataRef<StyleGridData> m_grid;
119 DataRef<StyleGridItemData> m_gridItem; 120 DataRef<StyleGridItemData> m_gridItem;
121 DataRef<StyleScrollSnapData> m_scrollSnap;
120 122
121 OwnPtr<ContentData> m_content; 123 OwnPtr<ContentData> m_content;
122 OwnPtr<CounterDirectiveMap> m_counterDirectives; 124 OwnPtr<CounterDirectiveMap> m_counterDirectives;
123 OwnPtr<CSSAnimationData> m_animations; 125 OwnPtr<CSSAnimationData> m_animations;
124 OwnPtr<CSSTransitionData> m_transitions; 126 OwnPtr<CSSTransitionData> m_transitions;
125 127
126 RefPtr<ShadowList> m_boxShadow; 128 RefPtr<ShadowList> m_boxShadow;
127 129
128 RefPtr<StyleReflection> m_boxReflect; 130 RefPtr<StyleReflection> m_boxReflect;
129 131
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 unsigned m_objectFit : 3; // ObjectFit 185 unsigned m_objectFit : 3; // ObjectFit
184 186
185 unsigned m_isolation : 1; // Isolation 187 unsigned m_isolation : 1; // Isolation
186 188
187 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavi or has a third 189 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavi or has a third
188 // value (that can only be specified using CSSOM scroll APIs) so 2 bits are needed. 190 // value (that can only be specified using CSSOM scroll APIs) so 2 bits are needed.
189 unsigned m_scrollBehavior: 2; 191 unsigned m_scrollBehavior: 2;
190 192
191 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn 193 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn
192 194
195 unsigned m_scrollSnapType: 2; // ScrollSnapType
196
193 // Plugins require accelerated compositing for reasons external to blink. 197 // Plugins require accelerated compositing for reasons external to blink.
194 // In which case, we need to update the ComputedStyle on the LayoutEmbeddedO bject, 198 // In which case, we need to update the ComputedStyle on the LayoutEmbeddedO bject,
195 // so store this bit so that the style actually changes when the plugin 199 // so store this bit so that the style actually changes when the plugin
196 // becomes composited. 200 // becomes composited.
197 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1; 201 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1;
198 202
199 // Whether the transform (if it exists) is stored in the element's inline st yle. 203 // Whether the transform (if it exists) is stored in the element's inline st yle.
200 unsigned m_hasInlineTransform : 1; 204 unsigned m_hasInlineTransform : 1;
201 unsigned m_resize : 2; // EResize 205 unsigned m_resize : 2; // EResize
202 unsigned m_hasCompositorProxy : 1; 206 unsigned m_hasCompositorProxy : 1;
203 207
204 private: 208 private:
205 StyleRareNonInheritedData(); 209 StyleRareNonInheritedData();
206 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 210 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
207 }; 211 };
208 212
209 } // namespace blink 213 } // namespace blink
210 214
211 #endif // StyleRareNonInheritedData_h 215 #endif // StyleRareNonInheritedData_h
OLDNEW
« no previous file with comments | « Source/core/style/ComputedStyleConstants.h ('k') | Source/core/style/StyleRareNonInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698