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 cfdc3f80e9ffc9b15b0e46129032835f1061f681..54440bfe70f0364eecdda6eb159c20f3dbdadbd4 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -657,6 +657,11 @@ void StyleBuilderFunctions::applyInheritCSSPropertyContent(StyleResolverState&) |
void StyleBuilderFunctions::applyValueCSSPropertyContent(StyleResolverState& state, CSSValue* value) |
{ |
+ if (value->isPrimitiveValue()) { |
+ ASSERT(toCSSPrimitiveValue(*value).getValueID() == CSSValueNormal); |
+ state.style()->clearContent(); |
+ return; |
+ } |
// list of string, uri, counter, attr, i |
bool didSet = false; |
@@ -725,7 +730,7 @@ void StyleBuilderFunctions::applyValueCSSPropertyContent(StyleResolverState& sta |
didSet = true; |
break; |
default: |
- // normal and none do not have any effect. |
+ // none does not have any effect. |
{ } |
} |
} |