Chromium Code Reviews| Index: Source/core/editing/ReplaceSelectionCommand.cpp |
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
| index 0975edaaacbaed5c06674840e5429380726a0829..30db418951bdd358c5046a915224a3e09be37505 100644 |
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp |
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
| @@ -182,7 +182,7 @@ ReplacementFragment::ReplacementFragment(Document* document, DocumentFragment* f |
| } |
| RefPtrWillBeRawPtr<Range> range = VisibleSelection::selectionFromContentsOfNode(holder.get()).toNormalizedRange(); |
| - String text = plainText(range.get(), static_cast<TextIteratorBehavior>(TextIteratorEmitsOriginalText | TextIteratorIgnoresStyleVisibility)); |
| + String text = range ? plainText(range.get(), static_cast<TextIteratorBehavior>(TextIteratorEmitsOriginalText | TextIteratorIgnoresStyleVisibility)) : emptyString(); |
|
hajimehoshi
2015/06/30 05:02:55
Does this mean plainText always accept non-null ra
yosin_UTC9
2015/06/30 05:04:54
Another patch will remove |plainText(Range*)| API
|
| removeInterchangeNodes(holder.get()); |
| removeUnrenderedNodes(holder.get()); |