| Index: Source/core/css/CSSComputedStyleDeclaration.cpp
|
| diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| index c4dc49dbcb286c84a52b27b640ca2b17f4f81cf5..a1e2145ce6c0d67bac3ae86265b2575591ca5045 100644
|
| --- a/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| +++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| @@ -2220,11 +2220,18 @@ PassRefPtrWillBeRawPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValu
|
| }
|
| }
|
| case CSSPropertyTextIndent: {
|
| + // If RuntimeEnabledFeatures::css3TextEnabled() returns false or text-indent has only one value(<length> | <percentage>),
|
| + // getPropertyCSSValue() returns CSSValue.
|
| + // If RuntimeEnabledFeatures::css3TextEnabled() returns true and text-indent has each-line or hanging,
|
| + // getPropertyCSSValue() returns CSSValueList.
|
| RefPtrWillBeRawPtr<CSSValue> textIndent = zoomAdjustedPixelValueForLength(style->textIndent(), *style);
|
| - if (RuntimeEnabledFeatures::css3TextEnabled() && style->textIndentLine() == TextIndentEachLine) {
|
| + if (RuntimeEnabledFeatures::css3TextEnabled() && (style->textIndentLine() == TextIndentEachLine || style->textIndentType() == TextIndentHanging)) {
|
| RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
|
| list->append(textIndent.release());
|
| - list->append(cssValuePool().createIdentifierValue(CSSValueEachLine));
|
| + if (style->textIndentLine() == TextIndentEachLine)
|
| + list->append(cssValuePool().createIdentifierValue(CSSValueEachLine));
|
| + if (style->textIndentType() == TextIndentHanging)
|
| + list->append(cssValuePool().createIdentifierValue(CSSValueHanging));
|
| return list.release();
|
| }
|
| return textIndent.release();
|
|
|