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

Unified Diff: Source/core/html/HTMLLinkElement.cpp

Issue 16325005: Remove the Media Query "forward compatibly syntax" support in alignment with HTML5 spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index 1b00709f0fd1caab149b2bd5ad65ec1e85007497..872004a86fc0d344f08555331422c3730aa42568 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -419,7 +419,7 @@ void LinkStyle::setCSSStyleSheet(const String& href, const KURL& baseURL, const
RefPtr<StyleSheetContents> styleSheet = StyleSheetContents::create(href, parserContext);
m_sheet = CSSStyleSheet::create(styleSheet, m_owner);
- m_sheet->setMediaQueries(MediaQuerySet::createAllowingDescriptionSyntax(m_owner->media()));
+ m_sheet->setMediaQueries(MediaQuerySet::create(m_owner->media()));
m_sheet->setTitle(m_owner->title());
styleSheet->parseAuthorStyleSheet(cachedStyleSheet, m_owner->document()->securityOrigin());
@@ -573,7 +573,7 @@ void LinkStyle::process()
bool mediaQueryMatches = true;
if (!m_owner->media().isEmpty()) {
RefPtr<RenderStyle> documentStyle = StyleResolver::styleForDocument(document());
- RefPtr<MediaQuerySet> media = MediaQuerySet::createAllowingDescriptionSyntax(m_owner->media());
+ RefPtr<MediaQuerySet> media = MediaQuerySet::create(m_owner->media());
MediaQueryEvaluator evaluator(document()->frame()->view()->mediaType(), document()->frame(), documentStyle.get());
mediaQueryMatches = evaluator.eval(media.get());
}

Powered by Google App Engine
This is Rietveld 408576698