| Index: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
| diff --git a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
| index 120d298832382e6b31175421715d7e31e03ea350..c25c05afb10dbb3cfa55501ad0f691125ae043c0 100644
|
| --- a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
| +++ b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
|
| @@ -41,7 +41,7 @@ class StyleSheetContents;
|
|
|
| class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
|
| public:
|
| - virtual Element* parentElement() const { return nullptr; }
|
| + virtual Element* parentElement() const { return 0; }
|
| StyleSheetContents* contextStyleSheet() const;
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
| @@ -127,7 +127,10 @@ protected:
|
|
|
| class InlineCSSStyleDeclaration final : public AbstractPropertySetCSSStyleDeclaration {
|
| public:
|
| - explicit InlineCSSStyleDeclaration(Element* parentElement);
|
| + explicit InlineCSSStyleDeclaration(Element* parentElement)
|
| + : m_parentElement(parentElement)
|
| + {
|
| + }
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| @@ -138,7 +141,7 @@ private:
|
| void deref() override;
|
| #endif
|
| CSSStyleSheet* parentStyleSheet() const override;
|
| - Element* parentElement() const override;
|
| + Element* parentElement() const override { return m_parentElement; }
|
|
|
| void didMutate(MutationType) override;
|
|
|
|
|