From d6a599dbc9d824a462b2b206316e102bf8136446 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 11 Jul 2012 13:45:28 +0200 Subject: Imported WebKit commit 8ff1f22783a32de82fee915abd55bd1b298f2644 (http://svn.webkit.org/repository/webkit/trunk@122325) New snapshot that should work with the latest Qt build system changes --- Source/WebCore/css/CSSMediaRule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/WebCore/css/CSSMediaRule.cpp') diff --git a/Source/WebCore/css/CSSMediaRule.cpp b/Source/WebCore/css/CSSMediaRule.cpp index 6db320c27..55bbaa5fd 100644 --- a/Source/WebCore/css/CSSMediaRule.cpp +++ b/Source/WebCore/css/CSSMediaRule.cpp @@ -166,7 +166,7 @@ void CSSMediaRule::reattach(StyleRuleMedia* rule) { ASSERT(rule); m_mediaRule = rule; - if (m_mediaCSSOMWrapper) + if (m_mediaCSSOMWrapper && m_mediaRule->mediaQueries()) m_mediaCSSOMWrapper->reattach(m_mediaRule->mediaQueries()); for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { if (m_childRuleCSSOMWrappers[i]) -- cgit v1.2.1