Index: Source/WebCore/dom/DocumentStyleSheetCollection.cpp |
=================================================================== |
--- Source/WebCore/dom/DocumentStyleSheetCollection.cpp (revision 135773) |
+++ Source/WebCore/dom/DocumentStyleSheetCollection.cpp (working copy) |
@@ -193,6 +193,7 @@ |
void DocumentStyleSheetCollection::addUserSheet(PassRefPtr<StyleSheetContents> userSheet) |
{ |
+ ASSERT(userSheet->isUserStyleSheet()); |
m_userStyleSheets.append(CSSStyleSheet::create(userSheet, m_document)); |
m_document->styleResolverChanged(RecalcStyleImmediately); |
} |