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

Side by Side Diff: Source/core/html/HTMLLinkElement.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/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMarqueeElement.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com) 6 * Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
7 * Copyright (C) 2011 Google Inc. All rights reserved. 7 * Copyright (C) 2011 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 , m_linkLoader(this) 136 , m_linkLoader(this)
137 , m_sizes(DOMSettableTokenList::create()) 137 , m_sizes(DOMSettableTokenList::create())
138 , m_createdByParser(createdByParser) 138 , m_createdByParser(createdByParser)
139 , m_isInShadowTree(false) 139 , m_isInShadowTree(false)
140 { 140 {
141 ScriptWrappable::init(this); 141 ScriptWrappable::init(this);
142 } 142 }
143 143
144 PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& docume nt, bool createdByParser) 144 PassRefPtrWillBeRawPtr<HTMLLinkElement> HTMLLinkElement::create(Document& docume nt, bool createdByParser)
145 { 145 {
146 return adoptRefWillBeRefCountedGarbageCollected(new HTMLLinkElement(document , createdByParser)); 146 return adoptRefWillBeNoop(new HTMLLinkElement(document, createdByParser));
147 } 147 }
148 148
149 HTMLLinkElement::~HTMLLinkElement() 149 HTMLLinkElement::~HTMLLinkElement()
150 { 150 {
151 #if !ENABLE(OILPAN) 151 #if !ENABLE(OILPAN)
152 m_link.clear(); 152 m_link.clear();
153 153
154 if (inDocument()) 154 if (inDocument())
155 document().styleEngine()->removeStyleSheetCandidateNode(this); 155 document().styleEngine()->removeStyleSheetCandidateNode(this);
156 #endif 156 #endif
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 removePendingSheet(); 709 removePendingSheet();
710 } 710 }
711 711
712 void LinkStyle::trace(Visitor* visitor) 712 void LinkStyle::trace(Visitor* visitor)
713 { 713 {
714 visitor->trace(m_sheet); 714 visitor->trace(m_sheet);
715 LinkResource::trace(visitor); 715 LinkResource::trace(visitor);
716 } 716 }
717 717
718 } // namespace WebCore 718 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMarqueeElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698