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

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: Add additional tests for position parsing Created 5 years, 7 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;
122
Timothy Loh 2015/05/28 07:09:27 nit: extra blank line?
majidvp 2015/06/01 20:06:37 Done.
120 123
121 OwnPtr<ContentData> m_content; 124 OwnPtr<ContentData> m_content;
122 OwnPtr<CounterDirectiveMap> m_counterDirectives; 125 OwnPtr<CounterDirectiveMap> m_counterDirectives;
123 OwnPtr<CSSAnimationData> m_animations; 126 OwnPtr<CSSAnimationData> m_animations;
124 OwnPtr<CSSTransitionData> m_transitions; 127 OwnPtr<CSSTransitionData> m_transitions;
125 128
126 RefPtr<ShadowList> m_boxShadow; 129 RefPtr<ShadowList> m_boxShadow;
127 130
128 RefPtr<StyleReflection> m_boxReflect; 131 RefPtr<StyleReflection> m_boxReflect;
129 132
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 unsigned m_objectFit : 3; // ObjectFit 186 unsigned m_objectFit : 3; // ObjectFit
184 187
185 unsigned m_isolation : 1; // Isolation 188 unsigned m_isolation : 1; // Isolation
186 189
187 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavi or has a third 190 // 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. 191 // value (that can only be specified using CSSOM scroll APIs) so 2 bits are needed.
189 unsigned m_scrollBehavior: 2; 192 unsigned m_scrollBehavior: 2;
190 193
191 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn 194 unsigned m_scrollBlocksOn: 3; // WebScrollBlocksOn
192 195
196 unsigned m_scrollSnapType: 2; // ScrollSnapType
197
193 // Plugins require accelerated compositing for reasons external to blink. 198 // Plugins require accelerated compositing for reasons external to blink.
194 // In which case, we need to update the ComputedStyle on the LayoutEmbeddedO bject, 199 // 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 200 // so store this bit so that the style actually changes when the plugin
196 // becomes composited. 201 // becomes composited.
197 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1; 202 unsigned m_requiresAcceleratedCompositingForExternalReasons: 1;
198 203
199 // Whether the transform (if it exists) is stored in the element's inline st yle. 204 // Whether the transform (if it exists) is stored in the element's inline st yle.
200 unsigned m_hasInlineTransform : 1; 205 unsigned m_hasInlineTransform : 1;
201 unsigned m_resize : 2; // EResize 206 unsigned m_resize : 2; // EResize
202 unsigned m_hasCompositorProxy : 1; 207 unsigned m_hasCompositorProxy : 1;
203 208
204 private: 209 private:
205 StyleRareNonInheritedData(); 210 StyleRareNonInheritedData();
206 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 211 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
207 }; 212 };
208 213
209 } // namespace blink 214 } // namespace blink
210 215
211 #endif // StyleRareNonInheritedData_h 216 #endif // StyleRareNonInheritedData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698