Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index 9007ea3fcf2486b08bf4a6f9c98ecd52e85d4297..809e98c99cd949f3771818fdb01a334d988290d4 100644 |
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -2180,6 +2180,7 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert |
case CSSPropertyTextAlignLast: |
return cssValuePool().createValue(style->textAlignLast()); |
case CSSPropertyTextDecoration: |
+ return getTextDecorationShorthandValue(); |
case CSSPropertyTextDecorationLine: |
return renderTextDecorationFlagsToCSSValue(style->textDecoration()); |
case CSSPropertyTextDecorationStyle: |
@@ -3085,4 +3086,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 |