Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h

Issue 2625303002: Fix CSSPropertySetterGetterMethods regression (Closed)
Patch Set: fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 d35e39727f5a47578f4a65fcabd8788229caad49..a1ce7b9a1d11aaef7b65f28d34b2045a230067f5 100644
--- a/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
+++ b/third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.h
@@ -36,6 +36,7 @@ class CSSValue;
class Element;
class ExceptionState;
class MutableStylePropertySet;
+class PropertyRegistry;
class StyleSheetContents;
class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
@@ -53,8 +54,7 @@ class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
String getPropertyPriority(const String& propertyName) final;
String getPropertyShorthand(const String& propertyName) final;
bool isPropertyImplicit(const String& propertyName) final;
- void setProperty(const ExecutionContext*,
- const String& propertyName,
+ void setProperty(const String& propertyName,
const String& value,
const String& priority,
ExceptionState&) final;
@@ -71,7 +71,6 @@ class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
const String& customPropertyName,
const String& value,
bool important,
- const ExecutionContext*,
ExceptionState&) final;
bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const final;
@@ -81,6 +80,7 @@ class AbstractPropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
virtual void willMutate() {}
virtual void didMutate(MutationType) {}
virtual MutableStylePropertySet& propertySet() const = 0;
+ virtual PropertyRegistry* propertyRegistry() const = 0;
virtual bool isKeyframeStyle() const { return false; }
};
@@ -98,6 +98,8 @@ class PropertySetCSSStyleDeclaration
return *m_propertySet;
}
+ PropertyRegistry* propertyRegistry() const override { return nullptr; }
Timothy Loh 2017/01/12 04:44:41 This is because for some reason we create Property
+
Member<MutableStylePropertySet> m_propertySet; // Cannot be null
};
@@ -123,6 +125,7 @@ class StyleRuleCSSStyleDeclaration : public PropertySetCSSStyleDeclaration {
void willMutate() override;
void didMutate(MutationType) override;
+ PropertyRegistry* propertyRegistry() const final;
Member<CSSRule> m_parentRule;
};
@@ -141,6 +144,7 @@ class InlineCSSStyleDeclaration final
Element* parentElement() const override { return m_parentElement; }
void didMutate(MutationType) override;
+ PropertyRegistry* propertyRegistry() const final;
Member<Element> m_parentElement;
};

Powered by Google App Engine
This is Rietveld 408576698