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

Side by Side Diff: Source/core/css/MediaQueryMatcher.cpp

Issue 963743002: Remove the warning message to inspector for dpi/dcm values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: layout test fix + nits Created 5 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 return false; 77 return false;
78 } 78 }
79 79
80 PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const Strin g& query) 80 PassRefPtrWillBeRawPtr<MediaQueryList> MediaQueryMatcher::matchMedia(const Strin g& query)
81 { 81 {
82 if (!m_document) 82 if (!m_document)
83 return nullptr; 83 return nullptr;
84 84
85 RefPtrWillBeRawPtr<MediaQuerySet> media = MediaQuerySet::create(query); 85 RefPtrWillBeRawPtr<MediaQuerySet> media = MediaQuerySet::create(query);
86 // Add warning message to inspector whenever dpi/dpcm values are used for "s creen" media.
87 reportMediaQueryWarningIfNeeded(m_document, media.get());
88 return MediaQueryList::create(m_document, this, media); 86 return MediaQueryList::create(m_document, this, media);
89 } 87 }
90 88
91 void MediaQueryMatcher::addMediaQueryList(MediaQueryList* query) 89 void MediaQueryMatcher::addMediaQueryList(MediaQueryList* query)
92 { 90 {
93 if (!m_document) 91 if (!m_document)
94 return; 92 return;
95 m_mediaLists.add(query); 93 m_mediaLists.add(query);
96 } 94 }
97 95
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void MediaQueryMatcher::trace(Visitor* visitor) 145 void MediaQueryMatcher::trace(Visitor* visitor)
148 { 146 {
149 #if ENABLE(OILPAN) 147 #if ENABLE(OILPAN)
150 visitor->trace(m_document); 148 visitor->trace(m_document);
151 visitor->trace(m_mediaLists); 149 visitor->trace(m_mediaLists);
152 visitor->trace(m_viewportListeners); 150 visitor->trace(m_viewportListeners);
153 #endif 151 #endif
154 } 152 }
155 153
156 } 154 }
OLDNEW
« no previous file with comments | « Source/core/css/MediaList.cpp ('k') | Source/core/css/StyleSheetContents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698