| Index: Source/core/css/CSSComputedStyleDeclaration.cpp
|
| diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp
|
| index 44b0c319e091e2411f67521121e63ecec47e40c8..71d75fc092da01c24680fff3ecf7161177cdf815 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
|
|
|