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

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

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 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
« no previous file with comments | « Source/core/css/CSSContentDistributionValue.h ('k') | Source/core/css/CSSCrossfadeValue.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 : CSSValueObject(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
(...skipping 10 matching lines...) Expand all
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/CSSCrossfadeValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698