diff options
author | George Mount <mount@google.com> | 2012-06-20 16:22:50 -0700 |
---|---|---|
committer | George Mount <mount@google.com> | 2012-06-20 16:22:50 -0700 |
commit | bc17d11c07d97392bb41b9d707726bec5c8cb64d (patch) | |
tree | f72daa4b3bec8fc35c08eebbcfec31a64152c8e1 /Source/WebCore/html | |
parent | fc7f71bad1fe01396717f3425429f04cb009f741 (diff) | |
download | external_webkit-bc17d11c07d97392bb41b9d707726bec5c8cb64d.zip external_webkit-bc17d11c07d97392bb41b9d707726bec5c8cb64d.tar.gz external_webkit-bc17d11c07d97392bb41b9d707726bec5c8cb64d.tar.bz2 |
Remove updateTextfield for changing passwords.
The UI no longer needs to know about password field changes as
it is not required like it was with the removed WebTextView.
Change-Id: I16a6bb44c31c83c5c3e9cb70f2bc865d5eb2732c
Diffstat (limited to 'Source/WebCore/html')
-rw-r--r-- | Source/WebCore/html/HTMLInputElement.cpp | 6 | ||||
-rw-r--r-- | Source/WebCore/html/HTMLTextAreaElement.cpp | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/Source/WebCore/html/HTMLInputElement.cpp b/Source/WebCore/html/HTMLInputElement.cpp index 36cdf51..4ede2a8 100644 --- a/Source/WebCore/html/HTMLInputElement.cpp +++ b/Source/WebCore/html/HTMLInputElement.cpp @@ -444,10 +444,6 @@ void HTMLInputElement::setType(const String& type) void HTMLInputElement::updateType() { OwnPtr<InputType> newType = InputType::create(this, fastGetAttribute(typeAttr)); -#ifdef ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS - if (newType->isPasswordField() && document()->focusedNode() == this) - PlatformBridge::updateTextfield(document()->view(), this, true, String()); -#endif bool hadType = m_hasType; m_hasType = true; if (m_inputType->formControlType() == newType->formControlType()) @@ -912,7 +908,7 @@ void HTMLInputElement::setValue(const String& value, bool sendChangeEvent) unsigned max = m_data.value().length(); #ifdef ANDROID_ACCEPT_CHANGES_TO_FOCUSED_TEXTFIELDS // Make sure our UI side textfield changes to match the RenderTextControl - PlatformBridge::updateTextfield(document()->view(), this, false, value); + PlatformBridge::updateTextfield(document()->view(), this, value); #endif if (document()->focusedNode() == this) InputElement::updateSelectionRange(this, this, max, max); diff --git a/Source/WebCore/html/HTMLTextAreaElement.cpp b/Source/WebCore/html/HTMLTextAreaElement.cpp index 5b12a14..50471d1 100644 --- a/Source/WebCore/html/HTMLTextAreaElement.cpp +++ b/Source/WebCore/html/HTMLTextAreaElement.cpp @@ -329,7 +329,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 - PlatformBridge::updateTextfield(document()->view(), this, false, value); + PlatformBridge::updateTextfield(document()->view(), this, value); #endif unsigned endOfString = m_value.length(); setSelectionRange(endOfString, endOfString); |