| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return PROCESSING_INSTRUCTION_NODE; | 96 return PROCESSING_INSTRUCTION_NODE; |
| 97 } | 97 } |
| 98 | 98 |
| 99 PassRefPtrWillBeRawPtr<Node> ProcessingInstruction::cloneNode(bool /*deep*/) | 99 PassRefPtrWillBeRawPtr<Node> ProcessingInstruction::cloneNode(bool /*deep*/) |
| 100 { | 100 { |
| 101 // FIXME: Is it a problem that this does not copy m_localHref? | 101 // FIXME: Is it a problem that this does not copy m_localHref? |
| 102 // What about other data members? | 102 // What about other data members? |
| 103 return create(document(), m_target, m_data); | 103 return create(document(), m_target, m_data); |
| 104 } | 104 } |
| 105 | 105 |
| 106 StyleSheet* ProcessingInstruction::sheet() const | |
| 107 { | |
| 108 return m_sheet.get(); | |
| 109 } | |
| 110 | |
| 111 void ProcessingInstruction::didAttributeChanged() | 106 void ProcessingInstruction::didAttributeChanged() |
| 112 { | 107 { |
| 113 if (m_sheet) | 108 if (m_sheet) |
| 114 clearSheet(); | 109 clearSheet(); |
| 115 | 110 |
| 116 String href; | 111 String href; |
| 117 String charset; | 112 String charset; |
| 118 if (!checkStyleSheet(href, charset)) | 113 if (!checkStyleSheet(href, charset)) |
| 119 return; | 114 return; |
| 120 process(href, charset); | 115 process(href, charset); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 307 } |
| 313 | 308 |
| 314 DEFINE_TRACE(ProcessingInstruction) | 309 DEFINE_TRACE(ProcessingInstruction) |
| 315 { | 310 { |
| 316 visitor->trace(m_sheet); | 311 visitor->trace(m_sheet); |
| 317 visitor->trace(m_listenerForXSLT); | 312 visitor->trace(m_listenerForXSLT); |
| 318 CharacterData::trace(visitor); | 313 CharacterData::trace(visitor); |
| 319 } | 314 } |
| 320 | 315 |
| 321 } // namespace | 316 } // namespace |
| OLD | NEW |