| Index: Source/core/css/StyleMedia.cpp
|
| diff --git a/Source/core/css/StyleMedia.cpp b/Source/core/css/StyleMedia.cpp
|
| index 7d66459a4d710a9bf012adc8ec8ab2e657776e53..9f5f31b1748ee76638a71e2e61af8bb7024c0a54 100644
|
| --- a/Source/core/css/StyleMedia.cpp
|
| +++ b/Source/core/css/StyleMedia.cpp
|
| @@ -61,8 +61,8 @@ bool StyleMedia::matchMedium(const String& query) const
|
| return false;
|
|
|
| StyleResolver* styleResolver = document->styleResolver();
|
| - if (!styleResolver)
|
| - return false;
|
| + ASSERT(styleResolver);
|
| + appendPendingStyleSheetsIfNeeded(styleResolver);
|
|
|
| RefPtr<RenderStyle> rootStyle = styleResolver->styleForElement(documentElement, 0 /*defaultParent*/, DisallowStyleSharing, MatchOnlyUserAgentRules);
|
|
|
|
|