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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 else if (m_isXSL) | 214 else if (m_isXSL) |
215 toXSLStyleSheet(m_sheet.get())->parseString(sheet); | 215 toXSLStyleSheet(m_sheet.get())->parseString(sheet); |
216 | 216 |
217 if (m_resource) | 217 if (m_resource) |
218 m_resource->removeClient(this); | 218 m_resource->removeClient(this); |
219 m_resource = 0; | 219 m_resource = 0; |
220 | 220 |
221 m_loading = false; | 221 m_loading = false; |
222 | 222 |
223 if (m_isCSS) | 223 if (m_isCSS) |
224 toCSSStyleSheet(m_sheet.get())->contents()->checkLoaded(); | 224 toCSSStyleSheet(m_sheet.get())->contents()->checkLoadedFor(m_sheet->owne
rNode()); |
225 else if (m_isXSL) | 225 else if (m_isXSL) |
226 toXSLStyleSheet(m_sheet.get())->checkLoaded(); | 226 toXSLStyleSheet(m_sheet.get())->checkLoaded(); |
227 } | 227 } |
228 | 228 |
229 void ProcessingInstruction::setCSSStyleSheet(PassRefPtr<CSSStyleSheet> sheet) | 229 void ProcessingInstruction::setCSSStyleSheet(PassRefPtr<CSSStyleSheet> sheet) |
230 { | 230 { |
231 ASSERT(!m_resource); | 231 ASSERT(!m_resource); |
232 ASSERT(!m_loading); | 232 ASSERT(!m_loading); |
233 m_sheet = sheet; | 233 m_sheet = sheet; |
234 sheet->setTitle(m_title); | 234 sheet->setTitle(m_title); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 document().removedStyleSheet(removedSheet.get()); | 274 document().removedStyleSheet(removedSheet.get()); |
275 } | 275 } |
276 | 276 |
277 void ProcessingInstruction::finishParsingChildren() | 277 void ProcessingInstruction::finishParsingChildren() |
278 { | 278 { |
279 m_createdByParser = false; | 279 m_createdByParser = false; |
280 CharacterData::finishParsingChildren(); | 280 CharacterData::finishParsingChildren(); |
281 } | 281 } |
282 | 282 |
283 } // namespace | 283 } // namespace |
OLD | NEW |