| Index: third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h
|
| diff --git a/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h b/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h
|
| index 0475e698c82fb508c696a6440ef0fdc8f7606aee..6f653484cfca1ce25c00e5f753ac65e4d701a05a 100644
|
| --- a/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h
|
| +++ b/third_party/WebKit/Source/core/css/cssom/ComputedStylePropertyMap.h
|
| @@ -7,6 +7,8 @@
|
|
|
| #include "core/css/CSSComputedStyleDeclaration.h"
|
| #include "core/css/cssom/ImmutableStylePropertyMap.h"
|
| +#include "core/dom/Node.h"
|
| +#include "core/layout/LayoutObject.h"
|
|
|
| namespace blink {
|
|
|
| @@ -14,23 +16,28 @@ class CORE_EXPORT ComputedStylePropertyMap : public ImmutableStylePropertyMap {
|
| WTF_MAKE_NONCOPYABLE(ComputedStylePropertyMap);
|
|
|
| public:
|
| - static ComputedStylePropertyMap* create(
|
| - CSSComputedStyleDeclaration* computedStyleDeclaration) {
|
| - return new ComputedStylePropertyMap(computedStyleDeclaration);
|
| + static ComputedStylePropertyMap* create(Node* node,
|
| + const String& pseudoElement) {
|
| + return new ComputedStylePropertyMap(node, pseudoElement);
|
| }
|
|
|
| Vector<String> getProperties() override;
|
|
|
| DEFINE_INLINE_VIRTUAL_TRACE() {
|
| visitor->trace(m_computedStyleDeclaration);
|
| + visitor->trace(m_node);
|
| ImmutableStylePropertyMap::trace(visitor);
|
| }
|
|
|
| + private:
|
| + Node* node() const;
|
| +
|
| protected:
|
| - ComputedStylePropertyMap(
|
| - CSSComputedStyleDeclaration* computedStyleDeclaration)
|
| + ComputedStylePropertyMap(Node* node, const String& pseudoElement = String())
|
| : ImmutableStylePropertyMap(),
|
| - m_computedStyleDeclaration(computedStyleDeclaration) {}
|
| + m_computedStyleDeclaration(
|
| + CSSComputedStyleDeclaration::create(node, false, pseudoElement)),
|
| + m_node(node) {}
|
|
|
| CSSStyleValueVector getAllInternal(CSSPropertyID) override;
|
| CSSStyleValueVector getAllInternal(AtomicString customPropertyName) override;
|
| @@ -39,7 +46,8 @@ class CORE_EXPORT ComputedStylePropertyMap : public ImmutableStylePropertyMap {
|
| return HeapVector<StylePropertyMapEntry>();
|
| }
|
|
|
| - Member<CSSStyleDeclaration> m_computedStyleDeclaration;
|
| + Member<CSSComputedStyleDeclaration> m_computedStyleDeclaration;
|
| + Member<Node> m_node;
|
| };
|
|
|
| } // namespace blink
|
|
|