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 d4d53e3d3eb243dad8e0715a0ee430a52a496705..d6a82e68148556c490f9cf8293cbebed84f5b526 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(); |