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

Unified 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: Using the StyleConverter. 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 side-by-side diff with in-line comments
Download patch
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..2f954c957a6093afdee3e907b73158fa9a3e0b27
--- /dev/null
+++ b/Source/core/style/StyleAlignmentData.cpp
@@ -0,0 +1,28 @@
+// Copyright (c) 2015 The Chromium Authors. All rights reserved.
+// 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)
+{
+}
Julien - ping for review 2015/04/13 14:46:20 Any reason why this is not inlined?
jfernandez 2015/04/14 00:18:43 No reason. It can be inlined, indeed.
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698