Index: Source/core/style/StyleAlignmentData.h |
diff --git a/Source/core/style/StyleAlignmentData.h b/Source/core/style/StyleAlignmentData.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f8029cf866fefbd6918463203abf5d559b26043a |
--- /dev/null |
+++ b/Source/core/style/StyleAlignmentData.h |
@@ -0,0 +1,37 @@ |
+// Copyright (c) 2014 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. |
+ |
+#ifndef StyleAlignmentData_h |
+#define StyleAlignmentData_h |
+ |
+#include "core/style/ComputedStyleConstants.h" |
+ |
+namespace blink { |
+ |
+class StyleAlignmentData { |
+public: |
+ StyleAlignmentData(ItemPosition, OverflowAlignment, ItemPositionType = NonLegacyPosition); |
+ StyleAlignmentData(ContentPosition, ContentDistributionType, OverflowAlignment); |
Julien - ping for review
2015/04/09 15:23:20
I would love a class comment to explain these cons
jfernandez
2015/04/09 15:55:55
Done.
|
+ StyleAlignmentData(const StyleAlignmentData&); |
+ |
+ bool operator==(const StyleAlignmentData& o) const |
+ { |
+ return 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 && m_positionType == o.m_positionType; |
Julien - ping for review
2015/04/09 15:23:20
Nit: This doesn't follow the order below (m_positi
jfernandez
2015/04/09 15:55:55
Done.
|
+ } |
+ |
+ bool operator!=(const StyleAlignmentData& o) const |
+ { |
+ return !(*this == o); |
+ } |
+ |
+ ItemPosition m_itemPosition; |
+ ContentPosition m_contentPosition; |
+ ContentDistributionType m_distribution; |
+ ItemPositionType m_positionType; |
+ OverflowAlignment m_overflow; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // StyleAlignmentData_h |