| 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, 2007, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2006, 2007, 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 didMutate(); | 225 didMutate(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 void CSSStyleSheet::setMediaQueries(PassRefPtrWillBeRawPtr<MediaQuerySet> mediaQ
ueries) | 228 void CSSStyleSheet::setMediaQueries(PassRefPtrWillBeRawPtr<MediaQuerySet> mediaQ
ueries) |
| 229 { | 229 { |
| 230 m_mediaQueries = mediaQueries; | 230 m_mediaQueries = mediaQueries; |
| 231 if (m_mediaCSSOMWrapper && m_mediaQueries) | 231 if (m_mediaCSSOMWrapper && m_mediaQueries) |
| 232 m_mediaCSSOMWrapper->reattach(m_mediaQueries.get()); | 232 m_mediaCSSOMWrapper->reattach(m_mediaQueries.get()); |
| 233 | 233 |
| 234 // Add warning message to inspector whenever dpi/dpcm values are used for "s
creen" media. | |
| 235 reportMediaQueryWarningIfNeeded(ownerDocument(), m_mediaQueries.get()); | |
| 236 } | 234 } |
| 237 | 235 |
| 238 unsigned CSSStyleSheet::length() const | 236 unsigned CSSStyleSheet::length() const |
| 239 { | 237 { |
| 240 return m_contents->ruleCount(); | 238 return m_contents->ruleCount(); |
| 241 } | 239 } |
| 242 | 240 |
| 243 CSSRule* CSSStyleSheet::item(unsigned index) | 241 CSSRule* CSSStyleSheet::item(unsigned index) |
| 244 { | 242 { |
| 245 unsigned ruleCount = length(); | 243 unsigned ruleCount = length(); |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 visitor->trace(m_mediaQueries); | 442 visitor->trace(m_mediaQueries); |
| 445 visitor->trace(m_ownerNode); | 443 visitor->trace(m_ownerNode); |
| 446 visitor->trace(m_ownerRule); | 444 visitor->trace(m_ownerRule); |
| 447 visitor->trace(m_mediaCSSOMWrapper); | 445 visitor->trace(m_mediaCSSOMWrapper); |
| 448 visitor->trace(m_childRuleCSSOMWrappers); | 446 visitor->trace(m_childRuleCSSOMWrappers); |
| 449 visitor->trace(m_ruleListCSSOMWrapper); | 447 visitor->trace(m_ruleListCSSOMWrapper); |
| 450 StyleSheet::trace(visitor); | 448 StyleSheet::trace(visitor); |
| 451 } | 449 } |
| 452 | 450 |
| 453 } // namespace blink | 451 } // namespace blink |
| OLD | NEW |