| Index: Source/core/css/CSSComputedStyleDeclaration.cpp
|
| diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| index 64defa56deadd233156d5206a76a7e3b2f516fb8..9a94c30c3d4c25dbbc5c3aef49ff3d3f2cae6912 100644
|
| --- a/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| +++ b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| @@ -2128,6 +2128,7 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
|
| case CSSPropertyTextAlign:
|
| return cssValuePool().createValue(style->textAlign());
|
| case CSSPropertyTextDecoration:
|
| + return getTextDecorationShorthandValue();
|
| case CSSPropertyTextDecorationLine:
|
| return renderTextDecorationFlagsToCSSValue(style->textDecoration());
|
| case CSSPropertyTextDecorationStyle:
|
| @@ -2990,4 +2991,13 @@ PassRefPtr<CSSValueList> CSSComputedStyleDeclaration::getBackgroundShorthandValu
|
| return list.release();
|
| }
|
|
|
| +PassRefPtr<CSSValueList> CSSComputedStyleDeclaration::getTextDecorationShorthandValue() const
|
| +{
|
| + static const CSSPropertyID properties[3] = { CSSPropertyTextDecorationLine, CSSPropertyTextDecorationStyle, CSSPropertyTextDecorationColor };
|
| +
|
| + RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated();
|
| + list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShorthand(CSSPropertyTextDecoration, properties, WTF_ARRAY_LENGTH(properties))));
|
| + return list.release();
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|