[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.17-1283-gcf603cf
timothy at apple.com
timothy at apple.com
Tue Jan 5 23:41:04 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit d0f2dfce24692ba3218ee197c755558424d4ef42
Author: timothy at apple.com <timothy at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Dec 2 19:21:00 2009 +0000
Expose setValueForUser for the COM DOMHTMLInputElement.
<rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
Reviewed by Dan Bernstein.
* DOMHTMLClasses.cpp:
(DOMHTMLInputElement::setValueForUser):
* Interfaces/DOMHTML.idl:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/win/ChangeLog b/WebKit/win/ChangeLog
index cd9d3a7..be21ddf 100644
--- a/WebKit/win/ChangeLog
+++ b/WebKit/win/ChangeLog
@@ -1,3 +1,15 @@
+2009-12-02 Timothy Hatcher <timothy at apple.com>
+
+ Expose setValueForUser for the COM DOMHTMLInputElement.
+
+ <rdar://problem/6760590> Would like a way to detect a login form AutoFill from JavaScript
+
+ Reviewed by Dan Bernstein.
+
+ * DOMHTMLClasses.cpp:
+ (DOMHTMLInputElement::setValueForUser):
+ * Interfaces/DOMHTML.idl:
+
2009-12-01 Nikolas Zimmermann <nzimmermann at rim.com>
Not reviewed. Try to fix windows build.
diff --git a/WebKit/win/DOMHTMLClasses.cpp b/WebKit/win/DOMHTMLClasses.cpp
index aae7509..db5052e 100644
--- a/WebKit/win/DOMHTMLClasses.cpp
+++ b/WebKit/win/DOMHTMLClasses.cpp
@@ -1225,7 +1225,17 @@ HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setValue(
inputElement->setValue(String((UChar*) value, SysStringLen(value)));
return S_OK;
}
-
+
+HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::setValueForUser(
+ /* [in] */ BSTR value)
+{
+ ASSERT(m_element);
+ ASSERT(m_element->hasTagName(inputTag));
+ HTMLInputElement* inputElement = static_cast<HTMLInputElement*>(m_element);
+ inputElement->setValueForUser(String(static_cast<UChar*>(value), SysStringLen(value)));
+ return S_OK;
+}
+
HRESULT STDMETHODCALLTYPE DOMHTMLInputElement::select( void)
{
ASSERT(m_element && m_element->hasTagName(inputTag));
diff --git a/WebKit/win/Interfaces/DOMHTML.idl b/WebKit/win/Interfaces/DOMHTML.idl
index 6c276aa..18af67c 100644
--- a/WebKit/win/Interfaces/DOMHTML.idl
+++ b/WebKit/win/Interfaces/DOMHTML.idl
@@ -772,6 +772,11 @@ interface IDOMHTMLInputElement : IDOMElement
HRESULT setValue([in] BSTR value);
/*
+ - (void)setValueForUser:(NSString *)value;
+ */
+ HRESULT setValueForUser([in] BSTR value);
+
+ /*
- (void)blur;
*/
HRESULT blur();
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list