| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |