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

Unified Diff: Source/core/html/parser/HTMLTreeBuilder.cpp

Issue 19098002: Introduce isHTMLHtmlElement and toHTMLHtmlElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 5 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 | « Source/core/html/parser/HTMLElementStack.cpp ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLTreeBuilder.cpp
diff --git a/Source/core/html/parser/HTMLTreeBuilder.cpp b/Source/core/html/parser/HTMLTreeBuilder.cpp
index ee860f1a0ffcd542e7a45daf48051fce68e0337f..79b20e71443e2913c018dccc29b8e204302ee1f2 100644
--- a/Source/core/html/parser/HTMLTreeBuilder.cpp
+++ b/Source/core/html/parser/HTMLTreeBuilder.cpp
@@ -35,6 +35,7 @@
#include "XMLNames.h"
#include "core/dom/DocumentFragment.h"
#include "core/html/HTMLFormElement.h"
+#include "core/html/HTMLHtmlElement.h"
#include "core/html/HTMLOptGroupElement.h"
#include "core/html/HTMLTableElement.h"
#include "core/html/parser/AtomicHTMLToken.h"
@@ -1633,7 +1634,7 @@ void HTMLTreeBuilder::resetInsertionModeAppropriately()
if (item->hasTagName(framesetTag)) {
return setInsertionMode(InFramesetMode);
}
- if (item->hasTagName(htmlTag)) {
+ if (isHTMLHtmlElement(item->node())) {
ASSERT(isParsingFragment());
return setInsertionMode(BeforeHeadMode);
}
« no previous file with comments | « Source/core/html/parser/HTMLElementStack.cpp ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698