diff options
author | Ben Murdoch <benm@google.com> | 2010-10-08 16:00:21 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-08 17:06:07 +0100 |
commit | 9dd59112365c6368f9d510822009c59f1981d670 (patch) | |
tree | bb72cfa44df2a60ebf80df9070c6c127fb77e7f4 /WebCore/html/HTMLTextAreaElement.cpp | |
parent | f4220bb8c200137e401bfce313ec01c6dc1e59e0 (diff) | |
download | external_webkit-9dd59112365c6368f9d510822009c59f1981d670.zip external_webkit-9dd59112365c6368f9d510822009c59f1981d670.tar.gz external_webkit-9dd59112365c6368f9d510822009c59f1981d670.tar.bz2 |
Fix WebCore/WebKit layering violation.
Move the call to WebViewCore::updateTextfield() to the PlatformBridge
so that WebCore code does not depend on WebKit code to compile.
In addition to being a layering violation, the inclusion of
WebViewCore.h includes WebCoreJni.h, which in a future change
causes LOG to get #undefined when using the chromium net stack.
Change-Id: Id88d332624323e03ce82120ef55db200cbabe63b
Diffstat (limited to 'WebCore/html/HTMLTextAreaElement.cpp')
-rw-r--r-- | WebCore/html/HTMLTextAreaElement.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WebCore/html/HTMLTextAreaElement.cpp b/WebCore/html/HTMLTextAreaElement.cpp index a5e7d1e..2741bfe 100644 --- a/WebCore/html/HTMLTextAreaElement.cpp +++ b/WebCore/html/HTMLTextAreaElement.cpp @@ -50,7 +50,7 @@ #include <wtf/StdLibExtras.h> #ifdef ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS -#include "WebViewCore.h" +#include "PlatformBridge.h" #endif namespace WebCore { @@ -325,7 +325,7 @@ void HTMLTextAreaElement::setValueCommon(const String& value) if (document()->focusedNode() == this) { #ifdef ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS // Make sure our UI side textfield changes to match the RenderTextControl - android::WebViewCore::getWebViewCore(document()->view())->updateTextfield(this, false, value); + PlatformBridge::updateTextfield(document()->view(), this, false, value); #endif unsigned endOfString = m_value.length(); setSelectionRange(endOfString, endOfString); |