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

Side by Side Diff: Source/core/css/CSSContentDistributionValue.cpp

Issue 1303173007: Oilpan: Unship Oilpan from CSSValues Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSContentDistributionValue.h ('k') | Source/core/css/CSSCounterValue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/css/CSSContentDistributionValue.h" 6 #include "core/css/CSSContentDistributionValue.h"
7 7
8 #include "core/css/CSSValueList.h" 8 #include "core/css/CSSValueList.h"
9 #include "wtf/text/StringBuilder.h" 9 #include "wtf/text/StringBuilder.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 CSSContentDistributionValue::CSSContentDistributionValue(CSSValueID distribution , CSSValueID position, CSSValueID overflow) 13 CSSContentDistributionValue::CSSContentDistributionValue(CSSValueID distribution , CSSValueID position, CSSValueID overflow)
14 : CSSValue(CSSContentDistributionClass) 14 : CSSValue(CSSContentDistributionClass)
15 , m_distribution(distribution) 15 , m_distribution(distribution)
16 , m_position(position) 16 , m_position(position)
17 , m_overflow(overflow) 17 , m_overflow(overflow)
18 { 18 {
19 } 19 }
20 20
21 CSSContentDistributionValue::~CSSContentDistributionValue() 21 CSSContentDistributionValue::~CSSContentDistributionValue()
22 { 22 {
23 } 23 }
24 24
25 String CSSContentDistributionValue::customCSSText() const 25 String CSSContentDistributionValue::customCSSText() const
26 { 26 {
27 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated() ; 27 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
28 28
29 if (m_distribution != CSSValueInvalid) 29 if (m_distribution != CSSValueInvalid)
30 list->append(distribution()); 30 list->append(distribution());
31 if (m_position != CSSValueInvalid) 31 if (m_position != CSSValueInvalid)
32 list->append(position()); 32 list->append(position());
33 if (m_overflow != CSSValueInvalid) 33 if (m_overflow != CSSValueInvalid)
34 list->append(overflow()); 34 list->append(overflow());
35 35
36 return list.release()->customCSSText(); 36 return list.release()->customCSSText();
37 } 37 }
38 38
39 bool CSSContentDistributionValue::equals(const CSSContentDistributionValue& othe r) const 39 bool CSSContentDistributionValue::equals(const CSSContentDistributionValue& othe r) const
40 { 40 {
41 return m_distribution == other.m_distribution && m_position == other.m_posit ion && m_overflow == other.m_overflow; 41 return m_distribution == other.m_distribution && m_position == other.m_posit ion && m_overflow == other.m_overflow;
42 } 42 }
43 43
44 } 44 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSContentDistributionValue.h ('k') | Source/core/css/CSSCounterValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698