| Index: Source/core/editing/EditingStyle.cpp
|
| diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp
|
| index b8b2e18761285c9f1d642d38d4672c6cca26094d..70a3a2df2514783920b5fde3e3d7d9da9fb7645a 100644
|
| --- a/Source/core/editing/EditingStyle.cpp
|
| +++ b/Source/core/editing/EditingStyle.cpp
|
| @@ -1425,12 +1425,13 @@ StyleChange::StyleChange(EditingStyle* style, const Position& position)
|
| , m_applySuperscript(false)
|
| {
|
| Document* document = position.document();
|
| - if (!style || !style->style() || !document || !document->frame())
|
| + if (!style || !style->style() || !document || !document->frame() || !position.element())
|
| return;
|
|
|
| RefPtrWillBeRawPtr<CSSComputedStyleDeclaration> computedStyle = position.computedStyle();
|
| // FIXME: take care of background-color in effect
|
| RefPtrWillBeRawPtr<MutableStylePropertySet> mutableStyle = getPropertiesNotIn(style->style(), computedStyle.get());
|
| + ASSERT(mutableStyle);
|
|
|
| reconcileTextDecorationProperties(mutableStyle.get());
|
| if (!document->frame()->editor().shouldStyleWithCSS())
|
|
|