Index: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
index 87f4b581a09e63550590402feb1e681dbc117d29..2071a09c3ba12c75e0dcb6e64db9fa4d74eb48b4 100644 |
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl |
@@ -312,11 +312,6 @@ namespace WebCore { |
{{ declare_value_function(property_id) }} |
{ |
- if (!value->isValueList()) |
- return; |
- |
- CSSValueList* list = toCSSValueList(value); |
- |
CounterDirectiveMap& map = state.style()->accessCounterDirectives(); |
typedef CounterDirectiveMap::iterator Iterator; |
@@ -324,6 +319,11 @@ namespace WebCore { |
for (Iterator it = map.begin(); it != end; ++it) |
it->value.clear{{action}}(); |
+ if (!value->isValueList()) |
+ return; |
Timothy Loh
2014/01/22 23:55:20
Maybe worthwhile to ASSERT(toCSSPrimitiveValue(val
|
+ |
+ CSSValueList* list = toCSSValueList(value); |
+ |
int length = list ? list->length() : 0; |
for (int i = 0; i < length; ++i) { |
CSSValue* currValue = list->itemWithoutBoundsCheck(i); |