Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: Source/core/editing/Editor.cpp

Issue 23450030: Introduce Position::inDocument() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/IndentOutdentCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index 75f5ef06f107a2fe1bf5ec514e5d9359abf2d57f..38e7348eabbb5ac5c18e474190a4f540a9eb79f4 100644
--- a/Source/core/editing/Editor.cpp
+++ b/Source/core/editing/Editor.cpp
@@ -2098,8 +2098,7 @@ void Editor::respondToChangedSelection(const VisibleSelection& oldSelection, Fra
if (shouldCheckSpellingAndGrammar
&& closeTyping
&& oldSelection.isContentEditable()
- && oldSelection.start().deprecatedNode()
- && oldSelection.start().anchorNode()->inDocument()
+ && oldSelection.start().inDocument()
&& !isSelectionInTextField(oldSelection)) {
spellCheckOldSelection(oldSelection, newAdjacentWords, newSelectedSentence);
}
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/IndentOutdentCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698