Index: Source/core/css/StyleMedia.cpp |
diff --git a/Source/core/css/StyleMedia.cpp b/Source/core/css/StyleMedia.cpp |
index f425c87d13a5f21c8c2966701d8199c2ad2b15cd..6f003f7574bf0a8400b230aa66f2d650fb461049 100644 |
--- a/Source/core/css/StyleMedia.cpp |
+++ b/Source/core/css/StyleMedia.cpp |
@@ -67,7 +67,7 @@ bool StyleMedia::matchMedium(const String& query) const |
RefPtr<RenderStyle> rootStyle = styleResolver->styleForElement(documentElement, 0 /*defaultParent*/, DisallowStyleSharing, MatchOnlyUserAgentRules); |
RefPtr<MediaQuerySet> media = MediaQuerySet::create(); |
- if (!media->parse(query)) |
+ if (!media->set(query)) |
return false; |
MediaQueryEvaluator screenEval(type(), m_frame, rootStyle.get()); |