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

loislo at chromium.org loislo at chromium.org
Wed Dec 22 14:43:03 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 2c8279deb3e5e639f6d61a4bf0ab9f39487f0693
Author: loislo at chromium.org <loislo at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Oct 18 15:24:18 2010 +0000

    2010-10-18  Ilya Tikhonovsky  <loislo at chromium.org>
    
            Reviewed by Yury Semikhatsky.
    
            Web Inspector: toJSON serialization for Numbers should be fixed.
            DecimalNumber is used instead of printf.
    
            https://bugs.webkit.org/show_bug.cgi?id=43832
    
            * inspector/InspectorValues.cpp:
            (WebCore::InspectorBasicValue::writeJSON):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69959 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 34bd385..3f5cd1a 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -2,6 +2,18 @@
 
         Reviewed by Yury Semikhatsky.
 
+        Web Inspector: toJSON serialization for Numbers should be fixed.
+        DecimalNumber is used instead of printf.
+
+        https://bugs.webkit.org/show_bug.cgi?id=43832
+
+        * inspector/InspectorValues.cpp:
+        (WebCore::InspectorBasicValue::writeJSON):
+
+2010-10-18  Ilya Tikhonovsky  <loislo at chromium.org>
+
+        Reviewed by Yury Semikhatsky.
+
         Web Inspector: [REGRESSION] Inspector window visible during run-webkit-tests.
         The initial state of an inspector setting should stay untouched
         if the profile has no value for it.
diff --git a/WebCore/inspector/InspectorValues.cpp b/WebCore/inspector/InspectorValues.cpp
index 452fa7f..318d7bb 100644
--- a/WebCore/inspector/InspectorValues.cpp
+++ b/WebCore/inspector/InspectorValues.cpp
@@ -33,6 +33,8 @@
 
 #if ENABLE(INSPECTOR)
 
+#include <wtf/DecimalNumber.h>
+
 namespace WebCore {
 
 namespace {
@@ -604,9 +606,9 @@ void InspectorBasicValue::writeJSON(Vector<UChar>* output) const
         else
             output->append(falseString, 5);
     } else if (type() == TypeNumber) {
-        String value = String::format("%f", m_doubleValue);
-        value.replace(',', '.');
-        output->append(value.characters(), value.length());
+        NumberToStringBuffer buffer;
+        unsigned length = DecimalNumber(m_doubleValue).toStringDecimal(buffer);
+        output->append(buffer, length);
     }
 }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list