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

Unified Diff: Source/core/dom/StyleElement.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/dom/StyleElement.cpp
diff --git a/Source/core/dom/StyleElement.cpp b/Source/core/dom/StyleElement.cpp
index 81503aa0e1aef643dbe6024457e251d6bcdb54d0..bc4f5536b5709c08eb942ea32ad37d3c7c6c299a 100644
--- a/Source/core/dom/StyleElement.cpp
+++ b/Source/core/dom/StyleElement.cpp
@@ -158,11 +158,7 @@ void StyleElement::createSheet(Element* e, const String& text)
// If type is empty or CSS, this is a CSS style sheet.
const AtomicString& type = this->type();
if (document->contentSecurityPolicy()->allowInlineStyle(e->document()->url(), m_startPosition.m_line) && isCSS(e, type)) {
- RefPtr<MediaQuerySet> mediaQueries;
- if (e->isHTMLElement())
- mediaQueries = MediaQuerySet::createAllowingDescriptionSyntax(media());
- else
- mediaQueries = MediaQuerySet::create(media());
+ RefPtr<MediaQuerySet> mediaQueries = MediaQuerySet::create(media());
MediaQueryEvaluator screenEval("screen", true);
MediaQueryEvaluator printEval("print", true);

Powered by Google App Engine
This is Rietveld 408576698