* khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::write): Fixed assertio...
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Mar 2005 21:59:39 +0000 (21:59 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Mar 2005 21:59:39 +0000 (21:59 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8849 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/htmltokenizer.cpp

index 7145090051492df0d2044c19086409e903d92a01..e328fe8795d4a16a68a82404f354a97dbe373c2d 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-10  Darin Adler  <darin@apple.com>
+
+        * khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::write): Fixed assertion for nested calls to write.
+
 2005-03-10  David Harrison  <harrison@apple.com>
 
         Reviewed by Darin.
index 19632201533b5fc2c179aa62632e19e0575058a8..2f899373c9ff56e546bc544b1f376a624d0a6411 100644 (file)
@@ -1563,6 +1563,7 @@ void HTMLTokenizer::write(const TokenizerString &str, bool appendData)
         return;
 
 #ifndef NDEBUG
+    bool wasInWrite = inWrite;
     inWrite = true;
 #endif
     
@@ -1797,7 +1798,7 @@ void HTMLTokenizer::write(const TokenizerString &str, bool appendData)
 #endif
     
 #ifndef NDEBUG
-    inWrite = false;
+    inWrite = wasInWrite;
 #endif
 
     if (noMoreData && !loadingExtScript && !m_executingScript && !timerId)