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

Unified Diff: Source/core/css/CSSContentDistributionValue.h

Issue 636993002: [CSS Grid Layout] Upgrade justify-content parsing to CSS3 Box Alignment spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebaseline some tests expectations. Created 6 years, 2 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
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSContentDistributionValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSContentDistributionValue.h
diff --git a/Source/core/css/CSSContentDistributionValue.h b/Source/core/css/CSSContentDistributionValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..a624ecd1fcea2d113416402102824a4194f77fb7
--- /dev/null
+++ b/Source/core/css/CSSContentDistributionValue.h
@@ -0,0 +1,46 @@
+// 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 CSSContentDistributionValue_h
+#define CSSContentDistributionValue_h
+
+#include "core/css/CSSValue.h"
+#include "core/css/CSSValuePool.h"
+#include "wtf/RefPtr.h"
+
+namespace blink {
+
+class CSSContentDistributionValue : public CSSValue {
+public:
+ static PassRefPtrWillBeRawPtr<CSSContentDistributionValue> create(CSSValueID distribution, CSSValueID position, CSSValueID overflow)
+ {
+ return adoptRefWillBeNoop(new CSSContentDistributionValue(distribution, position, overflow));
+ }
+ ~CSSContentDistributionValue();
+
+ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> distribution() const { return cssValuePool().createIdentifierValue(m_distribution); }
+
+ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> position() const { return cssValuePool().createIdentifierValue(m_position); }
+
+ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> overflow() const { return cssValuePool().createIdentifierValue(m_overflow); }
+
+ String customCSSText() const;
+
+ bool equals(const CSSContentDistributionValue&) const;
+
+ void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(visitor); }
+
+private:
+ explicit CSSContentDistributionValue(CSSValueID distribution, CSSValueID position, CSSValueID overflow);
+
+ CSSValueID m_distribution;
+ CSSValueID m_position;
+ CSSValueID m_overflow;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSContentDistributionValue, isContentDistributionValue());
+
+} // namespace blink
+
+#endif // CSSContentDistributionValue_h
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSContentDistributionValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698