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

paroga at webkit.org paroga at webkit.org
Wed Dec 22 16:23:55 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit a91ac216872a3ec080f1f9b1c9d3b554b78d8104
Author: paroga at webkit.org <paroga at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 23 00:55:59 2010 +0000

    2010-11-22  Patrick Gansterer  <paroga at webkit.org>
    
            Reviewed by Sam Weinig.
    
            Add WTF::FixedArray::size()
            https://bugs.webkit.org/show_bug.cgi?id=49891
    
            Add a method to get the size of a FixedArray.
    
            * wtf/FixedArray.h:
            (WTF::FixedArray::size):
    2010-11-22  Patrick Gansterer  <paroga at webkit.org>
    
            Reviewed by Sam Weinig.
    
            Use WTF::FixedArray::size()
            https://bugs.webkit.org/show_bug.cgi?id=49891
    
            * dom/Document.cpp:
            (WebCore::Document::~Document):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72574 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/JavaScriptCore/ChangeLog b/JavaScriptCore/ChangeLog
index 13491de..a67c386 100644
--- a/JavaScriptCore/ChangeLog
+++ b/JavaScriptCore/ChangeLog
@@ -1,5 +1,17 @@
 2010-11-22  Patrick Gansterer  <paroga at webkit.org>
 
+        Reviewed by Sam Weinig.
+
+        Add WTF::FixedArray::size()
+        https://bugs.webkit.org/show_bug.cgi?id=49891
+
+        Add a method to get the size of a FixedArray.
+
+        * wtf/FixedArray.h:
+        (WTF::FixedArray::size):
+
+2010-11-22  Patrick Gansterer  <paroga at webkit.org>
+
         Reviewed by Adam Roben.
 
         [WINCE] Set correct preprocessor definitions
diff --git a/JavaScriptCore/wtf/FixedArray.h b/JavaScriptCore/wtf/FixedArray.h
index 66f2327..c67d18c 100644
--- a/JavaScriptCore/wtf/FixedArray.h
+++ b/JavaScriptCore/wtf/FixedArray.h
@@ -29,7 +29,8 @@
 #include <wtf/Assertions.h>
 
 namespace WTF {
-template <typename T, int Size> class FixedArray {
+
+template <typename T, size_t Size> class FixedArray {
 public:
     T& operator[](size_t i)
     {
@@ -44,10 +45,14 @@ public:
     }
 
     T* data() { return m_data; }
+    size_t size() const { return Size; }
+
 private:
     T m_data[Size];
 };
-}
+
+} // namespace WTF
+
 using WTF::FixedArray;
 
 #endif // FixedArray_h
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index d4df669..aad616a 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-11-22  Patrick Gansterer  <paroga at webkit.org>
+
+        Reviewed by Sam Weinig.
+
+        Use WTF::FixedArray::size()
+        https://bugs.webkit.org/show_bug.cgi?id=49891
+
+        * dom/Document.cpp:
+        (WebCore::Document::~Document):
+
 2010-11-22  Ryosuke Niwa  <rniwa at webkit.org>
 
         Reviewed by Tony Chang.
diff --git a/WebCore/dom/Document.cpp b/WebCore/dom/Document.cpp
index 75414f6..83ba885 100644
--- a/WebCore/dom/Document.cpp
+++ b/WebCore/dom/Document.cpp
@@ -570,9 +570,8 @@ Document::~Document()
     clearAXObjectCache();
 
     m_decoder = 0;
-    
-    unsigned count = sizeof(m_nameCollectionInfo) / sizeof(m_nameCollectionInfo[0]);
-    for (unsigned i = 0; i < count; i++)
+
+    for (size_t i = 0; i < m_nameCollectionInfo.size(); ++i)
         deleteAllValues(m_nameCollectionInfo[i]);
 
     if (m_styleSheets)

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list