| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights
reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 MediaList* CSSImportRule::media() const | 55 MediaList* CSSImportRule::media() const |
| 56 { | 56 { |
| 57 if (!m_mediaCSSOMWrapper) | 57 if (!m_mediaCSSOMWrapper) |
| 58 m_mediaCSSOMWrapper = MediaList::create(m_importRule->mediaQueries(), co
nst_cast<CSSImportRule*>(this)); | 58 m_mediaCSSOMWrapper = MediaList::create(m_importRule->mediaQueries(), co
nst_cast<CSSImportRule*>(this)); |
| 59 return m_mediaCSSOMWrapper.get(); | 59 return m_mediaCSSOMWrapper.get(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 String CSSImportRule::cssText() const | 62 String CSSImportRule::cssText() const |
| 63 { | 63 { |
| 64 StringBuilder result; | 64 StringBuilder result; |
| 65 result.append("@import url(\""); | 65 result.appendLiteral("@import url(\""); |
| 66 result.append(m_importRule->href()); | 66 result.append(m_importRule->href()); |
| 67 result.append("\")"); | 67 result.appendLiteral("\")"); |
| 68 | 68 |
| 69 if (m_importRule->mediaQueries()) { | 69 if (m_importRule->mediaQueries()) { |
| 70 String mediaText = m_importRule->mediaQueries()->mediaText(); | 70 String mediaText = m_importRule->mediaQueries()->mediaText(); |
| 71 if (!mediaText.isEmpty()) { | 71 if (!mediaText.isEmpty()) { |
| 72 result.append(' '); | 72 result.append(' '); |
| 73 result.append(mediaText); | 73 result.append(mediaText); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 result.append(';'); | 76 result.append(';'); |
| 77 | 77 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 96 | 96 |
| 97 void CSSImportRule::trace(Visitor* visitor) | 97 void CSSImportRule::trace(Visitor* visitor) |
| 98 { | 98 { |
| 99 visitor->trace(m_importRule); | 99 visitor->trace(m_importRule); |
| 100 visitor->trace(m_mediaCSSOMWrapper); | 100 visitor->trace(m_mediaCSSOMWrapper); |
| 101 visitor->trace(m_styleSheetCSSOMWrapper); | 101 visitor->trace(m_styleSheetCSSOMWrapper); |
| 102 CSSRule::trace(visitor); | 102 CSSRule::trace(visitor); |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| OLD | NEW |