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

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

Issue 18970003: Introduce isHTMLOptGroupElement and toHTMLOptGroupElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/HTMLConstructionSite.cpp ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLElementStack.cpp
diff --git a/Source/core/html/parser/HTMLElementStack.cpp b/Source/core/html/parser/HTMLElementStack.cpp
index affc1a3a4dd1ea541a665aa116c3d1499ec4ebcf..ed7cccc23df1d7cac3225f51eade1ab28aca69e2 100644
--- a/Source/core/html/parser/HTMLElementStack.cpp
+++ b/Source/core/html/parser/HTMLElementStack.cpp
@@ -31,6 +31,7 @@
#include "MathMLNames.h"
#include "SVGNames.h"
#include "core/dom/Element.h"
+#include "core/html/HTMLOptGroupElement.h"
#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -113,7 +114,7 @@ inline bool isButtonScopeMarker(HTMLStackItem* item)
inline bool isSelectScopeMarker(HTMLStackItem* item)
{
- return !item->hasTagName(optgroupTag)
+ return !isHTMLOptGroupElement(item->node())
&& !item->hasTagName(optionTag);
}
« no previous file with comments | « Source/core/html/parser/HTMLConstructionSite.cpp ('k') | Source/core/html/parser/HTMLTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698