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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2146973004: Add Node::isInDocumentTree() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@is-connected
Patch Set: inDocumentTree -> isInDocumentTree Created 4 years, 5 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 | third_party/WebKit/Source/core/dom/Node.h » ('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 * (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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698