| Index: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
|
| diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
|
| index 89c43e4900bfad2e02e42772085695c1c7d909c6..2ee2af678c2f5560816e77693ec9926561cacee5 100644
|
| --- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "bindings/core/v8/V8BindingMacros.h"
|
| #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
|
| #include "core/CSSPropertyNames.h"
|
| -#include "core/css/parser/CSSVariableParser.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/inspector/MainThreadDebugger.h"
|
| #include "modules/csspaint/CSSPaintDefinition.h"
|
| @@ -75,10 +74,9 @@ void PaintWorkletGlobalScope::registerPaint(const String& name, const ScriptValu
|
|
|
| for (const auto& property : properties) {
|
| CSSPropertyID propertyID = cssPropertyID(property);
|
| - if (propertyID == CSSPropertyInvalid) {
|
| - if (CSSVariableParser::isValidVariableName(property))
|
| - customInvalidationProperties.append(property);
|
| - } else {
|
| + if (propertyID == CSSPropertyVariable) {
|
| + customInvalidationProperties.append(property);
|
| + } else if (propertyID != CSSPropertyInvalid) {
|
| nativeInvalidationProperties.append(propertyID);
|
| }
|
| }
|
|
|