| Index: Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| diff --git a/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| index 900dc36f1e0fd658a227b4128e641ee21d04e1e8..88f93c1bcfef4db8e369c629f9da5bffb0d504eb 100644
|
| --- a/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| +++ b/Source/core/css/PropertySetCSSStyleDeclaration.cpp
|
| @@ -281,7 +281,7 @@ String PropertySetCSSStyleDeclaration::variableValue(const AtomicString& name) c
|
| return m_propertySet->variableValue(name);
|
| }
|
|
|
| -void PropertySetCSSStyleDeclaration::setVariableValue(const AtomicString& name, const String& value, ExceptionState&)
|
| +bool PropertySetCSSStyleDeclaration::setVariableValue(const AtomicString& name, const String& value, ExceptionState&)
|
| {
|
| ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
|
| StyleAttributeMutationScope mutationScope(this);
|
| @@ -290,6 +290,7 @@ void PropertySetCSSStyleDeclaration::setVariableValue(const AtomicString& name,
|
| didMutate(changed ? PropertyChanged : NoChanges);
|
| if (changed)
|
| mutationScope.enqueueMutationRecord();
|
| + return changed;
|
| }
|
|
|
| bool PropertySetCSSStyleDeclaration::removeVariable(const AtomicString& name)
|
| @@ -304,7 +305,7 @@ bool PropertySetCSSStyleDeclaration::removeVariable(const AtomicString& name)
|
| return changed;
|
| }
|
|
|
| -void PropertySetCSSStyleDeclaration::clearVariables(ExceptionState&)
|
| +bool PropertySetCSSStyleDeclaration::clearVariables(ExceptionState&)
|
| {
|
| ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
|
| StyleAttributeMutationScope mutationScope(this);
|
| @@ -313,6 +314,12 @@ void PropertySetCSSStyleDeclaration::clearVariables(ExceptionState&)
|
| didMutate(changed ? PropertyChanged : NoChanges);
|
| if (changed)
|
| mutationScope.enqueueMutationRecord();
|
| + return changed;
|
| +}
|
| +
|
| +PassRefPtr<CSSVariablesIterator> PropertySetCSSStyleDeclaration::variablesIterator() const
|
| +{
|
| + return m_propertySet->variablesIterator();
|
| }
|
|
|
| CSSValue* PropertySetCSSStyleDeclaration::cloneAndCacheForCSSOM(CSSValue* internalValue)
|
|
|