| 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 | 192 |
| 193 void CSSStyleSheet::setDisabled(bool disabled) | 193 void CSSStyleSheet::setDisabled(bool disabled) |
| 194 { | 194 { |
| 195 if (disabled == m_isDisabled) | 195 if (disabled == m_isDisabled) |
| 196 return; | 196 return; |
| 197 m_isDisabled = disabled; | 197 m_isDisabled = disabled; |
| 198 | 198 |
| 199 didMutate(); | 199 didMutate(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void CSSStyleSheet::setMediaQueries(PassRefPtr<MediaQuerySet> mediaQueries) | 202 void CSSStyleSheet::setMediaQueries(PassRefPtrWillBeRawPtr<MediaQuerySet> mediaQ
ueries) |
| 203 { | 203 { |
| 204 m_mediaQueries = mediaQueries; | 204 m_mediaQueries = mediaQueries; |
| 205 if (m_mediaCSSOMWrapper && m_mediaQueries) | 205 if (m_mediaCSSOMWrapper && m_mediaQueries) |
| 206 m_mediaCSSOMWrapper->reattach(m_mediaQueries.get()); | 206 m_mediaCSSOMWrapper->reattach(m_mediaQueries.get()); |
| 207 | 207 |
| 208 // Add warning message to inspector whenever dpi/dpcm values are used for "s
creen" media. | 208 // Add warning message to inspector whenever dpi/dpcm values are used for "s
creen" media. |
| 209 reportMediaQueryWarningIfNeeded(ownerDocument(), m_mediaQueries.get()); | 209 reportMediaQueryWarningIfNeeded(ownerDocument(), m_mediaQueries.get()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 unsigned CSSStyleSheet::length() const | 212 unsigned CSSStyleSheet::length() const |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 return m_loadCompleted; | 400 return m_loadCompleted; |
| 401 } | 401 } |
| 402 | 402 |
| 403 void CSSStyleSheet::startLoadingDynamicSheet() | 403 void CSSStyleSheet::startLoadingDynamicSheet() |
| 404 { | 404 { |
| 405 m_loadCompleted = false; | 405 m_loadCompleted = false; |
| 406 m_ownerNode->startLoadingDynamicSheet(); | 406 m_ownerNode->startLoadingDynamicSheet(); |
| 407 } | 407 } |
| 408 | 408 |
| 409 } | 409 } |
| OLD | NEW |