Commit 3b62b1cf authored by yoav@yoav.ws's avatar yoav@yoav.ws

Added a runtime flag for the MQ parser

To make sure that the new MediaQueryParser doesn't cause compatibility issues in M35, it was disabled for main thread MQ evaluation in https://codereview.chromium.org/219183002/ .
This CL adds a runtime flag that would enable turning it back on.

BUG=358078

Review URL: https://codereview.chromium.org/221023002

git-svn-id: svn://svn.chromium.org/blink/trunk@170715 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 53dee233
...@@ -71,6 +71,9 @@ PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS ...@@ -71,6 +71,9 @@ PassRefPtrWillBeRawPtr<MediaQuerySet> MediaQuerySet::create(const String& mediaS
if (mediaString.isEmpty()) if (mediaString.isEmpty())
return MediaQuerySet::create(); return MediaQuerySet::create();
if (RuntimeEnabledFeatures::mediaQueryParserEnabled())
return MediaQueryParser::parse(mediaString);
BisonCSSParser parser(strictCSSParserContext()); BisonCSSParser parser(strictCSSParserContext());
return parser.parseMediaQueryList(mediaString); return parser.parseMediaQueryList(mediaString);
} }
......
...@@ -69,6 +69,7 @@ LangAttributeAwareFormControlUI ...@@ -69,6 +69,7 @@ LangAttributeAwareFormControlUI
PrefixedEncryptedMedia status=stable PrefixedEncryptedMedia status=stable
LocalStorage status=stable LocalStorage status=stable
Media status=stable Media status=stable
MediaQueryParser status=test
MediaSource status=stable MediaSource status=stable
MediaSourceExperimental depends_on=MediaSource, status=experimental MediaSourceExperimental depends_on=MediaSource, status=experimental
MediaStream status=stable MediaStream status=stable
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment