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

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

Issue 2769793002: Implement CSS: scroll-boundary-behavior (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into scroll-boundary Created 3 years, 9 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 unsigned m_contain : 4; // Containment 214 unsigned m_contain : 4; // Containment
215 215
216 // ScrollBehavior. 'scroll-behavior' has 2 accepted values, but ScrollBehavior 216 // 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 217 // has a third value (that can only be specified using CSSOM scroll APIs) so 2
218 // bits are needed. 218 // bits are needed.
219 unsigned m_scrollBehavior : 2; 219 unsigned m_scrollBehavior : 2;
220 220
221 unsigned m_scrollSnapType : 2; // ScrollSnapType 221 unsigned m_scrollSnapType : 2; // ScrollSnapType
222 222
223 unsigned m_scrollBoundaryBehavior : 2; // ScrollBoundaryBehavior
224
223 // Plugins require accelerated compositing for reasons external to blink. 225 // Plugins require accelerated compositing for reasons external to blink.
224 // In which case, we need to update the ComputedStyle on the 226 // In which case, we need to update the ComputedStyle on the
225 // LayoutEmbeddedObject, so store this bit so that the style actually changes 227 // LayoutEmbeddedObject, so store this bit so that the style actually changes
226 // when the plugin becomes composited. 228 // when the plugin becomes composited.
227 unsigned m_requiresAcceleratedCompositingForExternalReasons : 1; 229 unsigned m_requiresAcceleratedCompositingForExternalReasons : 1;
228 230
229 // Whether the transform (if it exists) is stored in the element's inline 231 // Whether the transform (if it exists) is stored in the element's inline
230 // style. 232 // style.
231 unsigned m_hasInlineTransform : 1; 233 unsigned m_hasInlineTransform : 1;
232 unsigned m_resize : 2; // EResize 234 unsigned m_resize : 2; // EResize
233 unsigned m_hasCompositorProxy : 1; 235 unsigned m_hasCompositorProxy : 1;
234 236
235 // Style adjustment for appearance is disabled when certain properties are 237 // Style adjustment for appearance is disabled when certain properties are
236 // set. 238 // set.
237 unsigned m_hasAuthorBackground : 1; // Whether there is a author-defined 239 unsigned m_hasAuthorBackground : 1; // Whether there is a author-defined
238 // background. 240 // background.
239 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border. 241 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border.
240 242
241 private: 243 private:
242 StyleRareNonInheritedData(); 244 StyleRareNonInheritedData();
243 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 245 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
244 }; 246 };
245 247
246 } // namespace blink 248 } // namespace blink
247 249
248 #endif // StyleRareNonInheritedData_h 250 #endif // StyleRareNonInheritedData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698