| Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| index e1d2f0fe18572803afa15c40bfe7af59a60e36ee..e0bec0d04b7f7e5410c475b8e79a6102a73e6c87 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -285,7 +285,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
|
| // If text is empty, then delete the old composition here. If text is non-empty, InsertTextCommand::input
|
| // will delete the old composition with an optimized replace operation.
|
| if (text.isEmpty()) {
|
| - ASSERT(frame().document());
|
| + DCHECK(frame().document());
|
| TypingCommand::deleteSelection(*frame().document(), TypingCommand::PreventSpellChecking);
|
| }
|
|
|
| @@ -293,7 +293,7 @@ void InputMethodController::setComposition(const String& text, const Vector<Comp
|
|
|
| if (text.isEmpty())
|
| return;
|
| - ASSERT(frame().document());
|
| + DCHECK(frame().document());
|
| TypingCommand::insertText(*frame().document(), text, TypingCommand::SelectInsertedText | TypingCommand::PreventSpellChecking, TypingCommand::TextCompositionUpdate);
|
|
|
| // Find out what node has the composition now.
|
| @@ -400,7 +400,7 @@ PlainTextRange InputMethodController::getSelectionOffsets() const
|
| if (range.isNull())
|
| return PlainTextRange();
|
| ContainerNode* editable = frame().selection().rootEditableElementOrTreeScopeRootNode();
|
| - ASSERT(editable);
|
| + DCHECK(editable);
|
| return PlainTextRange::create(*editable, range);
|
| }
|
|
|
|
|