2010-05-25 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 May 2010 07:43:13 +0000 (07:43 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 May 2010 07:43:13 +0000 (07:43 +0000)
        Unreviewed.  Fix typo pointed out by Maciej.

        * html/HTML5Lexer.cpp:
        (WebCore::HTMLNames::unconsumeCharacters):
        (WebCore::HTML5Lexer::consumeEntity):

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

WebCore/ChangeLog
WebCore/html/HTML5Lexer.cpp

index dce5bbf..f4b1e68 100644 (file)
@@ -1,5 +1,13 @@
 2010-05-25  Adam Barth  <abarth@webkit.org>
 
+        Unreviewed.  Fix typo pointed out by Maciej.
+
+        * html/HTML5Lexer.cpp:
+        (WebCore::HTMLNames::unconsumeCharacters):
+        (WebCore::HTML5Lexer::consumeEntity):
+
+2010-05-25  Adam Barth  <abarth@webkit.org>
+
         Reviewed by Eric Seidel.
 
         Fix <noembed> and <plaintext> content models
index 4fa7d27..e1ae8c9 100644 (file)
@@ -100,7 +100,7 @@ inline bool isAlphaNumeric(UChar cc)
     return (cc >= '0' && cc <= '9') || (cc >= 'a' && cc <= 'z') || (cc >= 'A' && cc <= 'Z');
 }
 
-void uncomsumeCharacters(SegmentedString& source, const Vector<UChar, 10>& consumedCharacters)
+void unconsumeCharacters(SegmentedString& source, const Vector<UChar, 10>& consumedCharacters)
 {
     if (consumedCharacters.size() == 1)
         source.push(consumedCharacters[0]);
@@ -260,7 +260,7 @@ UChar HTML5Lexer::consumeEntity(SegmentedString& source, bool& notEnoughCharacte
                 source.advanceAndASSERT(cc);
             }
             notEnoughCharacters = source.isEmpty();
-            uncomsumeCharacters(source, consumedCharacters);
+            unconsumeCharacters(source, consumedCharacters);
             return 0;
         }
         }
@@ -269,7 +269,7 @@ UChar HTML5Lexer::consumeEntity(SegmentedString& source, bool& notEnoughCharacte
     }
     ASSERT(source.isEmpty());
     notEnoughCharacters = true;
-    uncomsumeCharacters(source, consumedCharacters);
+    unconsumeCharacters(source, consumedCharacters);
     return 0;
 }