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

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

Issue 2005683002: Typed CSSOM: Rename SimpleLength to CSSSimpleLength (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix SimpleLengthType compile errors Created 4 years, 7 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/StylePropertyMap.h" 5 #include "core/css/cssom/StylePropertyMap.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/css/cssom/SimpleLength.h" 8 #include "core/css/cssom/CSSSimpleLength.h"
9 #include "core/css/cssom/StyleValue.h" 9 #include "core/css/cssom/StyleValue.h"
10 #include "core/css/cssom/StyleValueFactory.h" 10 #include "core/css/cssom/StyleValueFactory.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex ceptionState) 14 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex ceptionState)
15 { 15 {
16 CSSPropertyID propertyID = cssPropertyID(propertyName); 16 CSSPropertyID propertyID = cssPropertyID(propertyName);
17 if (propertyID == CSSPropertyInvalid) { 17 if (propertyID == CSSPropertyInvalid) {
18 // TODO(meade): Handle custom properties here. 18 // TODO(meade): Handle custom properties here.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 for (CSSValue* value : *toCSSValueList(&cssValue)) { 96 for (CSSValue* value : *toCSSValueList(&cssValue)) {
97 StyleValue* styleValue = StyleValueFactory::create(propertyID, *value); 97 StyleValue* styleValue = StyleValueFactory::create(propertyID, *value);
98 if (!styleValue) 98 if (!styleValue)
99 return StyleValueVector(); 99 return StyleValueVector();
100 styleValueVector.append(styleValue); 100 styleValueVector.append(styleValue);
101 } 101 }
102 return styleValueVector; 102 return styleValueVector;
103 } 103 }
104 104
105 } // namespace blink 105 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698