Commit 2a21f2d6 authored by rniwa@webkit.org's avatar rniwa@webkit.org

Debug test fix after r147018.

toElement() asserts. What we want here is isElementNode().

* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::attachLater):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e1272105
2013-03-27 Ryosuke Niwa <rniwa@webkit.org>
Debug test fix after r147018.
toElement() asserts. What we want here is isElementNode().
* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::attachLater):
2013-03-27 Noel Gordon <noel.gordon@gmail.com>
Add webp image color profile support
......@@ -107,7 +107,7 @@ static inline void executeTask(HTMLConstructionSiteTask& task)
void HTMLConstructionSite::attachLater(ContainerNode* parent, PassRefPtr<Node> prpChild, bool selfClosing)
{
ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !toElement(prpChild.get()) || !toScriptElement(toElement(prpChild.get())));
ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !prpChild.get()->isElementNode() || !toScriptElement(toElement(prpChild.get())));
ASSERT(pluginContentIsAllowed(m_parserContentPolicy) || !prpChild->isPluginElement());
HTMLConstructionSiteTask task;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment