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

Unified Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 2702403004: Expand FrameSeleciton::start() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T12:32:36 Created 3 years, 10 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
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 ed065a791a6325329416906ea351498a79fb2d50..32174b63eecb817e2305c8f5980e63edaa9968c7 100644
--- a/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
+++ b/third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp
@@ -1049,7 +1049,12 @@ bool SpellChecker::selectionStartHasMarkerFor(
DocumentMarker::MarkerType markerType,
int from,
int length) const {
- Node* node = findFirstMarkable(frame().selection().start().anchorNode());
+ Node* node =
+ findFirstMarkable(frame()
+ .selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .start()
+ .anchorNode());
if (!node)
return false;

Powered by Google App Engine
This is Rietveld 408576698