Index: WebCore/css/CSSMediaRule.cpp |
=================================================================== |
--- WebCore/css/CSSMediaRule.cpp (revision 78377) |
+++ WebCore/css/CSSMediaRule.cpp (working copy) |
@@ -88,8 +88,8 @@ |
newRule->setParent(this); |
unsigned returnedIndex = m_lstCSSRules->insertRule(newRule.get(), index); |
- // stylesheet() can only return 0 for computed style declarations. |
- stylesheet()->styleSheetChanged(); |
+ if (stylesheet()) |
+ stylesheet()->styleSheetChanged(); |
return returnedIndex; |
} |
@@ -105,8 +105,8 @@ |
m_lstCSSRules->deleteRule(index); |
- // stylesheet() can only return 0 for computed style declarations. |
- stylesheet()->styleSheetChanged(); |
+ if (stylesheet()) |
+ stylesheet()->styleSheetChanged(); |
} |
String CSSMediaRule::cssText() const |