summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSMediaRule.cpp
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-02-17 09:06:39 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-02-17 09:06:39 -0800
commit7aed021d3442e74aedc738192c55d8978b2d9643 (patch)
tree7801e8554b642ef58b280135c847003f833bb70e /WebCore/css/CSSMediaRule.cpp
parent990373e4c55ba4f0312b5ab7974388d717d1907c (diff)
parentf7f6d6409be37f76dc308902285d24806dc87ef2 (diff)
downloadexternal_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.zip
external_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.tar.gz
external_webkit-7aed021d3442e74aedc738192c55d8978b2d9643.tar.bz2
Merge "Merge WebKit at Chromium 9.0.597.106: Initial merge by Git"
Diffstat (limited to 'WebCore/css/CSSMediaRule.cpp')
-rw-r--r--WebCore/css/CSSMediaRule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/css/CSSMediaRule.cpp b/WebCore/css/CSSMediaRule.cpp
index 6348762..46dc780 100644
--- a/WebCore/css/CSSMediaRule.cpp
+++ b/WebCore/css/CSSMediaRule.cpp
@@ -88,8 +88,8 @@ unsigned CSSMediaRule::insertRule(const String& rule, unsigned index, ExceptionC
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 @@ void CSSMediaRule::deleteRule(unsigned index, ExceptionCode& ec)
m_lstCSSRules->deleteRule(index);
- // stylesheet() can only return 0 for computed style declarations.
- stylesheet()->styleSheetChanged();
+ if (stylesheet())
+ stylesheet()->styleSheetChanged();
}
String CSSMediaRule::cssText() const