Index: Source/core/editing/EditingStyle.cpp |
diff --git a/Source/core/editing/EditingStyle.cpp b/Source/core/editing/EditingStyle.cpp |
index 6e44f9af1d6196af24e7f72b7bed299f42c75d18..7cdae5029f6261cb93ad38b5f97da70c6f907029 100644 |
--- a/Source/core/editing/EditingStyle.cpp |
+++ b/Source/core/editing/EditingStyle.cpp |
@@ -1428,9 +1428,13 @@ StyleChange::StyleChange(EditingStyle* style, const Position& position) |
if (!style || !style->style() || !document || !document->frame()) |
return; |
+ if (!position.element()) |
yosin_UTC9
2015/03/11 01:07:32
nit: we can put this test into L1428.
rwlbuis
2015/03/11 19:19:17
Done.
|
+ 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()) |