2010-08-16 Yuta Kitamura <yutak@chromium.org>
authorhamaji@chromium.org <hamaji@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 11:57:17 +0000 (11:57 +0000)
committerhamaji@chromium.org <hamaji@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Aug 2010 11:57:17 +0000 (11:57 +0000)
        Reviewed by Shinichiro Hamaji.

        Attempt to fix Chromium's test_shell_tests.

        Port Chromium's WebEntities to HTMLEntityTable
        https://bugs.webkit.org/show_bug.cgi?id=44036

        * src/WebEntities.cpp:
        (WebKit::):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65411 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/chromium/ChangeLog
WebKit/chromium/src/WebEntities.cpp

index a3aa749..fe4bd44 100644 (file)
@@ -1,3 +1,15 @@
+2010-08-16  Yuta Kitamura  <yutak@chromium.org>
+
+        Reviewed by Shinichiro Hamaji.
+
+        Attempt to fix Chromium's test_shell_tests.
+
+        Port Chromium's WebEntities to HTMLEntityTable
+        https://bugs.webkit.org/show_bug.cgi?id=44036
+
+        * src/WebEntities.cpp:
+        (WebKit::):
+
 2010-08-15  Adam Barth  <abarth@webkit.org>
 
         Reviewed by Eric Seidel.
index d845b71..2e05d52 100644 (file)
@@ -61,7 +61,7 @@ void populateMapFromHTMLEntityTable(WTF::HashMap<int, WTF::String>& map)
     ASSERT(map.isEmpty());
     const HTMLEntityTableEntry* entry = HTMLEntityTable::firstEntry();
     const HTMLEntityTableEntry* end = HTMLEntityTable::lastEntry() + 1;
-    while (entry != end) {
+    for (; entry != end; ++entry) {
         String entity = entry->entity;
         int value = entry->value;
         ASSERT(value && !entity.isEmpty());