Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(653)

Unified Diff: Source/core/css/StyleMedia.cpp

Issue 15094019: Fixing inconsistency with Media Query append/deleteMedium. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« Source/core/css/MediaList.cpp ('K') | « Source/core/css/MediaList.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« Source/core/css/MediaList.cpp ('K') | « Source/core/css/MediaList.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698