Read tag names and attributes from the saved tokens in HTMLTreeBuilder::resetInsertio...
authorkseo@webkit.org <kseo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jul 2012 22:59:58 +0000 (22:59 +0000)
committerkseo@webkit.org <kseo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 25 Jul 2012 22:59:58 +0000 (22:59 +0000)
commitb437104132b8650915b7b3635e022c3f241baf99
treeb3274148ae61d22b061a005ca21528a5d02224cd
parent5426be62077c34e9bd9a98050dcc0563ef6f3d71
Read tag names and attributes from the saved tokens in HTMLTreeBuilder::resetInsertionModeAppropriately.
https://bugs.webkit.org/show_bug.cgi?id=92240

Reviewed by Adam Barth.

This is a follow-up patch for r123577. Added ItemType enum to HTMLStackItem to handle
the context element case.

No new tests, covered by existing tests.

* html/parser/HTMLStackItem.h:
(WebCore::HTMLStackItem::create):
(WebCore::HTMLStackItem::HTMLStackItem):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
(WebCore::HTMLTreeBuilder::resetInsertionModeAppropriately):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/parser/HTMLStackItem.h
Source/WebCore/html/parser/HTMLTreeBuilder.cpp