OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) | 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) |
3 * Copyright (C) 2006, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008, 2009 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 RefPtrWillBeRawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet,
this); | 218 RefPtrWillBeRawPtr<CSSStyleSheet> cssSheet = CSSStyleSheet::create(newSheet,
this); |
219 cssSheet->setDisabled(m_alternate); | 219 cssSheet->setDisabled(m_alternate); |
220 cssSheet->setTitle(m_title); | 220 cssSheet->setTitle(m_title); |
221 cssSheet->setMediaQueries(MediaQuerySet::create(m_media)); | 221 cssSheet->setMediaQueries(MediaQuerySet::create(m_media)); |
222 | 222 |
223 m_sheet = cssSheet.release(); | 223 m_sheet = cssSheet.release(); |
224 | 224 |
225 // We don't need the cross-origin security check here because we are | 225 // We don't need the cross-origin security check here because we are |
226 // getting the sheet text in "strict" mode. This enforces a valid CSS MIME | 226 // getting the sheet text in "strict" mode. This enforces a valid CSS MIME |
227 // type. | 227 // type. |
228 parseStyleSheet(sheet->sheetText(true)); | 228 parseStyleSheet(sheet->sheetText()); |
229 } | 229 } |
230 | 230 |
231 void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas
eURL, const String& sheet) | 231 void ProcessingInstruction::setXSLStyleSheet(const String& href, const KURL& bas
eURL, const String& sheet) |
232 { | 232 { |
233 if (!inDocument()) { | 233 if (!inDocument()) { |
234 ASSERT(!m_sheet); | 234 ASSERT(!m_sheet); |
235 return; | 235 return; |
236 } | 236 } |
237 | 237 |
238 ASSERT(m_isXSL); | 238 ASSERT(m_isXSL); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 m_sheet.release()->clearOwnerNode(); | 315 m_sheet.release()->clearOwnerNode(); |
316 } | 316 } |
317 | 317 |
318 void ProcessingInstruction::trace(Visitor* visitor) | 318 void ProcessingInstruction::trace(Visitor* visitor) |
319 { | 319 { |
320 visitor->trace(m_sheet); | 320 visitor->trace(m_sheet); |
321 CharacterData::trace(visitor); | 321 CharacterData::trace(visitor); |
322 } | 322 } |
323 | 323 |
324 } // namespace | 324 } // namespace |
OLD | NEW |