Title: [124536] trunk/Source/WebCore
- Revision
- 124536
- Author
- [email protected]
- Date
- 2012-08-02 17:15:18 -0700 (Thu, 02 Aug 2012)
Log Message
Read tag names and attributes from the saved tokens in HTMLTreeBuilder::callTheAdoptionAgency(AtomicHTMLToken*)
https://bugs.webkit.org/show_bug.cgi?id=93047
Reviewed by Adam Barth.
This is a follow-up patch for r123577.
Changed to retrieve the stack item of commonAncestor and read the local name from the saved token.
No new tests, covered by existing tests.
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (124535 => 124536)
--- trunk/Source/WebCore/ChangeLog 2012-08-02 23:58:09 UTC (rev 124535)
+++ trunk/Source/WebCore/ChangeLog 2012-08-03 00:15:18 UTC (rev 124536)
@@ -1,3 +1,18 @@
+2012-08-02 Kwang Yul Seo <[email protected]>
+
+ Read tag names and attributes from the saved tokens in HTMLTreeBuilder::callTheAdoptionAgency(AtomicHTMLToken*)
+ https://bugs.webkit.org/show_bug.cgi?id=93047
+
+ Reviewed by Adam Barth.
+
+ This is a follow-up patch for r123577.
+ Changed to retrieve the stack item of commonAncestor and read the local name from the saved token.
+
+ No new tests, covered by existing tests.
+
+ * html/parser/HTMLTreeBuilder.cpp:
+ (WebCore::HTMLTreeBuilder::callTheAdoptionAgency):
+
2012-08-02 Vincent Scheib <[email protected]>
Remove old Pointer Lock API.
Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (124535 => 124536)
--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2012-08-02 23:58:09 UTC (rev 124535)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp 2012-08-03 00:15:18 UTC (rev 124536)
@@ -1543,7 +1543,7 @@
}
// 4.
ASSERT(furthestBlock->isAbove(formattingElementRecord));
- RefPtr<ContainerNode> commonAncestor = formattingElementRecord->next()->node();
+ RefPtr<HTMLStackItem> commonAncestor = formattingElementRecord->next()->stackItem();
// 5.
HTMLFormattingElementList::Bookmark bookmark = m_tree.activeFormattingElements()->bookmarkFor(formattingElement);
// 6.
@@ -1595,7 +1595,7 @@
|| isTableBodyContextTag(commonAncestorTag))
m_tree.fosterParent(lastNode->element());
else {
- commonAncestor->parserAddChild(lastNode->element());
+ commonAncestor->element()->parserAddChild(lastNode->element());
ASSERT(lastNode->stackItem()->isElementNode());
ASSERT(lastNode->element()->parentNode());
if (lastNode->element()->parentNode()->attached() && !lastNode->element()->attached())
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes