| Index: WebCore/editing/ApplyStyleCommand.cpp
|
| ===================================================================
|
| --- WebCore/editing/ApplyStyleCommand.cpp (revision 68294)
|
| +++ WebCore/editing/ApplyStyleCommand.cpp (working copy)
|
| @@ -219,8 +219,8 @@
|
|
|
| // Assuming reconcileTextDecorationProperties has been called, there should not be -webkit-text-decorations-in-effect
|
| // Furthermore, text-decoration: none has been trimmed so that text-decoration property is always a CSSValueList.
|
| - if (RefPtr<CSSValue> textDecoration = style->getPropertyCSSValue(CSSPropertyTextDecoration)) {
|
| - ASSERT(textDecoration->isValueList());
|
| + RefPtr<CSSValue> textDecoration = style->getPropertyCSSValue(CSSPropertyTextDecoration);
|
| + if (textDecoration && textDecoration->isValueList()) {
|
| DEFINE_STATIC_LOCAL(RefPtr<CSSPrimitiveValue>, underline, (CSSPrimitiveValue::createIdentifier(CSSValueUnderline)));
|
| DEFINE_STATIC_LOCAL(RefPtr<CSSPrimitiveValue>, lineThrough, (CSSPrimitiveValue::createIdentifier(CSSValueLineThrough)));
|
|
|
| @@ -1387,11 +1387,9 @@
|
| newInlineStyle->setProperty(it->id(), it->value()->cssText(), it->isImportant(), ec);
|
|
|
| // text-decorations adds up
|
| - if (it->id() == CSSPropertyTextDecoration) {
|
| - ASSERT(it->value()->isValueList());
|
| + if (it->id() == CSSPropertyTextDecoration && it->value()->isValueList()) {
|
| RefPtr<CSSValue> textDecoration = newInlineStyle->getPropertyCSSValue(CSSPropertyTextDecoration);
|
| - if (textDecoration) {
|
| - ASSERT(textDecoration->isValueList());
|
| + if (textDecoration && textDecoration->isValueList()) {
|
| CSSValueList* textDecorationOfInlineStyle = static_cast<CSSValueList*>(textDecoration.get());
|
| CSSValueList* textDecorationOfStyleApplied = static_cast<CSSValueList*>(it->value());
|
|
|
|
|