Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index 82158100fcd84ad2a1b26eed060053aafc4056a3..4bd132f288bd73ebb92c9ad43488fd412644138a 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -2379,6 +2379,12 @@ PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID |
case CSSPropertyTextOrientation: |
return CSSPrimitiveValue::create(style.getTextOrientation()); |
case CSSPropertyContent: |
+ if (!style.hasContent()) { |
+ if (style.styleType() == PseudoIdBefore || style.styleType() == PseudoIdAfter) |
+ return cssValuePool().createIdentifierValue(CSSValueNone); |
+ if (!styledNode->isPseudoElement()) |
+ return cssValuePool().createIdentifierValue(CSSValueNormal); |
alancutter (OOO until 2018)
2016/03/17 06:40:24
Should this be guarded by !style.hasContent()?
nainar
2016/03/17 06:54:24
As far as I understand from https://www.w3.org/TR/
|
+ } |
return valueForContentData(style); |
case CSSPropertyCounterIncrement: |
return valueForCounterDirectives(style, propertyID); |