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 54440bfe70f0364eecdda6eb159c20f3dbdadbd4..a0700612cc2035d1a4176f82202c260307541d43 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
@@ -658,9 +658,11 @@ void StyleBuilderFunctions::applyInheritCSSPropertyContent(StyleResolverState&) |
void StyleBuilderFunctions::applyValueCSSPropertyContent(StyleResolverState& state, CSSValue* value) |
{ |
if (value->isPrimitiveValue()) { |
- ASSERT(toCSSPrimitiveValue(*value).getValueID() == CSSValueNormal); |
- state.style()->clearContent(); |
- return; |
+ CSSValueID cssValueID = toCSSPrimitiveValue(*value).getValueID(); |
+ if (cssValueID == CSSValueNormal || cssValueID == CSSValueNone) { |
Timothy Loh
2016/03/30 02:53:28
why did the assert become an if?
nainar
2016/03/30 03:27:36
Switched back.
|
+ state.style()->clearContent(); |
+ return; |
+ }; |
} |
// list of string, uri, counter, attr, i |
@@ -730,13 +732,11 @@ void StyleBuilderFunctions::applyValueCSSPropertyContent(StyleResolverState& sta |
didSet = true; |
break; |
default: |
- // none does not have any effect. |
- { } |
+ ASSERT_NOT_REACHED(); |
} |
} |
} |
- if (!didSet) |
- state.style()->clearContent(); |
+ ASSERT(didSet); |
} |
void StyleBuilderFunctions::applyValueCSSPropertyWebkitLocale(StyleResolverState& state, CSSValue* value) |