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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2799923003: Change SpellCheckProvider into a RenderFrameObserver (Closed)
Patch Set: Created 3 years, 8 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/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index b04cd1c097701ec218b35073b1dbb74a91785b8f..c28c39528ccc7e12d6cd30a5845c1b185ad3eb52 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1074,6 +1074,7 @@ bool WebLocalFrameImpl::isCommandEnabled(const WebString& name) const {
}
void WebLocalFrameImpl::enableSpellChecking(bool enable) {
+ CHECK(frame());
Xiaocheng 2017/04/07 01:43:46 Crash site.
if (enable == isSpellCheckingEnabled())
return;
frame()->spellChecker().toggleSpellCheckingEnabled();

Powered by Google App Engine
This is Rietveld 408576698