diff options
author | Steve Block <steveblock@google.com> | 2011-02-17 09:06:39 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-02-17 09:06:39 -0800 |
commit | 7aed021d3442e74aedc738192c55d8978b2d9643 (patch) | |
tree | 7801e8554b642ef58b280135c847003f833bb70e /WebCore/css/CSSMediaRule.cpp | |
parent | 990373e4c55ba4f0312b5ab7974388d717d1907c (diff) | |
parent | f7f6d6409be37f76dc308902285d24806dc87ef2 (diff) | |
download | external_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.cpp | 8 |
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 |