2006-05-09 Anders Carlsson <acarlsson@apple.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 21:09:10 +0000 (21:09 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 21:09:10 +0000 (21:09 +0000)
        Reviewed by Darin.

        * loader/TextDocument.cpp:
        (WebCore::TextTokenizer::write):
        Use the correct variable to prevent crashes.

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

WebCore/ChangeLog
WebCore/loader/TextDocument.cpp

index 34a90f264a6a63deec04376319f1e35b57fbc064..560d718c9d1f65f30f3bb822add5dbf8872af2e4 100644 (file)
@@ -1,3 +1,11 @@
+2006-05-09  Anders Carlsson  <acarlsson@apple.com>
+
+        Reviewed by Darin.
+
+        * loader/TextDocument.cpp:
+        (WebCore::TextTokenizer::write):
+        Use the correct variable to prevent crashes.
+
 2006-05-09  Anders Carlsson  <acarlsson@apple.com>
 
         Reviewed by Darin.
index 6b9919584cdc551c4c1a287f55cae9e52c969da7..da3273370a48319b63807feb5af7197c9178aaf8 100644 (file)
@@ -61,7 +61,7 @@ bool TextTokenizer::write(const SegmentedString& s, bool appendData)
         rootElement->appendChild(body, ec);
 
         RefPtr<Element> preElement = m_doc->createElementNS(xhtmlNamespaceURI, "pre", ec);
-        body->appendChild(m_preElement, ec);
+        body->appendChild(preElement, ec);
         
         m_preElement = preElement.get();
     }