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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 { | 59 { |
60 #if !ENABLE(OILPAN) | 60 #if !ENABLE(OILPAN) |
61 if (m_sheet) | 61 if (m_sheet) |
62 clearSheet(); | 62 clearSheet(); |
63 | 63 |
64 // FIXME: ProcessingInstruction should not be in document here. | 64 // FIXME: ProcessingInstruction should not be in document here. |
65 // However, if we add ASSERT(!inDocument()), fast/xsl/xslt-entity.xml | 65 // However, if we add ASSERT(!inDocument()), fast/xsl/xslt-entity.xml |
66 // crashes. We need to investigate ProcessingInstruction lifetime. | 66 // crashes. We need to investigate ProcessingInstruction lifetime. |
67 if (inDocument() && m_isCSS) | 67 if (inDocument() && m_isCSS) |
68 document().styleEngine().removeStyleSheetCandidateNode(this); | 68 document().styleEngine().removeStyleSheetCandidateNode(this); |
| 69 clearEventListenerForXSLT(); |
69 #endif | 70 #endif |
70 clearEventListenerForXSLT(); | |
71 } | 71 } |
72 | 72 |
73 EventListener* ProcessingInstruction::eventListenerForXSLT() | 73 EventListener* ProcessingInstruction::eventListenerForXSLT() |
74 { | 74 { |
75 if (!m_listenerForXSLT) | 75 if (!m_listenerForXSLT) |
76 return 0; | 76 return 0; |
77 | 77 |
78 return m_listenerForXSLT->toEventListener(); | 78 return m_listenerForXSLT->toEventListener(); |
79 } | 79 } |
80 | 80 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 { | 302 { |
303 ASSERT(m_sheet); | 303 ASSERT(m_sheet); |
304 if (m_sheet->isLoading()) | 304 if (m_sheet->isLoading()) |
305 document().styleEngine().removePendingSheet(this); | 305 document().styleEngine().removePendingSheet(this); |
306 m_sheet.release()->clearOwnerNode(); | 306 m_sheet.release()->clearOwnerNode(); |
307 } | 307 } |
308 | 308 |
309 DEFINE_TRACE(ProcessingInstruction) | 309 DEFINE_TRACE(ProcessingInstruction) |
310 { | 310 { |
311 visitor->trace(m_sheet); | 311 visitor->trace(m_sheet); |
| 312 visitor->trace(m_listenerForXSLT); |
312 CharacterData::trace(visitor); | 313 CharacterData::trace(visitor); |
313 } | 314 } |
314 | 315 |
315 } // namespace | 316 } // namespace |
OLD | NEW |