OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/css/cssom/StylePropertyMap.h" |
| 6 |
| 7 #include "bindings/core/v8/ExceptionState.h" |
| 8 #include "core/css/cssom/SimpleLength.h" |
| 9 #include "core/css/cssom/StyleValue.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 StyleValue* StylePropertyMap::get(const String& propertyName) |
| 14 { |
| 15 return get(cssPropertyID(propertyName)); |
| 16 } |
| 17 |
| 18 HeapVector<Member<StyleValue>> StylePropertyMap::getAll(const String& propertyNa
me) |
| 19 { |
| 20 return getAll(cssPropertyID(propertyName)); |
| 21 } |
| 22 |
| 23 bool StylePropertyMap::has(const String& propertyName) |
| 24 { |
| 25 return has(cssPropertyID(propertyName)); |
| 26 } |
| 27 |
| 28 void StylePropertyMap::set(const String& propertyName, StyleValueOrStyleValueSeq
uenceOrString& item, ExceptionState& exceptionState) |
| 29 { |
| 30 set(cssPropertyID(propertyName), item, exceptionState); |
| 31 } |
| 32 |
| 33 void StylePropertyMap::append(const String& propertyName, StyleValueOrStyleValue
SequenceOrString& item, ExceptionState& exceptionState) |
| 34 { |
| 35 append(cssPropertyID(propertyName), item, exceptionState); |
| 36 } |
| 37 |
| 38 void StylePropertyMap::remove(const String& propertyName, ExceptionState& except
ionState) |
| 39 { |
| 40 remove(cssPropertyID(propertyName), exceptionState); |
| 41 } |
| 42 |
| 43 } // namespace blink |
OLD | NEW |