2010-07-20 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / WebCore / ChangeLog
index 16beb7a..aea58bc 100644 (file)
@@ -1,3 +1,23 @@
+2010-07-20  Adam Barth  <abarth@webkit.org>
+
+        Reviewed by Eric Seidel.
+
+        HTML5 tree builder needs to call dispatchDocumentElementAvailable
+        https://bugs.webkit.org/show_bug.cgi?id=42654
+
+        This patch fixes the follout LayoutTests with --html5-treebuilder:
+          - userscripts/script-not-run-for-fragments.html
+          - userscripts/script-run-at-start.html
+
+        * html/HTMLConstructionSite.cpp:
+        (WebCore::HTMLConstructionSite::HTMLConstructionSite):
+        (WebCore::HTMLConstructionSite::dispatchDocumentElementAvailableIfNeeded):
+        (WebCore::HTMLConstructionSite::insertHTMLHtmlStartTagBeforeHTML):
+        (WebCore::HTMLConstructionSite::insertHTMLHtmlElement):
+        * html/HTMLConstructionSite.h:
+        * html/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
+
 2010-07-20  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
 
         Reviewed by Steve Block.