| 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 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex
ceptionState) | 13 StyleValue* StylePropertyMap::get(const String& propertyName, ExceptionState& ex
ceptionState) |
| 14 { | 14 { |
| 15 CSSPropertyID propertyID = cssPropertyID(propertyName); | 15 CSSPropertyID propertyID = cssPropertyID(propertyName); |
| 16 if (propertyID != CSSPropertyInvalid) | 16 if (propertyID != CSSPropertyInvalid) |
| 17 return get(propertyID); | 17 return get(propertyID); |
| 18 | 18 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 CSSPropertyID propertyID = cssPropertyID(propertyName); | 70 CSSPropertyID propertyID = cssPropertyID(propertyName); |
| 71 if (propertyID != CSSPropertyInvalid) { | 71 if (propertyID != CSSPropertyInvalid) { |
| 72 remove(propertyID, exceptionState); | 72 remove(propertyID, exceptionState); |
| 73 return; | 73 return; |
| 74 } | 74 } |
| 75 // TODO(meade): Handle custom properties here. | 75 // TODO(meade): Handle custom properties here. |
| 76 exceptionState.throwTypeError("Invalid propertyName: " + propertyName); | 76 exceptionState.throwTypeError("Invalid propertyName: " + propertyName); |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| OLD | NEW |