OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2010, 2012 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 #if ENABLE(OILPAN) | 176 #if ENABLE(OILPAN) |
177 visitor->trace(m_queries); | 177 visitor->trace(m_queries); |
178 #endif | 178 #endif |
179 } | 179 } |
180 | 180 |
181 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet) | 181 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet) |
182 : m_mediaQueries(mediaQueries) | 182 : m_mediaQueries(mediaQueries) |
183 , m_parentStyleSheet(parentSheet) | 183 , m_parentStyleSheet(parentSheet) |
184 , m_parentRule(nullptr) | 184 , m_parentRule(nullptr) |
185 { | 185 { |
186 ScriptWrappable::init(this); | |
187 } | 186 } |
188 | 187 |
189 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule) | 188 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule) |
190 : m_mediaQueries(mediaQueries) | 189 : m_mediaQueries(mediaQueries) |
191 , m_parentStyleSheet(nullptr) | 190 , m_parentStyleSheet(nullptr) |
192 , m_parentRule(parentRule) | 191 , m_parentRule(parentRule) |
193 { | 192 { |
194 ScriptWrappable::init(this); | |
195 } | 193 } |
196 | 194 |
197 MediaList::~MediaList() | 195 MediaList::~MediaList() |
198 { | 196 { |
199 } | 197 } |
200 | 198 |
201 void MediaList::setMediaText(const String& value) | 199 void MediaList::setMediaText(const String& value) |
202 { | 200 { |
203 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule); | 201 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule); |
204 | 202 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 } | 315 } |
318 } | 316 } |
319 } | 317 } |
320 } | 318 } |
321 | 319 |
322 if (suspiciousType && !dotsPerPixelUsed) | 320 if (suspiciousType && !dotsPerPixelUsed) |
323 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousType); | 321 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousType); |
324 } | 322 } |
325 | 323 |
326 } | 324 } |
OLD | NEW |