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

beidson at apple.com beidson at apple.com
Wed Dec 22 16:00:30 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit e75ca981afb83b70920ccba12069efd2d70bbe32
Author: beidson at apple.com <beidson at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Nov 17 21:02:35 2010 +0000

    https://bugs.webkit.org/show_bug.cgi?id=49682 - Expose "removeItemAtIndex" in WKMutableArray
    
    Reviewed by Darin Adler.
    
    * Shared/API/c/WKMutableArray.cpp:
    (WKArrayRemoveItemAtIndex):
    * Shared/API/c/WKMutableArray.h:
    
    * Shared/MutableArray.cpp:
    (WebKit::MutableArray::removeItemAtIndex):
    * Shared/MutableArray.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72237 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit2/ChangeLog b/WebKit2/ChangeLog
index 9681723..0358cb4 100644
--- a/WebKit2/ChangeLog
+++ b/WebKit2/ChangeLog
@@ -1,5 +1,19 @@
 2010-11-17  Brady Eidson  <beidson at apple.com>
 
+        Reviewed by Darin Adler.
+
+        https://bugs.webkit.org/show_bug.cgi?id=49682 - Expose "removeItemAtIndex" in WKMutableArray
+
+        * Shared/API/c/WKMutableArray.cpp:
+        (WKArrayRemoveItemAtIndex):
+        * Shared/API/c/WKMutableArray.h:
+
+        * Shared/MutableArray.cpp:
+        (WebKit::MutableArray::removeItemAtIndex):
+        * Shared/MutableArray.h:
+
+2010-11-17  Brady Eidson  <beidson at apple.com>
+
         Reviewed by Anders Carlsson.
 
         https://bugs.webkit.org/show_bug.cgi?id=49683 - Export WKContextMenuItem and WKContextMenuItemTypes as public headers
diff --git a/WebKit2/Shared/API/c/WKMutableArray.cpp b/WebKit2/Shared/API/c/WKMutableArray.cpp
index 48f557b..56bd72f 100644
--- a/WebKit2/Shared/API/c/WKMutableArray.cpp
+++ b/WebKit2/Shared/API/c/WKMutableArray.cpp
@@ -45,3 +45,9 @@ void WKArrayAppendItem(WKMutableArrayRef arrayRef, WKTypeRef itemRef)
 {
     toImpl(arrayRef)->append(toImpl(itemRef));
 }
+
+void WKArrayRemoveItemAtIndex(WKMutableArrayRef arrayRef, size_t index)
+{
+    toImpl(arrayRef)->removeItemAtIndex(index);
+}
+
diff --git a/WebKit2/Shared/API/c/WKMutableArray.h b/WebKit2/Shared/API/c/WKMutableArray.h
index 6618626..a0dc06a 100644
--- a/WebKit2/Shared/API/c/WKMutableArray.h
+++ b/WebKit2/Shared/API/c/WKMutableArray.h
@@ -42,6 +42,8 @@ WK_EXPORT bool WKArrayIsMutable(WKArrayRef array);
 
 WK_EXPORT void WKArrayAppendItem(WKMutableArrayRef array, WKTypeRef item);
 
+WK_EXPORT void WKArrayRemoveItemAtIndex(WKMutableArrayRef array, size_t index);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/WebKit2/Shared/MutableArray.cpp b/WebKit2/Shared/MutableArray.cpp
index 79245f3..00f718e 100644
--- a/WebKit2/Shared/MutableArray.cpp
+++ b/WebKit2/Shared/MutableArray.cpp
@@ -45,4 +45,9 @@ void MutableArray::reserveCapacity(unsigned capacity)
     m_entries.reserveCapacity(capacity);
 }
 
+void MutableArray::removeItemAtIndex(unsigned index)
+{
+    m_entries.remove(index);
+}
+
 } // namespace WebKit
diff --git a/WebKit2/Shared/MutableArray.h b/WebKit2/Shared/MutableArray.h
index 9cf369b..2718664 100644
--- a/WebKit2/Shared/MutableArray.h
+++ b/WebKit2/Shared/MutableArray.h
@@ -43,6 +43,7 @@ public:
 
     void append(APIObject*);
     void reserveCapacity(unsigned);
+    void removeItemAtIndex(unsigned);
 
     virtual bool isMutable() { return true; }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list