| Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| index 6d5853967979d907d2af3e104cb201bd7ab28150..31e26949d7718a3f7837fdc1b5bbeae0ed0797a6 100644
|
| --- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
| @@ -516,6 +516,8 @@ void LocalFrame::documentAttached() {
|
| DCHECK(document());
|
| selection().documentAttached(document());
|
| inputMethodController().documentAttached(document());
|
| + if (RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled())
|
| + idleSpellCheckCallback().documentAttached(document());
|
| }
|
|
|
| LocalDOMWindow* LocalFrame::domWindow() const {
|
| @@ -902,6 +904,12 @@ PluginData* LocalFrame::pluginData() const {
|
| tree().top()->securityContext()->getSecurityOrigin());
|
| }
|
|
|
| +void LocalFrame::setNeedsSpellChecking() {
|
| + if (!RuntimeEnabledFeatures::idleTimeSpellCheckingEnabled())
|
| + return;
|
| + idleSpellCheckCallback().setNeedsInvocation();
|
| +}
|
| +
|
| DEFINE_WEAK_IDENTIFIER_MAP(LocalFrame);
|
|
|
| FrameNavigationDisabler::FrameNavigationDisabler(LocalFrame& frame)
|
|
|