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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.cpp

Issue 2367663002: [WIP] Attempt to move everything cssom into a cssom namespace (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "core/css/cssom/InlineStylePropertyMap.h" 5 #include "core/css/cssom/InlineStylePropertyMap.h"
6 6
7 #include "bindings/core/v8/Iterable.h" 7 #include "bindings/core/v8/Iterable.h"
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/css/CSSCustomIdentValue.h" 9 #include "core/css/CSSCustomIdentValue.h"
10 #include "core/css/CSSCustomPropertyDeclaration.h" 10 #include "core/css/CSSCustomPropertyDeclaration.h"
11 #include "core/css/CSSPrimitiveValue.h" 11 #include "core/css/CSSPrimitiveValue.h"
12 #include "core/css/CSSPropertyMetadata.h" 12 #include "core/css/CSSPropertyMetadata.h"
13 #include "core/css/CSSValueList.h" 13 #include "core/css/CSSValueList.h"
14 #include "core/css/StylePropertySet.h" 14 #include "core/css/StylePropertySet.h"
15 #include "core/css/cssom/CSSOMTypes.h" 15 #include "core/css/cssom/CSSOMTypes.h"
16 #include "core/css/cssom/CSSSimpleLength.h" 16 #include "core/css/cssom/CSSSimpleLength.h"
17 #include "core/css/cssom/CSSUnsupportedStyleValue.h" 17 #include "core/css/cssom/CSSUnsupportedStyleValue.h"
18 #include "core/css/cssom/StyleValueFactory.h" 18 #include "core/css/cssom/StyleValueFactory.h"
19 19
20 namespace blink { 20 namespace blink {
21 namespace cssom {
21 22
22 namespace { 23 namespace {
23 24
24 const CSSValue* styleValueToCSSValue(CSSPropertyID propertyID, const CSSStyleVal ue& styleValue) 25 const CSSValue* styleValueToCSSValue(CSSPropertyID propertyID, const CSSStyleVal ue& styleValue)
25 { 26 {
26 if (!CSSOMTypes::propertyCanTake(propertyID, styleValue)) 27 if (!CSSOMTypes::propertyCanTake(propertyID, styleValue))
27 return nullptr; 28 return nullptr;
28 return styleValue.toCSSValueWithProperty(propertyID); 29 return styleValue.toCSSValueWithProperty(propertyID);
29 } 30 }
30 31
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 if (styleValueVector.size() == 1) 203 if (styleValueVector.size() == 1)
203 value.setCSSStyleValue(styleValueVector[0]); 204 value.setCSSStyleValue(styleValueVector[0]);
204 else 205 else
205 value.setCSSStyleValueSequence(styleValueVector); 206 value.setCSSStyleValueSequence(styleValueVector);
206 } 207 }
207 result.append(std::make_pair(name, value)); 208 result.append(std::make_pair(name, value));
208 } 209 }
209 return result; 210 return result;
210 } 211 }
211 212
213 } // namespace cssom
212 } // namespace blink 214 } // namespace blink
213 215
216
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698