| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 #if ENABLE(OILPAN) | 175 #if ENABLE(OILPAN) |
| 176 visitor->trace(m_queries); | 176 visitor->trace(m_queries); |
| 177 #endif | 177 #endif |
| 178 } | 178 } |
| 179 | 179 |
| 180 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet) | 180 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSStyleSheet* parentSheet) |
| 181 : m_mediaQueries(mediaQueries) | 181 : m_mediaQueries(mediaQueries) |
| 182 , m_parentStyleSheet(parentSheet) | 182 , m_parentStyleSheet(parentSheet) |
| 183 , m_parentRule(nullptr) | 183 , m_parentRule(nullptr) |
| 184 { | 184 { |
| 185 ScriptWrappable::init(this); |
| 185 } | 186 } |
| 186 | 187 |
| 187 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule) | 188 MediaList::MediaList(MediaQuerySet* mediaQueries, CSSRule* parentRule) |
| 188 : m_mediaQueries(mediaQueries) | 189 : m_mediaQueries(mediaQueries) |
| 189 , m_parentStyleSheet(nullptr) | 190 , m_parentStyleSheet(nullptr) |
| 190 , m_parentRule(parentRule) | 191 , m_parentRule(parentRule) |
| 191 { | 192 { |
| 193 ScriptWrappable::init(this); |
| 192 } | 194 } |
| 193 | 195 |
| 194 MediaList::~MediaList() | 196 MediaList::~MediaList() |
| 195 { | 197 { |
| 196 } | 198 } |
| 197 | 199 |
| 198 void MediaList::setMediaText(const String& value) | 200 void MediaList::setMediaText(const String& value) |
| 199 { | 201 { |
| 200 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule); | 202 CSSStyleSheet::RuleMutationScope mutationScope(m_parentRule); |
| 201 | 203 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 316 } |
| 315 } | 317 } |
| 316 } | 318 } |
| 317 } | 319 } |
| 318 | 320 |
| 319 if (suspiciousType && !dotsPerPixelUsed) | 321 if (suspiciousType && !dotsPerPixelUsed) |
| 320 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousType); | 322 addResolutionWarningMessageToConsole(document, mediaQuerySet->mediaText(
), suspiciousType); |
| 321 } | 323 } |
| 322 | 324 |
| 323 } | 325 } |
| OLD | NEW |