diff options
Diffstat (limited to 'WebCore/css/StyleMedia.cpp')
-rw-r--r-- | WebCore/css/StyleMedia.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/css/StyleMedia.cpp b/WebCore/css/StyleMedia.cpp index 6cb662f..8971d35 100644 --- a/WebCore/css/StyleMedia.cpp +++ b/WebCore/css/StyleMedia.cpp @@ -56,7 +56,8 @@ bool StyleMedia::matchMedium(const String& query) const Document* document = m_frame->document(); ASSERT(document); Element* documentElement = document->documentElement(); - ASSERT(documentElement); + if (!documentElement) + return false; CSSStyleSelector* styleSelector = document->styleSelector(); if (!styleSelector) |