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

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

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 | « no previous file | Source/core/dom/Attr.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 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) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 const QualifiedName& qualifiedName() const { return m_name; } 57 const QualifiedName& qualifiedName() const { return m_name; }
58 58
59 void attachToElement(Element*); 59 void attachToElement(Element*);
60 void detachFromElementWithValue(const AtomicString&); 60 void detachFromElementWithValue(const AtomicString&);
61 61
62 virtual const AtomicString& localName() const OVERRIDE { return m_name.local Name(); } 62 virtual const AtomicString& localName() const OVERRIDE { return m_name.local Name(); }
63 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na mespaceURI(); } 63 virtual const AtomicString& namespaceURI() const OVERRIDE { return m_name.na mespaceURI(); }
64 const AtomicString& prefix() const { return m_name.prefix(); } 64 const AtomicString& prefix() const { return m_name.prefix(); }
65 65
66 virtual void trace(Visitor*) OVERRIDE;
67
66 private: 68 private:
67 Attr(Element&, const QualifiedName&); 69 Attr(Element&, const QualifiedName&);
68 Attr(Document&, const QualifiedName&, const AtomicString& value); 70 Attr(Document&, const QualifiedName&, const AtomicString& value);
69 71
70 void createTextChild(); 72 void createTextChild();
71 73
72 void setValueInternal(const AtomicString&); 74 void setValueInternal(const AtomicString&);
73 75
74 virtual String nodeName() const OVERRIDE { return name(); } 76 virtual String nodeName() const OVERRIDE { return name(); }
75 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; } 77 virtual NodeType nodeType() const OVERRIDE { return ATTRIBUTE_NODE; }
76 78
77 virtual String nodeValue() const OVERRIDE { return value(); } 79 virtual String nodeValue() const OVERRIDE { return value(); }
78 virtual void setNodeValue(const String&) OVERRIDE; 80 virtual void setNodeValue(const String&) OVERRIDE;
79 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) OVERRIDE; 81 virtual PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep = true) OVERRIDE;
80 82
81 virtual bool isAttributeNode() const OVERRIDE { return true; } 83 virtual bool isAttributeNode() const OVERRIDE { return true; }
82 virtual bool childTypeAllowed(NodeType) const OVERRIDE; 84 virtual bool childTypeAllowed(NodeType) const OVERRIDE;
83 85
84 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE; 86 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
85 87
86 Attribute& elementAttribute(); 88 Attribute& elementAttribute();
87 89
88 // Attr wraps either an element/name, or a name/value pair (when it's a stan dalone Node.) 90 // Attr wraps either an element/name, or a name/value pair (when it's a stan dalone Node.)
89 // Note that m_name is always set, but m_element/m_standaloneValue may be nu ll. 91 // Note that m_name is always set, but m_element/m_standaloneValue may be nu ll.
90 Element* m_element; 92 RawPtrWillBeMember<Element> m_element;
91 QualifiedName m_name; 93 QualifiedName m_name;
92 AtomicString m_standaloneValue; 94 AtomicString m_standaloneValue;
93 unsigned m_ignoreChildrenChanged; 95 unsigned m_ignoreChildrenChanged;
94 }; 96 };
95 97
96 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 98 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
97 99
98 } // namespace WebCore 100 } // namespace WebCore
99 101
100 #endif // Attr_h 102 #endif // Attr_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Attr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698