#include "web/WebTextCheckingCompletionImpl.h"
#include "web/WebViewImpl.h"
-using namespace WebCore;
-
namespace blink {
SpellCheckerClientImpl::SpellCheckerClientImpl(WebViewImpl* webview)
{
// Spellcheck should be enabled for all editable areas (such as textareas,
// contentEditable regions, designMode docs and inputs).
- if (!m_webView->focusedWebCoreFrame()->isLocalFrame())
+ if (!m_webView->focusedCoreFrame()->isLocalFrame())
return false;
- const LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame());
+ const LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame());
if (!frame)
return false;
if (frame->spellChecker().isSpellCheckingEnabledInFocusedNode())
}
} else {
m_spellCheckThisFieldStatus = SpellCheckForcedOn;
- if (m_webView->focusedWebCoreFrame()->isLocalFrame()) {
- if (LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame())) {
+ if (m_webView->focusedCoreFrame()->isLocalFrame()) {
+ if (LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame())) {
VisibleSelection frameSelection = frame->selection().selection();
// If a selection is in an editable element spell check its content.
if (Element* rootEditableElement = frameSelection.rootEditableElement()) {
bool SpellCheckerClientImpl::isGrammarCheckingEnabled()
{
- const LocalFrame* frame = toLocalFrame(m_webView->focusedWebCoreFrame());
+ const LocalFrame* frame = toLocalFrame(m_webView->focusedCoreFrame());
return frame && frame->settings() && (frame->settings()->asynchronousSpellCheckingEnabled() || frame->settings()->unifiedTextCheckerEnabled());
}
bool SpellCheckerClientImpl::shouldEraseMarkersAfterChangeSelection(TextCheckingType type) const
{
- const Frame* frame = m_webView->focusedWebCoreFrame();
+ const Frame* frame = m_webView->focusedCoreFrame();
return !frame || !frame->settings() || (!frame->settings()->asynchronousSpellCheckingEnabled() && !frame->settings()->unifiedTextCheckerEnabled());
}
*misspellingLength = spellLength;
}
-void SpellCheckerClientImpl::requestCheckingOfString(WTF::PassRefPtr<WebCore::TextCheckingRequest> request)
+void SpellCheckerClientImpl::requestCheckingOfString(WTF::PassRefPtr<TextCheckingRequest> request)
{
if (m_webView->spellCheckClient()) {
const String& text = request->data().text();
return false;
}
-} // namesace WebKit
+} // namespace blink