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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StyleSelfAlignmentData_h 5 #ifndef StyleSelfAlignmentData_h
6 #define StyleSelfAlignmentData_h 6 #define StyleSelfAlignmentData_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "wtf/Allocator.h" 9 #include "wtf/Allocator.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class StyleSelfAlignmentData { 13 class StyleSelfAlignmentData {
14 DISALLOW_ALLOCATION(); 14 DISALLOW_NEW();
15 public: 15 public:
16 // Style data for Self-Aligment and Default-Alignment properties: align-{sel f, items}, justify-{self, items}. 16 // Style data for Self-Aligment and Default-Alignment properties: align-{sel f, items}, justify-{self, items}.
17 // [ <self-position> && <overflow-position>? ] | [ legacy && [ left | right | center ] ] 17 // [ <self-position> && <overflow-position>? ] | [ legacy && [ left | right | center ] ]
18 StyleSelfAlignmentData(ItemPosition position, OverflowAlignment overflow, It emPositionType positionType = NonLegacyPosition) 18 StyleSelfAlignmentData(ItemPosition position, OverflowAlignment overflow, It emPositionType positionType = NonLegacyPosition)
19 : m_position(position) 19 : m_position(position)
20 , m_positionType(positionType) 20 , m_positionType(positionType)
21 , m_overflow(overflow) 21 , m_overflow(overflow)
22 { 22 {
23 } 23 }
24 24
(...skipping 17 matching lines...) Expand all
42 42
43 private: 43 private:
44 unsigned m_position : 4; // ItemPosition 44 unsigned m_position : 4; // ItemPosition
45 unsigned m_positionType: 1; // Whether or not alignment uses the 'legacy' ke yword. 45 unsigned m_positionType: 1; // Whether or not alignment uses the 'legacy' ke yword.
46 unsigned m_overflow : 2; // OverflowAlignment 46 unsigned m_overflow : 2; // OverflowAlignment
47 }; 47 };
48 48
49 } // namespace blink 49 } // namespace blink
50 50
51 #endif // StyleSelfAlignmentData_h 51 #endif // StyleSelfAlignmentData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleScrollSnapData.h ('k') | third_party/WebKit/Source/core/style/TransformOrigin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698