Title: [93498] branches/chromium/835
Revision
93498
Author
[email protected]
Date
2011-08-22 02:04:29 -0700 (Mon, 22 Aug 2011)

Log Message

Merge 93032
BUG=92769
Review URL: http://codereview.chromium.org/7693023

Modified Paths

Added Paths

Diff

Copied: branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash-expected.txt (from rev 93032, trunk/LayoutTests/fast/html/process-end-tag-for-inbody-crash-expected.txt) (0 => 93498)


--- branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash-expected.txt	                        (rev 0)
+++ branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash-expected.txt	2011-08-22 09:04:29 UTC (rev 93498)
@@ -0,0 +1 @@
+PASS

Copied: branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash.html (from rev 93032, trunk/LayoutTests/fast/html/process-end-tag-for-inbody-crash.html) (0 => 93498)


--- branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash.html	                        (rev 0)
+++ branches/chromium/835/LayoutTests/fast/html/process-end-tag-for-inbody-crash.html	2011-08-22 09:04:29 UTC (rev 93498)
@@ -0,0 +1,8 @@
+<rt>
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+	
+document.body.innerHTML = "PASS";
+</script>
+</rt>

Modified: branches/chromium/835/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (93497 => 93498)


--- branches/chromium/835/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2011-08-22 08:56:12 UTC (rev 93497)
+++ branches/chromium/835/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2011-08-22 09:04:29 UTC (rev 93498)
@@ -605,13 +605,13 @@
     m_framesetOk = false;
     HTMLElementStack::ElementRecord* nodeRecord = m_tree.openElements()->topRecord();
     while (1) {
-        ContainerNode* node = nodeRecord->node();
-        if (shouldClose(node)) {
+        RefPtr<ContainerNode> node = nodeRecord->node();
+        if (shouldClose(node.get())) {
             ASSERT(node->isElementNode());
-            processFakeEndTag(toElement(node)->tagQName());
+            processFakeEndTag(toElement(node.get())->tagQName());
             break;
         }
-        if (isSpecialNode(node) && !node->hasTagName(addressTag) && !node->hasTagName(divTag) && !node->hasTagName(pTag))
+        if (isSpecialNode(node.get()) && !node->hasTagName(addressTag) && !node->hasTagName(divTag) && !node->hasTagName(pTag))
             break;
         nodeRecord = nodeRecord->next();
     }
@@ -1556,7 +1556,7 @@
     ASSERT(token.type() == HTMLTokenTypes::EndTag);
     HTMLElementStack::ElementRecord* record = m_tree.openElements()->topRecord();
     while (1) {
-        ContainerNode* node = record->node();
+        RefPtr<ContainerNode> node = record->node();
         if (node->hasLocalName(token.name())) {
             m_tree.generateImpliedEndTags();
             // FIXME: The ElementRecord pointed to by record might be deleted by
@@ -1570,13 +1570,13 @@
                 // http://www.w3.org/Bugs/Public/show_bug.cgi?id=10080
                 // We might have already popped the node for the token in
                 // generateImpliedEndTags, just abort.
-                if (!m_tree.openElements()->contains(toElement(node)))
+                if (!m_tree.openElements()->contains(toElement(node.get())))
                     return;
             }
-            m_tree.openElements()->popUntilPopped(toElement(node));
+            m_tree.openElements()->popUntilPopped(toElement(node.get()));
             return;
         }
-        if (isSpecialNode(node)) {
+        if (isSpecialNode(node.get())) {
             parseError(token);
             return;
         }
@@ -1633,7 +1633,7 @@
         }
         // 4.
         ASSERT(furthestBlock->isAbove(formattingElementRecord));
-        ContainerNode* commonAncestor = formattingElementRecord->next()->node();
+        RefPtr<ContainerNode> commonAncestor = formattingElementRecord->next()->node();
         // 5.
         HTMLFormattingElementList::Bookmark bookmark = m_tree.activeFormattingElements()->bookmarkFor(formattingElement);
         // 6.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to