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

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

Issue 1308633005: Make classes and structures in core/style, core/plugins and core/streams fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « Source/core/style/SVGComputedStyleDefs.h ('k') | Source/core/style/StyleDifference.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 StyleContentAlignmentData_h 5 #ifndef StyleContentAlignmentData_h
6 #define StyleContentAlignmentData_h 6 #define StyleContentAlignmentData_h
7 7
8 #include "core/style/ComputedStyleConstants.h" 8 #include "core/style/ComputedStyleConstants.h"
9 #include "wtf/Allocator.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 class StyleContentAlignmentData { 13 class StyleContentAlignmentData {
14 DISALLOW_ALLOCATION();
13 public: 15 public:
14 // Style data for Content-Distribution properties: align-content, justify-co ntent. 16 // Style data for Content-Distribution properties: align-content, justify-co ntent.
15 // <content-distribution> || [ <overflow-position>? && <content-position> ] 17 // <content-distribution> || [ <overflow-position>? && <content-position> ]
16 StyleContentAlignmentData(ContentPosition position, ContentDistributionType distribution, OverflowAlignment overflow = OverflowAlignmentDefault) 18 StyleContentAlignmentData(ContentPosition position, ContentDistributionType distribution, OverflowAlignment overflow = OverflowAlignmentDefault)
17 : m_position(position) 19 : m_position(position)
18 , m_distribution(distribution) 20 , m_distribution(distribution)
19 , m_overflow(overflow) 21 , m_overflow(overflow)
20 { 22 {
21 } 23 }
22 24
(...skipping 17 matching lines...) Expand all
40 42
41 private: 43 private:
42 unsigned m_position : 4; // ContentPosition 44 unsigned m_position : 4; // ContentPosition
43 unsigned m_distribution : 3; // ContentDistributionType 45 unsigned m_distribution : 3; // ContentDistributionType
44 unsigned m_overflow : 2; // OverflowAlignment 46 unsigned m_overflow : 2; // OverflowAlignment
45 }; 47 };
46 48
47 } // namespace blink 49 } // namespace blink
48 50
49 #endif // StyleContentAlignmentData_h 51 #endif // StyleContentAlignmentData_h
OLDNEW
« no previous file with comments | « Source/core/style/SVGComputedStyleDefs.h ('k') | Source/core/style/StyleDifference.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698