Index: chrome/renderer/spellchecker/spellcheck_provider.cc |
diff --git a/chrome/renderer/spellchecker/spellcheck_provider.cc b/chrome/renderer/spellchecker/spellcheck_provider.cc |
index 191a6860c4a94f27362241a9bbe73e0720dcfe4c..2775a1c5079938aa8f5bc95ae7ce74a62919963f 100644 |
--- a/chrome/renderer/spellchecker/spellcheck_provider.cc |
+++ b/chrome/renderer/spellchecker/spellcheck_provider.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/renderer/spellchecker/spellcheck.h" |
#include "content/public/renderer/render_view.h" |
#include "third_party/WebKit/public/platform/WebVector.h" |
+#include "third_party/WebKit/public/web/WebElement.h" |
#include "third_party/WebKit/public/web/WebFrame.h" |
#include "third_party/WebKit/public/web/WebTextCheckingCompletion.h" |
#include "third_party/WebKit/public/web/WebTextCheckingResult.h" |
@@ -109,9 +110,9 @@ bool SpellCheckProvider::OnMessageReceived(const IPC::Message& message) { |
void SpellCheckProvider::FocusedNodeChanged(const blink::WebNode& unused) { |
#if defined(OS_MACOSX) |
bool enabled = false; |
- blink::WebNode node = render_view()->GetFocusedNode(); |
- if (!node.isNull()) |
- enabled = render_view()->IsEditableNode(node); |
+ blink::WebElement element = render_view()->GetFocusedElement(); |
+ if (!element.isNull()) |
+ enabled = render_view()->IsEditableNode(element); |
bool checked = false; |
if (enabled && render_view()->GetWebView()) { |