Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: Source/core/dom/ProcessingInstruction.cpp

Issue 324073002: Oilpan: Switch RefCountedGarbageCollected to GarbageCollectedFinalized for Node. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and update Node base class list Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/PseudoElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/PseudoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698