| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |