Chromium Code Reviews| Index: Source/core/style/StyleAlignmentData.cpp |
| diff --git a/Source/core/style/StyleAlignmentData.cpp b/Source/core/style/StyleAlignmentData.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..74b3745ac040ad33eb0bc8e567a9df287ee6bc7e |
| --- /dev/null |
| +++ b/Source/core/style/StyleAlignmentData.cpp |
| @@ -0,0 +1,37 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "config.h" |
| +#include "core/style/StyleAlignmentData.h" |
| + |
| +namespace blink { |
| + |
| +StyleAlignmentData::StyleAlignmentData(ItemPosition position, OverflowAlignment overflow, ItemPositionType positionType) |
| + : m_itemPosition(position) |
| + , m_contentPosition(ContentPositionAuto) |
| + , m_distribution(ContentDistributionDefault) |
| + , m_positionType(positionType) |
| + , m_overflow(overflow) |
| +{ |
| +} |
| + |
| +StyleAlignmentData::StyleAlignmentData(ContentPosition position, ContentDistributionType distribution, OverflowAlignment overflow) |
| + : m_itemPosition(ItemPositionAuto) |
| + , m_contentPosition(position) |
| + , m_distribution(distribution) |
| + , m_positionType(NonLegacyPosition) |
| + , m_overflow(overflow) |
| +{ |
| +} |
| + |
| +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.
|
| + : m_itemPosition(o.m_itemPosition) |
| + , m_contentPosition(o.m_contentPosition) |
| + , m_distribution(o.m_distribution) |
| + , m_positionType(o.m_positionType) |
| + , m_overflow(o.m_overflow) |
| +{ |
| +} |
| + |
| +} // namespace blink |