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