Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Unified Diff: sky/engine/core/html/parser/HTMLConstructionSite.cpp

Issue 666913005: Delete HTMLStackItem (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/HTMLConstructionSite.h ('k') | sky/engine/core/html/parser/HTMLElementStack.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/HTMLConstructionSite.cpp
diff --git a/sky/engine/core/html/parser/HTMLConstructionSite.cpp b/sky/engine/core/html/parser/HTMLConstructionSite.cpp
index 0b9a031a2832909ab84784b5e9756874f5fa9598..882ebcee9437744ed9f28e375187a46fb462bfaa 100644
--- a/sky/engine/core/html/parser/HTMLConstructionSite.cpp
+++ b/sky/engine/core/html/parser/HTMLConstructionSite.cpp
@@ -36,7 +36,6 @@
#include "core/html/HTMLTemplateElement.h"
#include "core/html/parser/AtomicHTMLToken.h"
#include "core/html/parser/HTMLParserIdioms.h"
-#include "core/html/parser/HTMLStackItem.h"
#include "core/html/parser/HTMLToken.h"
#include "core/loader/FrameLoaderClient.h"
#include "platform/NotImplemented.h"
@@ -274,8 +273,6 @@ void HTMLConstructionSite::trace(Visitor* visitor)
{
visitor->trace(m_document);
visitor->trace(m_attachmentRoot);
- visitor->trace(m_head);
- visitor->trace(m_openElements);
visitor->trace(m_taskQueue);
visitor->trace(m_pendingText);
}
@@ -308,7 +305,7 @@ void HTMLConstructionSite::insertHTMLElement(AtomicHTMLToken* token)
{
RefPtrWillBeRawPtr<HTMLElement> element = createHTMLElement(token);
attachLater(currentNode(), element);
- m_openElements.push(HTMLStackItem::create(element.release(), token));
+ m_openElements.push(element.release());
}
void HTMLConstructionSite::insertSelfClosingHTMLElement(AtomicHTMLToken* token)
@@ -328,7 +325,7 @@ void HTMLConstructionSite::insertScriptElement(AtomicHTMLToken* token)
setAttributes(element.get(), token, m_parserContentPolicy);
if (scriptingContentIsAllowed(m_parserContentPolicy))
attachLater(currentNode(), element);
- m_openElements.push(HTMLStackItem::create(element.release(), token));
+ m_openElements.push(element.release());
}
void HTMLConstructionSite::insertTextNode(const String& string, WhitespaceMode whitespaceMode)
« no previous file with comments | « sky/engine/core/html/parser/HTMLConstructionSite.h ('k') | sky/engine/core/html/parser/HTMLElementStack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698