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

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

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 const QualifiedName qualifiedName() const; 56 const QualifiedName qualifiedName() const;
57 57
58 void attachToElement(Element*, const AtomicString&); 58 void attachToElement(Element*, const AtomicString&);
59 void detachFromElementWithValue(const AtomicString&); 59 void detachFromElementWithValue(const AtomicString&);
60 60
61 virtual const AtomicString& localName() const override { return m_name.local Name(); } 61 virtual const AtomicString& localName() const override { return m_name.local Name(); }
62 virtual const AtomicString& namespaceURI() const override { return m_name.na mespaceURI(); } 62 virtual const AtomicString& namespaceURI() const override { return m_name.na mespaceURI(); }
63 const AtomicString& prefix() const { return m_name.prefix(); } 63 const AtomicString& prefix() const { return m_name.prefix(); }
64 64
65 virtual void trace(Visitor*) override; 65 DECLARE_VIRTUAL_TRACE();
66 66
67 private: 67 private:
68 Attr(Element&, const QualifiedName&); 68 Attr(Element&, const QualifiedName&);
69 Attr(Document&, const QualifiedName&, const AtomicString& value); 69 Attr(Document&, const QualifiedName&, const AtomicString& value);
70 70
71 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check. 71 bool isElementNode() const = delete; // This will catch anyone doing an unne cessary check.
72 72
73 void createTextChild(); 73 void createTextChild();
74 74
75 void setValueInternal(const AtomicString&); 75 void setValueInternal(const AtomicString&);
(...skipping 22 matching lines...) Expand all
98 // use a single field. 98 // use a single field.
99 AtomicString m_standaloneValueOrAttachedLocalName; 99 AtomicString m_standaloneValueOrAttachedLocalName;
100 unsigned m_ignoreChildrenChanged; 100 unsigned m_ignoreChildrenChanged;
101 }; 101 };
102 102
103 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode()); 103 DEFINE_NODE_TYPE_CASTS(Attr, isAttributeNode());
104 104
105 } // namespace blink 105 } // namespace blink
106 106
107 #endif // Attr_h 107 #endif // Attr_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698