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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2348893002: Prune createVisiblePositionDeprecated from HTMLTextFormControlElement (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index 76e59de8023c0214119f06ceb15438477e3dae20..ba607a7ce492343a696305685567528f35744ed8 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -1572,6 +1572,7 @@ bool Internals::hasSpellingMarker(Document* document, int from, int length)
if (!document->frame())
return false;
+ document->updateStyleAndLayoutIgnorePendingStylesheets();
return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Spelling, from, length);
}
@@ -1644,6 +1645,7 @@ bool Internals::hasGrammarMarker(Document* document, int from, int length)
if (!document->frame())
return false;
+ document->updateStyleAndLayoutIgnorePendingStylesheets();
return document->frame()->spellChecker().selectionStartHasMarkerFor(DocumentMarker::Grammar, from, length);
}

Powered by Google App Engine
This is Rietveld 408576698