| Index: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| index 4dda54c77b692b36d6c73c3b3d308ebd3223f48b..51037726195807c88f997690ea925479267dc92b 100644
|
| --- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
|
| @@ -212,7 +212,7 @@ void SpellChecker::DidBeginEditing(Element* element) {
|
| TextControlElement* enclosing_text_control_element = nullptr;
|
| if (!IsTextControlElement(*element)) {
|
| enclosing_text_control_element =
|
| - EnclosingTextControl(Position::FirstPositionInNode(element));
|
| + EnclosingTextControl(Position::FirstPositionInNode(*element));
|
| }
|
| element =
|
| enclosing_text_control_element ? enclosing_text_control_element : element;
|
| @@ -537,7 +537,7 @@ void SpellChecker::MarkMisspellingsAfterReplaceSelectionCommand(
|
| if (!node)
|
| return;
|
|
|
| - EphemeralRange paragraph_range(Position::FirstPositionInNode(node),
|
| + EphemeralRange paragraph_range(Position::FirstPositionInNode(*node),
|
| Position::LastPositionInNode(node));
|
| TextCheckingParagraph text_to_check(inserted_range, paragraph_range);
|
| ChunkAndMarkAllMisspellings(text_to_check);
|
|
|