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

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

Issue 293113008: Oilpan: add missing tracing of Attr objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/dom/Attr.h ('k') | no next file » | 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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2012 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 29 matching lines...) Expand all
40 : ContainerNode(&element.document()) 40 : ContainerNode(&element.document())
41 , m_element(&element) 41 , m_element(&element)
42 , m_name(name) 42 , m_name(name)
43 , m_ignoreChildrenChanged(0) 43 , m_ignoreChildrenChanged(0)
44 { 44 {
45 ScriptWrappable::init(this); 45 ScriptWrappable::init(this);
46 } 46 }
47 47
48 Attr::Attr(Document& document, const QualifiedName& name, const AtomicString& st andaloneValue) 48 Attr::Attr(Document& document, const QualifiedName& name, const AtomicString& st andaloneValue)
49 : ContainerNode(&document) 49 : ContainerNode(&document)
50 , m_element(0) 50 , m_element(nullptr)
51 , m_name(name) 51 , m_name(name)
52 , m_standaloneValue(standaloneValue) 52 , m_standaloneValue(standaloneValue)
53 , m_ignoreChildrenChanged(0) 53 , m_ignoreChildrenChanged(0)
54 { 54 {
55 ScriptWrappable::init(this); 55 ScriptWrappable::init(this);
56 } 56 }
57 57
58 PassRefPtrWillBeRawPtr<Attr> Attr::create(Element& element, const QualifiedName& name) 58 PassRefPtrWillBeRawPtr<Attr> Attr::create(Element& element, const QualifiedName& name)
59 { 59 {
60 RefPtrWillBeRawPtr<Attr> attr = adoptRefWillBeRefCountedGarbageCollected(new Attr(element, name)); 60 RefPtrWillBeRawPtr<Attr> attr = adoptRefWillBeRefCountedGarbageCollected(new Attr(element, name));
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ASSERT(m_element); 188 ASSERT(m_element);
189 ASSERT(m_element->elementData()); 189 ASSERT(m_element->elementData());
190 return *m_element->ensureUniqueElementData().getAttributeItem(qualifiedName( )); 190 return *m_element->ensureUniqueElementData().getAttributeItem(qualifiedName( ));
191 } 191 }
192 192
193 void Attr::detachFromElementWithValue(const AtomicString& value) 193 void Attr::detachFromElementWithValue(const AtomicString& value)
194 { 194 {
195 ASSERT(m_element); 195 ASSERT(m_element);
196 ASSERT(m_standaloneValue.isNull()); 196 ASSERT(m_standaloneValue.isNull());
197 m_standaloneValue = value; 197 m_standaloneValue = value;
198 m_element = 0; 198 m_element = nullptr;
199 } 199 }
200 200
201 void Attr::attachToElement(Element* element) 201 void Attr::attachToElement(Element* element)
202 { 202 {
203 ASSERT(!m_element); 203 ASSERT(!m_element);
204 m_element = element; 204 m_element = element;
205 m_standaloneValue = nullAtom; 205 m_standaloneValue = nullAtom;
206 } 206 }
207 207
208 void Attr::trace(Visitor* visitor)
209 {
210 visitor->trace(m_element);
211 ContainerNode::trace(visitor);
208 } 212 }
213
214 }
OLDNEW
« no previous file with comments | « Source/core/dom/Attr.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698