Commit 2e4aa8c6 authored by tony@chromium.org's avatar tony@chromium.org
Browse files

2010-05-19 Tony Chang <tony@chromium.org>

        Reviewed by Kent Tamura.

        [chromium] disable spelling suggestions if spellcheck=false
        https://bugs.webkit.org/show_bug.cgi?id=39402

        This is the Chromium fix for bug 25639 that was fixed in the
        other ports in r59585.

        * src/ContextMenuClientImpl.cpp:
        (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59819 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f849d713
2010-05-19 Tony Chang <tony@chromium.org>
Reviewed by Kent Tamura.
[chromium] disable spelling suggestions if spellcheck=false
https://bugs.webkit.org/show_bug.cgi?id=39402
This is the Chromium fix for bug 25639 that was fixed in the
other ports in r59585.
* src/ContextMenuClientImpl.cpp:
(WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
2010-05-19 Darin Fisher <darin@chromium.org>
Revert r59790 due to failing Chromium npruntime tests.
......
......@@ -203,7 +203,9 @@ PlatformMenuDescription ContextMenuClientImpl::getCustomMenuFromDefaultItems(
data.isEditable = true;
if (m_webView->focusedWebCoreFrame()->editor()->isContinuousSpellCheckingEnabled()) {
data.isSpellCheckingEnabled = true;
data.misspelledWord = selectMisspelledWord(defaultMenu, selectedFrame);
// Spellchecking might be enabled for the field, but could be disabled on the node.
if (m_webView->focusedWebCoreFrame()->editor()->spellCheckingEnabledInFocusedNode())
data.misspelledWord = selectMisspelledWord(defaultMenu, selectedFrame);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment