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

Side by Side Diff: Source/core/style/StyleAlignmentData.cpp

Issue 1070143002: [Alignment] Single class for holding the alignment data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied suggested changes. Created 5 years, 8 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
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
Timothy Loh 2015/04/10 05:42:44 2015
jfernandez 2015/04/10 23:34:33 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "core/style/StyleAlignmentData.h"
7
8 namespace blink {
9
10 StyleAlignmentData::StyleAlignmentData(ItemPosition position, OverflowAlignment overflow, ItemPositionType positionType)
11 : m_itemPosition(position)
12 , m_contentPosition(ContentPositionAuto)
13 , m_distribution(ContentDistributionDefault)
14 , m_positionType(positionType)
15 , m_overflow(overflow)
16 {
17 }
18
19 StyleAlignmentData::StyleAlignmentData(ContentPosition position, ContentDistribu tionType distribution, OverflowAlignment overflow)
20 : m_itemPosition(ItemPositionAuto)
21 , m_contentPosition(position)
22 , m_distribution(distribution)
23 , m_positionType(NonLegacyPosition)
24 , m_overflow(overflow)
25 {
26 }
27
28 StyleAlignmentData::StyleAlignmentData(const StyleAlignmentData& o)
Timothy Loh 2015/04/10 05:42:44 Can we omit this and use the default copy ctor?
jfernandez 2015/04/10 23:34:32 Done.
29 : m_itemPosition(o.m_itemPosition)
30 , m_contentPosition(o.m_contentPosition)
31 , m_distribution(o.m_distribution)
32 , m_positionType(o.m_positionType)
33 , m_overflow(o.m_overflow)
34 {
35 }
36
37 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698