Index: Source/core/css/resolver/StyleBuilderCustom.cpp |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp |
index ec034c7557839113fb34e439efd9353338d6cf3f..4add1b156b223c50f10147b1af680dbe2e8b5058 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -1111,7 +1111,7 @@ static EPaintOrder paintOrderFlattened(CSSValue* cssPaintOrder) |
int paintOrder = 0; |
CSSValueListInspector iter(cssPaintOrder); |
for (size_t i = 0; i < iter.length(); i++) { |
- CSSPrimitiveValue* value = static_cast<CSSPrimitiveValue*>(iter.item(i)); |
+ CSSPrimitiveValue* value = toCSSPrimitiveValue(iter.item(i)); |
EPaintOrderType paintOrderType = PT_NONE; |
switch (value->getValueID()) { |