Title: [108712] trunk/Source/WebCore
Revision
108712
Author
[email protected]
Date
2012-02-23 18:20:19 -0800 (Thu, 23 Feb 2012)

Log Message

Unreviewed: add clause in ASSERT missing from r108474.

No new tests. (fix)

* html/HTMLStyleElement.cpp:
(WebCore::HTMLStyleElement::willRemove):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (108711 => 108712)


--- trunk/Source/WebCore/ChangeLog	2012-02-24 02:16:01 UTC (rev 108711)
+++ trunk/Source/WebCore/ChangeLog	2012-02-24 02:20:19 UTC (rev 108712)
@@ -1,3 +1,12 @@
+2012-02-23  Roland Steiner  <[email protected]>
+
+        Unreviewed: add clause in ASSERT missing from r108474.
+
+        No new tests. (fix)
+
+        * html/HTMLStyleElement.cpp:
+        (WebCore::HTMLStyleElement::willRemove):
+
 2012-02-23  Eric Seidel  <[email protected]>
 
         Split out HTML constructors into new DOMWindowHTML suplemental idl

Modified: trunk/Source/WebCore/html/HTMLStyleElement.cpp (108711 => 108712)


--- trunk/Source/WebCore/html/HTMLStyleElement.cpp	2012-02-24 02:16:01 UTC (rev 108711)
+++ trunk/Source/WebCore/html/HTMLStyleElement.cpp	2012-02-24 02:20:19 UTC (rev 108712)
@@ -162,7 +162,7 @@
     // 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();
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to