| Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| index 79b8d1e384a4e59c1d01349676b847b377f7a4a1..0995b29c336435646b430970c1923fa6c0fe446c 100644
|
| --- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| +++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
|
| @@ -1460,6 +1460,17 @@ void ComputedStyle::setVariable(const AtomicString& name, PassRefPtr<CSSVariable
|
| variables->setVariable(name, value);
|
| }
|
|
|
| +void ComputedStyle::setRegisteredInheritedProperty(const AtomicString& name, const CSSValue* parsedValue)
|
| +{
|
| + RefPtr<StyleVariableData>& variables = m_rareInheritedData.access()->variables;
|
| + DCHECK(variables);
|
| + if (!variables->hasOneRef())
|
| + variables = variables->copy();
|
| + DCHECK(!!parsedValue == !!variables->getVariable(name));
|
| + DCHECK(!(parsedValue && variables->getVariable(name)->needsVariableResolution()));
|
| + variables->setRegisteredInheritedProperty(name, parsedValue);
|
| +}
|
| +
|
| void ComputedStyle::removeVariable(const AtomicString& name)
|
| {
|
| RefPtr<StyleVariableData>& variables = m_rareInheritedData.access()->variables;
|
|
|