No new tests. (fix)
* html/HTMLStyleElement.cpp:
(WebCore::HTMLStyleElement::willRemove):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108712
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-02-23 Roland Steiner <rolandsteiner@chromium.org>
+
+ Unreviewed: add clause in ASSERT missing from r108474.
+
+ No new tests. (fix)
+
+ * html/HTMLStyleElement.cpp:
+ (WebCore::HTMLStyleElement::willRemove):
+
2012-02-23 Eric Seidel <eric@webkit.org>
Split out HTML constructors into new DOMWindowHTML suplemental idl
// That is, because willRemove() is also called if an ancestor is removed from the document.
// Now, if we want to register <style scoped> even if it's not inDocument,
// we'd need to find a way to discern whether that is the case, or whether <style scoped> itself is about to be removed.
- ASSERT(!scoped() || !inDocument() || m_isRegisteredWithScopingNode);
+ ASSERT(!scoped() || !inDocument() || m_isRegisteredWithScopingNode || !RuntimeEnabledFeatures::styleScopedEnabled());
if (m_isRegisteredWithScopingNode)
unregisterWithScopingNode();
HTMLElement::willRemove();