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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 , m_alternate(false) | 43 , m_alternate(false) |
44 , m_createdByParser(false) | 44 , m_createdByParser(false) |
45 , m_isCSS(false) | 45 , m_isCSS(false) |
46 , m_isXSL(false) | 46 , m_isXSL(false) |
47 { | 47 { |
48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
49 } | 49 } |
50 | 50 |
51 PassRefPtrWillBeRawPtr<ProcessingInstruction> ProcessingInstruction::create(Docu
ment& document, const String& target, const String& data) | 51 PassRefPtrWillBeRawPtr<ProcessingInstruction> ProcessingInstruction::create(Docu
ment& document, const String& target, const String& data) |
52 { | 52 { |
53 return adoptRefWillBeRefCountedGarbageCollected(new ProcessingInstruction(do
cument, target, data)); | 53 return adoptRefWillBeNoop(new ProcessingInstruction(document, target, data))
; |
54 } | 54 } |
55 | 55 |
56 ProcessingInstruction::~ProcessingInstruction() | 56 ProcessingInstruction::~ProcessingInstruction() |
57 { | 57 { |
58 #if !ENABLE(OILPAN) | 58 #if !ENABLE(OILPAN) |
59 if (m_sheet) | 59 if (m_sheet) |
60 m_sheet->clearOwnerNode(); | 60 m_sheet->clearOwnerNode(); |
61 | 61 |
62 // FIXME: ProcessingInstruction should not be in document here. | 62 // FIXME: ProcessingInstruction should not be in document here. |
63 // However, if we add ASSERT(!inDocument()), fast/xsl/xslt-entity.xml | 63 // However, if we add ASSERT(!inDocument()), fast/xsl/xslt-entity.xml |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 document().removedStyleSheet(removedSheet.get()); | 283 document().removedStyleSheet(removedSheet.get()); |
284 } | 284 } |
285 | 285 |
286 void ProcessingInstruction::trace(Visitor* visitor) | 286 void ProcessingInstruction::trace(Visitor* visitor) |
287 { | 287 { |
288 visitor->trace(m_sheet); | 288 visitor->trace(m_sheet); |
289 CharacterData::trace(visitor); | 289 CharacterData::trace(visitor); |
290 } | 290 } |
291 | 291 |
292 } // namespace | 292 } // namespace |
OLD | NEW |