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

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

Issue 16208004: No need to store invalid media queries. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 6 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/CSSGrammar.y.in ('k') | Source/core/css/MediaQuery.h » ('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 bafd03006a210ae2b54f61e3224db1eb614e8f13..5d63f29304bb53205749f0943c5ca83b0ffa7697 100644
--- a/Source/core/css/MediaList.cpp
+++ b/Source/core/css/MediaList.cpp
@@ -290,7 +290,7 @@ void reportMediaQueryWarningIfNeeded(Document* document, const MediaQuerySet* me
for (size_t i = 0; i < queryCount; ++i) {
const MediaQuery* query = mediaQueries[i].get();
- if (query->ignored() || equalIgnoringCase(query->mediaType(), "print"))
+ if (equalIgnoringCase(query->mediaType(), "print"))
continue;
const Vector<OwnPtr<MediaQueryExp> >* exps = query->expressions();
« no previous file with comments | « Source/core/css/CSSGrammar.y.in ('k') | Source/core/css/MediaQuery.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698