Chromium Code Reviews| 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 0d0ea8891710f37187b9785beb61dcebf0e38a54..cb41b29d5e304f22a1dd7c762f907d9835ef1b62 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,9 +16,9 @@ class CORE_EXPORT ComputedStylePropertyMap : public ImmutableStylePropertyMap { |
| WTF_MAKE_NONCOPYABLE(ComputedStylePropertyMap); |
| public: |
| - static ComputedStylePropertyMap* create(CSSComputedStyleDeclaration* computedStyleDeclaration) |
| + static ComputedStylePropertyMap* create(Node* node, const String& pseudoElement) |
|
rjwright
2016/09/29 04:08:17
I think I can change this back now, once we decide
|
| { |
| - return new ComputedStylePropertyMap(computedStyleDeclaration); |
| + return new ComputedStylePropertyMap(node, pseudoElement); |
| } |
| Vector<String> getProperties() override; |
| @@ -28,16 +30,16 @@ public: |
| } |
| protected: |
| - ComputedStylePropertyMap(CSSComputedStyleDeclaration* computedStyleDeclaration) |
| + ComputedStylePropertyMap(Node* node, const String& pseudoElement = String()) |
| : ImmutableStylePropertyMap() |
| - , m_computedStyleDeclaration(computedStyleDeclaration) { } |
| + , m_computedStyleDeclaration(CSSComputedStyleDeclaration::create(node, false, pseudoElement)) {} |
| CSSStyleValueVector getAllInternal(CSSPropertyID) override; |
| CSSStyleValueVector getAllInternal(AtomicString customPropertyName) override; |
| HeapVector<StylePropertyMapEntry> getIterationEntries() override { return HeapVector<StylePropertyMapEntry>(); } |
| - Member<CSSStyleDeclaration> m_computedStyleDeclaration; |
| + Member<CSSComputedStyleDeclaration> m_computedStyleDeclaration; |
| }; |
| } // namespace blink |