[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

sullivan at apple.com sullivan at apple.com
Wed Dec 22 15:17:00 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit a2cf0fb03b327d4b4d788e62dd6fd6a3b2cfdbbc
Author: sullivan at apple.com <sullivan at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Oct 29 20:06:48 2010 +0000

    https://bugs.webkit.org/show_bug.cgi?id=48666
    WebKit2 should provide counterpart getter to WKBundleNodeHandleSetHTMLInputElementAutofilled
    
    Reviewed by Anders Carlsson.
    
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
    (WKBundleNodeHandleGetHTMLInputElementAutofilled):
    New function, calls through to InjectedBundleNodeHandle.
    
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
    Declared new function.
    
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
    (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
    New function, calls through to HTMLInputElement.
    
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
    Declared new function.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70916 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 03bb508..67efd12 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,24 @@
+2010-10-29  John Sullivan  <sullivan at apple.com>
+
+        Reviewed by Anders Carlsson.
+
+        https://bugs.webkit.org/show_bug.cgi?id=48666
+        WebKit2 should provide counterpart getter to WKBundleNodeHandleSetHTMLInputElementAutofilled
+
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
+        (WKBundleNodeHandleGetHTMLInputElementAutofilled):
+        New function, calls through to InjectedBundleNodeHandle.
+
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
+        Declared new function.
+
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+        (WebKit::InjectedBundleNodeHandle::isHTMLInputElementAutofilled):
+        New function, calls through to HTMLInputElement.
+
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
+        Declared new function.
+
 2010-10-29  Jessie Berlin  <jberlin at apple.com>
 
         Reviewed by Anders Carlsson.
diff --git a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
index 5f98cd0..0be4bdf 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
@@ -53,6 +53,11 @@ void WKBundleNodeHandleSetHTMLInputElementValueForUser(WKBundleNodeHandleRef htm
     toImpl(htmlInputElementHandleRef)->setHTMLInputElementValueForUser(toWTFString(valueRef));
 }
 
+bool WKBundleNodeHandleGetHTMLInputElementAutofilled(WKBundleNodeHandleRef htmlInputElementHandleRef)
+{
+    return toImpl(htmlInputElementHandleRef)->isHTMLInputElementAutofilled();
+}
+
 void WKBundleNodeHandleSetHTMLInputElementAutofilled(WKBundleNodeHandleRef htmlInputElementHandleRef, bool filled)
 {
     toImpl(htmlInputElementHandleRef)->setHTMLInputElementAutofilled(filled);
diff --git a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
index 376d931..c0f0e82 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
@@ -43,6 +43,7 @@ WK_EXPORT WKRect WKBundleNodeHandleGetElementBounds(WKBundleNodeHandleRef nodeHa
 
 /* HTMLInputElement Specific Operations */
 WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementValueForUser(WKBundleNodeHandleRef htmlInputElementHandle, WKStringRef value);
+WK_EXPORT bool WKBundleNodeHandleGetHTMLInputElementAutofilled(WKBundleNodeHandleRef htmlInputElementHandle);
 WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutofilled(WKBundleNodeHandleRef htmlInputElementHandle, bool filled);
 
 /* HTMLTableCellElement Specific Operations */
diff --git a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
index 572fd80..b8ce728 100644
--- a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
+++ b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
@@ -107,6 +107,15 @@ void InjectedBundleNodeHandle::setHTMLInputElementValueForUser(const String& val
     static_cast<HTMLInputElement*>(m_node.get())->setValueForUser(value);
 }
 
+bool InjectedBundleNodeHandle::isHTMLInputElementAutofilled() const
+{
+    if (!m_node->hasTagName(inputTag))
+        return false;
+    
+    return static_cast<HTMLInputElement*>(m_node.get())->isAutofilled();
+}
+
+
 void InjectedBundleNodeHandle::setHTMLInputElementAutofilled(bool filled)
 {
     if (!m_node->hasTagName(inputTag))
diff --git a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
index 755afd9..ad99840 100644
--- a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
+++ b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
@@ -53,6 +53,7 @@ public:
     // Note: These should only be operations that are not exposed to JavaScript.
     WebCore::IntRect elementBounds() const;
     void setHTMLInputElementValueForUser(const String&);
+    bool isHTMLInputElementAutofilled() const;
     void setHTMLInputElementAutofilled(bool);
     PassRefPtr<InjectedBundleNodeHandle> copyHTMLTableCellElementCellAbove();
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list