OLD | NEW |
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 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 AttrNodeList::const_iterator end = attrNodeList.end(); | 155 AttrNodeList::const_iterator end = attrNodeList.end(); |
156 for (AttrNodeList::const_iterator it = attrNodeList.begin(); it != end; ++it
) { | 156 for (AttrNodeList::const_iterator it = attrNodeList.begin(); it != end; ++it
) { |
157 if ((*it)->qualifiedName() == name) | 157 if ((*it)->qualifiedName() == name) |
158 return it->get(); | 158 return it->get(); |
159 } | 159 } |
160 return 0; | 160 return 0; |
161 } | 161 } |
162 | 162 |
163 PassRefPtrWillBeRawPtr<Element> Element::create(const QualifiedName& tagName, Do
cument* document) | 163 PassRefPtrWillBeRawPtr<Element> Element::create(const QualifiedName& tagName, Do
cument* document) |
164 { | 164 { |
165 return adoptRefWillBeRefCountedGarbageCollected(new Element(tagName, documen
t, CreateElement)); | 165 return adoptRefWillBeNoop(new Element(tagName, document, CreateElement)); |
166 } | 166 } |
167 | 167 |
168 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) | 168 Element::Element(const QualifiedName& tagName, Document* document, ConstructionT
ype type) |
169 : ContainerNode(document, type) | 169 : ContainerNode(document, type) |
170 , m_tagName(tagName) | 170 , m_tagName(tagName) |
171 { | 171 { |
172 ScriptWrappable::init(this); | 172 ScriptWrappable::init(this); |
173 } | 173 } |
174 | 174 |
175 Element::~Element() | 175 Element::~Element() |
(...skipping 3145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3321 | 3321 |
3322 void Element::trace(Visitor* visitor) | 3322 void Element::trace(Visitor* visitor) |
3323 { | 3323 { |
3324 if (hasRareData()) | 3324 if (hasRareData()) |
3325 visitor->trace(elementRareData()); | 3325 visitor->trace(elementRareData()); |
3326 | 3326 |
3327 ContainerNode::trace(visitor); | 3327 ContainerNode::trace(visitor); |
3328 } | 3328 } |
3329 | 3329 |
3330 } // namespace WebCore | 3330 } // namespace WebCore |
OLD | NEW |