Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
index 379d0c1ffb6bdab96204dc061f95fa7da48cf4a0..ca7b9c81216d1b3b55b022812adee9c63e3a635e 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -671,12 +671,11 @@ void StyleBuilderFunctions::applyValueCSSPropertyWillChange(StyleResolverState& |
Vector<CSSPropertyID> willChangeProperties; |
for (auto& willChangeValue : toCSSValueList(*value)) { |
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(willChangeValue.get()); |
- if (primitiveValue->isPropertyID()) |
- willChangeProperties.append(primitiveValue->getPropertyID()); |
- else if (primitiveValue->getValueID() == CSSValueContents) |
+ if (willChangeValue->isCustomIdentValue()) |
+ willChangeProperties.append(toCSSCustomIdentValue(*willChangeValue).valueAsPropertyID()); |
+ else if (toCSSPrimitiveValue(*willChangeValue).getValueID() == CSSValueContents) |
willChangeContents = true; |
- else if (primitiveValue->getValueID() == CSSValueScrollPosition) |
+ else if (toCSSPrimitiveValue(*willChangeValue).getValueID() == CSSValueScrollPosition) |
willChangeScrollPosition = true; |
else |
ASSERT_NOT_REACHED(); |