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

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

Issue 219183002: Disable the thread-safe MQ parser for main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Testing BisonCSSParser Created 6 years, 9 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
« no previous file with comments | « Source/core/css/MediaList.h ('k') | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaList.cpp
diff --git a/Source/core/css/MediaList.cpp b/Source/core/css/MediaList.cpp
index 8f27f8100763d344203bea2c53c466a6da83b852..8fc86c2c42a1715f363715fcfc9df3e0113fc9f0 100644
--- a/Source/core/css/MediaList.cpp
+++ b/Source/core/css/MediaList.cpp
@@ -71,8 +71,16 @@ PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
if (mediaString.isEmpty())
return MediaQuerySet::create();
- return MediaQueryParser::parse(mediaString);
+ BisonCSSParser parser(strictCSSParserContext());
+ return parser.parseMediaQueryList(mediaString);
+}
+PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::createOffMainThread(const String& mediaString)
+{
+ if (mediaString.isEmpty())
+ return MediaQuerySet::create();
+
+ return MediaQueryParser::parse(mediaString);
}
bool MediaQuerySet::set(const String& mediaString)
« no previous file with comments | « Source/core/css/MediaList.h ('k') | Source/core/css/MediaQuerySetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698