| Index: third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.h
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.h b/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ad09e86374109f51cce0933a802c8ece65cc7529
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/css/cssom/InlineStylePropertyMap.h
|
| @@ -0,0 +1,43 @@
|
| +// 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.
|
| +
|
| +#ifndef InlineStylePropertyMap_h
|
| +#define InlineStylePropertyMap_h
|
| +
|
| +#include "core/css/cssom/MutableStylePropertyMap.h"
|
| +#include "core/dom/Element.h"
|
| +
|
| +namespace blink {
|
| +
|
| +typedef HeapVector<Member<StyleValue>> StyleValueVector;
|
| +typedef HeapHashMap<CSSPropertyID, StyleValueVector> StyleVectorMap;
|
| +
|
| +class CORE_EXPORT InlineStylePropertyMap final : public MutableStylePropertyMap {
|
| + WTF_MAKE_NONCOPYABLE(InlineStylePropertyMap);
|
| +public:
|
| + explicit InlineStylePropertyMap(Element* ownerElement)
|
| + : m_ownerElement(ownerElement) { }
|
| +
|
| + StyleValue* get(CSSPropertyID) override;
|
| + StyleValueVector getAll(CSSPropertyID) override;
|
| + bool has(CSSPropertyID) override;
|
| + Vector<String> getProperties() override;
|
| +
|
| + void set(CSSPropertyID, StyleValueOrStyleValueSequenceOrString&, ExceptionState&) override;
|
| + void append(CSSPropertyID, StyleValueOrStyleValueSequenceOrString&, ExceptionState&) override;
|
| + void remove(CSSPropertyID, ExceptionState&) override;
|
| +
|
| + DEFINE_INLINE_VIRTUAL_TRACE()
|
| + {
|
| + visitor->trace(m_ownerElement);
|
| + MutableStylePropertyMap::trace(visitor);
|
| + }
|
| +
|
| +private:
|
| + Member<Element> m_ownerElement;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|