Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/cssom/StylePropertyMap.cpp |
| diff --git a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.cpp b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.cpp |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..495b601f33cf2936b6d8ee86afaca849d23efb28 |
| --- /dev/null |
| +++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.cpp |
| @@ -0,0 +1,23 @@ |
| +// copyright 2016 the chromium authors. all rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "core/css/cssom/StylePropertyMap.h" |
| + |
| +#include "bindings/core/v8/ExceptionState.h" |
| +#include "core/css/cssom/SimpleLength.h" |
| +#include "core/css/cssom/StyleValue.h" |
| + |
| +namespace blink { |
| + |
| +StyleValue* StylePropertyMap::get(const String& propertyName) |
|
Timothy Loh
2016/01/18 03:47:23
Do these need to be virtual?
meade_UTC10
2016/01/19 00:15:19
I don't think so - The idea is that the CSSPropert
Timothy Loh
2016/01/19 05:30:46
Latest patch seems fine for this.
|
| +{ |
| + return get(cssPropertyID(propertyName)); |
| +} |
| + |
| +void StylePropertyMap::set(const String& propertyName, StyleValueOrStyleValueSequenceOrString& item, ExceptionState& exceptionState) |
| +{ |
| + return set(cssPropertyID(propertyName), item, exceptionState); |
| +} |
| + |
| +} // namespace blink |