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

Side by Side 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, 1 month 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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CSSContentDistributionValue_h
6 #define CSSContentDistributionValue_h
7
8 #include "core/css/CSSValue.h"
9 #include "core/css/CSSValuePool.h"
10 #include "wtf/RefPtr.h"
11
12 namespace blink {
13
14 class CSSContentDistributionValue : public CSSValue {
15 public:
16 static PassRefPtrWillBeRawPtr<CSSContentDistributionValue> create(CSSValueID distribution, CSSValueID position, CSSValueID overflow)
17 {
18 return adoptRefWillBeNoop(new CSSContentDistributionValue(distribution, position, overflow));
19 }
20 ~CSSContentDistributionValue();
21
22 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> distribution() const { return cssV aluePool().createIdentifierValue(m_distribution); }
23
24 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> position() const { return cssValue Pool().createIdentifierValue(m_position); }
25
26 PassRefPtrWillBeRawPtr<CSSPrimitiveValue> overflow() const { return cssValue Pool().createIdentifierValue(m_overflow); }
27
28 String customCSSText() const;
29
30 bool equals(const CSSContentDistributionValue&) const;
31
32 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); }
33
34 private:
35 explicit CSSContentDistributionValue(CSSValueID distribution, CSSValueID pos ition, CSSValueID overflow);
36
37 CSSValueID m_distribution;
38 CSSValueID m_position;
39 CSSValueID m_overflow;
40 };
41
42 DEFINE_CSS_VALUE_TYPE_CASTS(CSSContentDistributionValue, isContentDistributionVa lue());
43
44 } // namespace blink
45
46 #endif // CSSContentDistributionValue_h
OLDNEW
« 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