| 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 3154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3165 | 3165 |
| 3166 #ifdef DUMP_NODE_STATISTICS | 3166 #ifdef DUMP_NODE_STATISTICS |
| 3167 bool Element::hasNamedNodeMap() const | 3167 bool Element::hasNamedNodeMap() const |
| 3168 { | 3168 { |
| 3169 return hasRareData() && elementRareData()->attributeMap(); | 3169 return hasRareData() && elementRareData()->attributeMap(); |
| 3170 } | 3170 } |
| 3171 #endif | 3171 #endif |
| 3172 | 3172 |
| 3173 inline void Element::updateName(const AtomicString& oldName, const AtomicString&
newName) | 3173 inline void Element::updateName(const AtomicString& oldName, const AtomicString&
newName) |
| 3174 { | 3174 { |
| 3175 if (!isConnected() || isInShadowTree()) | 3175 if (!isInDocumentTree()) |
| 3176 return; | 3176 return; |
| 3177 | 3177 |
| 3178 if (oldName == newName) | 3178 if (oldName == newName) |
| 3179 return; | 3179 return; |
| 3180 | 3180 |
| 3181 if (shouldRegisterAsNamedItem()) | 3181 if (shouldRegisterAsNamedItem()) |
| 3182 updateNamedItemRegistration(oldName, newName); | 3182 updateNamedItemRegistration(oldName, newName); |
| 3183 } | 3183 } |
| 3184 | 3184 |
| 3185 inline void Element::updateId(const AtomicString& oldId, const AtomicString& new
Id) | 3185 inline void Element::updateId(const AtomicString& oldId, const AtomicString& new
Id) |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3745 | 3745 |
| 3746 DEFINE_TRACE_WRAPPERS(Element) | 3746 DEFINE_TRACE_WRAPPERS(Element) |
| 3747 { | 3747 { |
| 3748 if (hasRareData()) { | 3748 if (hasRareData()) { |
| 3749 visitor->traceWrappers(elementRareData()); | 3749 visitor->traceWrappers(elementRareData()); |
| 3750 } | 3750 } |
| 3751 ContainerNode::traceWrappers(visitor); | 3751 ContainerNode::traceWrappers(visitor); |
| 3752 } | 3752 } |
| 3753 | 3753 |
| 3754 } // namespace blink | 3754 } // namespace blink |
| OLD | NEW |