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

abarth at webkit.org abarth at webkit.org
Wed Dec 22 11:27:12 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 409edfac23446d8bb5ae98068452af7ce46343f1
Author: abarth at webkit.org <abarth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sat Jul 24 20:02:36 2010 +0000

    2010-07-24  Adam Barth  <abarth at webkit.org>
    
            Reviewed by Eric Seidel.
    
            Re-order whitespace checks in the tokenizer
            https://bugs.webkit.org/show_bug.cgi?id=42923
    
            This saves about 0.5% on the parsing benchmark.
    
            * html/HTMLTokenizer.cpp:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64012 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 4a1ba57..03be1f2 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2010-07-24  Adam Barth  <abarth at webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        Re-order whitespace checks in the tokenizer
+        https://bugs.webkit.org/show_bug.cgi?id=42923
+
+        This saves about 0.5% on the parsing benchmark.
+
+        * html/HTMLTokenizer.cpp:
+
 2010-07-24  Andreas Kling  <andreas.kling at nokia.com>
 
         Reviewed by Simon Hausmann.
diff --git a/WebCore/html/HTMLTokenizer.cpp b/WebCore/html/HTMLTokenizer.cpp
index 3829580..c8234e4 100644
--- a/WebCore/html/HTMLTokenizer.cpp
+++ b/WebCore/html/HTMLTokenizer.cpp
@@ -58,7 +58,7 @@ inline UChar toLowerCase(UChar cc)
 
 inline bool isTokenizerWhitespace(UChar cc)
 {
-    return cc == '\x09' || cc == '\x0A' || cc == '\x0C' || cc == ' ';
+    return cc == ' ' || cc == '\x0A' || cc == '\x09' || cc == '\x0C';
 }
 
 inline void advanceStringAndASSERTIgnoringCase(SegmentedString& source, const char* expectedCharacters)

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list