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

weinig at apple.com weinig at apple.com
Wed Dec 22 14:30:27 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 7e72bd034b223645b7eaca9e0ec218b39d995488
Author: weinig at apple.com <weinig at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 12 00:53:47 2010 +0000

    WebCore: Add WebKit2 equivalents for setValueForUser and setAutoFilled
    <rdar://problem/8475934>
    https://bugs.webkit.org/show_bug.cgi?id=47524
    
    Reviewed by Anders Carlsson.
    
    * WebCore.exp.in: Add needed export.
    
    WebKit2: Add WebKit2 equivalents for setValueForUser and setAutofilled
    <rdar://problem/8475934>
    https://bugs.webkit.org/show_bug.cgi?id=47524
    
    Reviewed by Anders Carlsson.
    
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
    (WKBundleNodeHandleSetHTMLInputElementValueForUser):
    (WKBundleNodeHandleSetHTMLInputElementAutofilled):
    * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
    (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
    (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
    * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69545 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 209da1a..49a4f09 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-11  Sam Weinig  <sam at webkit.org>
+
+        Reviewed by Anders Carlsson.
+
+        Add WebKit2 equivalents for setValueForUser and setAutoFilled
+        <rdar://problem/8475934>
+        https://bugs.webkit.org/show_bug.cgi?id=47524
+
+        * WebCore.exp.in: Add needed export.
+
 2010-10-11  Andrei Popescu  <andreip at google.com>
 
         Reviewed by Jeremy Orlow.
diff --git a/WebCore/WebCore.exp.in b/WebCore/WebCore.exp.in
index 732dde8..5cb2b51 100644
--- a/WebCore/WebCore.exp.in
+++ b/WebCore/WebCore.exp.in
@@ -174,8 +174,6 @@ __ZN7WebCore11FrameLoader4loadERKNS_15ResourceRequestEb
 __ZN7WebCore11FrameLoader6reloadEb
 __ZN7WebCore11Geolocation12setIsAllowedEb
 __ZN7WebCore11GeolocationD1Ev
-__ZN7WebCore13HTTPHeaderMapC1Ev
-__ZN7WebCore13HTTPHeaderMapD1Ev
 __ZN7WebCore11HistoryItem10targetItemEv
 __ZN7WebCore11HistoryItem11setReferrerERKN3WTF6StringE
 __ZN7WebCore11HistoryItem12addChildItemEN3WTF10PassRefPtrIS0_EE
@@ -269,11 +267,11 @@ __ZN7WebCore12SharedBuffer24createWithContentsOfFileERKN3WTF6StringE
 __ZN7WebCore12SharedBufferC1EPKci
 __ZN7WebCore12SharedBufferD1Ev
 __ZN7WebCore12TextEncodingC1ERKN3WTF6StringE
-__ZN7WebCore12TextIteratorD1Ev
 __ZN7WebCore12TextIterator11rangeLengthEPKNS_5RangeEb
 __ZN7WebCore12TextIterator26rangeFromLocationAndLengthEPNS_7ElementEiib
 __ZN7WebCore12TextIterator7advanceEv
 __ZN7WebCore12TextIteratorC1EPKNS_5RangeENS_20TextIteratorBehaviorE
+__ZN7WebCore12TextIteratorD1Ev
 __ZN7WebCore12WorkerThread17workerThreadCountEv
 __ZN7WebCore12applyCommandEN3WTF10PassRefPtrINS_11EditCommandEEE
 __ZN7WebCore12cacheStorageEv
@@ -284,6 +282,8 @@ __ZN7WebCore12iconDatabaseEv
 __ZN7WebCore13AXObjectCache11getOrCreateEPNS_12RenderObjectE
 __ZN7WebCore13AXObjectCache21gAccessibilityEnabledE
 __ZN7WebCore13AXObjectCache42gAccessibilityEnhancedUserInterfaceEnabledE
+__ZN7WebCore13HTTPHeaderMapC1Ev
+__ZN7WebCore13HTTPHeaderMapD1Ev
 __ZN7WebCore13HitTestResultC1ERKS0_
 __ZN7WebCore13HitTestResultD1Ev
 __ZN7WebCore13IdentifierRep3getEPKc
@@ -371,6 +371,7 @@ __ZN7WebCore16DeviceMotionData6createEN3WTF10PassRefPtrINS0_12AccelerationEEES4_
 __ZN7WebCore16FontFallbackList15releaseFontDataEv
 __ZN7WebCore16FontPlatformDataC1EP6NSFontbb
 __ZN7WebCore16FontPlatformDataD1Ev
+__ZN7WebCore16HTMLInputElement13setAutofilledEb
 __ZN7WebCore16LegacyWebArchive19createFromSelectionEPNS_5FrameE
 __ZN7WebCore16LegacyWebArchive21rawDataRepresentationEv
 __ZN7WebCore16LegacyWebArchive6createEN3WTF10PassRefPtrINS_15ArchiveResourceEEERNS1_6VectorIS4_Lm0EEERNS5_INS2_IS0_EELm0EEE
@@ -881,7 +882,6 @@ __ZNK7WebCore11FrameLoader16outgoingReferrerEv
 __ZNK7WebCore11FrameLoader20activeDocumentLoaderEv
 __ZNK7WebCore11FrameLoader27numPendingOrLoadingRequestsEb
 __ZNK7WebCore11FrameLoader8loadTypeEv
-__ZNK7WebCore13HTTPHeaderMap3getERKN3WTF12AtomicStringE
 __ZNK7WebCore11HistoryItem10visitCountEv
 __ZNK7WebCore11HistoryItem11hasChildrenEv
 __ZNK7WebCore11HistoryItem11scrollPointEv
@@ -919,6 +919,7 @@ __ZNK7WebCore12TextIterator5rangeEv
 __ZNK7WebCore13ContainerNode14childNodeCountEv
 __ZNK7WebCore13ContainerNode9childNodeEj
 __ZNK7WebCore13HTTPHeaderMap3getEPKc
+__ZNK7WebCore13HTTPHeaderMap3getERKN3WTF12AtomicStringE
 __ZNK7WebCore13HitTestResult10isLiveLinkEv
 __ZNK7WebCore13HitTestResult10isSelectedEv
 __ZNK7WebCore13HitTestResult11targetFrameEv
diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 15cfca3..fceee5e 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,3 +1,20 @@
+2010-10-11  Sam Weinig  <sam at webkit.org>
+
+        Reviewed by Anders Carlsson.
+
+        Add WebKit2 equivalents for setValueForUser and setAutofilled
+        <rdar://problem/8475934>
+        https://bugs.webkit.org/show_bug.cgi?id=47524
+
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
+        (WKBundleNodeHandleSetHTMLInputElementValueForUser):
+        (WKBundleNodeHandleSetHTMLInputElementAutofilled):
+        * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
+        (WebKit::InjectedBundleNodeHandle::setHTMLInputElementValueForUser):
+        (WebKit::InjectedBundleNodeHandle::setHTMLInputElementAutofilled):
+        * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
+
 2010-10-11  Brian Weinstein  <bweinstein at apple.com>
 
         Windows build fix. Add a needed include.
diff --git a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
index 2527005..7f7a110 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp
@@ -42,3 +42,13 @@ WKBundleNodeHandleRef WKBundleNodeHandleCreate(JSContextRef contextRef, JSObject
     RefPtr<InjectedBundleNodeHandle> nodeHandle = InjectedBundleNodeHandle::getOrCreate(contextRef, objectRef);
     return toAPI(nodeHandle.release().releaseRef());
 }
+
+void WKBundleNodeHandleSetHTMLInputElementValueForUser(WKBundleNodeHandleRef htmlInputElementHandleRef, WKStringRef valueRef)
+{
+    toImpl(htmlInputElementHandleRef)->setHTMLInputElementValueForUser(toWTFString(valueRef));
+}
+
+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 510ca02..e35a83c 100644
--- a/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
+++ b/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h
@@ -28,6 +28,7 @@
 
 #include <JavaScriptCore/JavaScript.h>
 #include <WebKit2/WKBase.h>
+#include <WebKit2/WKGeometry.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -35,6 +36,11 @@ extern "C" {
 
 WK_EXPORT WKBundleNodeHandleRef WKBundleNodeHandleCreate(JSContextRef context, JSObjectRef object);
 
+/* Additional DOM Operations */
+
+WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementValueForUser(WKBundleNodeHandleRef htmlInputElementHandle, WKStringRef value);
+WK_EXPORT void WKBundleNodeHandleSetHTMLInputElementAutofilled(WKBundleNodeHandleRef htmlInputElementHandle, bool filled);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
index 8caaecb..547ddf1 100644
--- a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
+++ b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
@@ -26,11 +26,15 @@
 #include "InjectedBundleNodeHandle.h"
 
 #include <JavaScriptCore/APICast.h>
+#include <WebCore/HTMLInputElement.h>
 #include <WebCore/JSNode.h>
 #include <WebCore/Node.h>
+#include <WebCore/HTMLNames.h>
 #include <wtf/HashMap.h>
+#include <wtf/text/WTFString.h>
 
 using namespace WebCore;
+using namespace HTMLNames;
 
 namespace WebKit {
 
@@ -82,4 +86,23 @@ Node* InjectedBundleNodeHandle::coreNode() const
     return m_node.get();
 }
 
+// Additional DOM Operations
+// Note: These should only be operations that are not exposed to JavaScript.
+
+void InjectedBundleNodeHandle::setHTMLInputElementValueForUser(const String& value)
+{
+    if (!m_node->hasTagName(inputTag))
+        return;
+
+    static_cast<HTMLInputElement*>(m_node.get())->setValueForUser(value);
+}
+
+void InjectedBundleNodeHandle::setHTMLInputElementAutofilled(bool filled)
+{
+    if (!m_node->hasTagName(inputTag))
+        return;
+
+    static_cast<HTMLInputElement*>(m_node.get())->setAutofilled(filled);
+}
+
 } // namespace WebKit
diff --git a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
index 8f65d91..94090e1 100644
--- a/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
+++ b/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h
@@ -25,6 +25,7 @@
 
 #include "APIObject.h"
 #include <JavaScriptCore/JSBase.h>
+#include <wtf/Forward.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefPtr.h>
 
@@ -47,6 +48,11 @@ public:
 
     WebCore::Node* coreNode() const;
 
+    // Additional DOM Operations
+    // Note: These should only be operations that are not exposed to JavaScript.
+    void setHTMLInputElementValueForUser(const String&);
+    void setHTMLInputElementAutofilled(bool);
+
 private:
     static PassRefPtr<InjectedBundleNodeHandle> create(WebCore::Node*);
     InjectedBundleNodeHandle(WebCore::Node*);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list