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

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

Issue 507693003: Rename didEnterDocument and didLeaveDocument (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 3 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/custom/CustomElement.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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 1243
1244 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); 1244 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements());
1245 1245
1246 if (!insertionPoint->isInTreeScope()) 1246 if (!insertionPoint->isInTreeScope())
1247 return InsertionDone; 1247 return InsertionDone;
1248 1248
1249 if (hasRareData()) 1249 if (hasRareData())
1250 elementRareData()->clearClassListValueForQuirksMode(); 1250 elementRareData()->clearClassListValueForQuirksMode();
1251 1251
1252 if (isUpgradedCustomElement() && inDocument()) 1252 if (isUpgradedCustomElement() && inDocument())
1253 CustomElement::didEnterDocument(this, document()); 1253 CustomElement::didAttach(this, document());
1254 1254
1255 TreeScope& scope = insertionPoint->treeScope(); 1255 TreeScope& scope = insertionPoint->treeScope();
1256 if (scope != treeScope()) 1256 if (scope != treeScope())
1257 return InsertionDone; 1257 return InsertionDone;
1258 1258
1259 const AtomicString& idValue = getIdAttribute(); 1259 const AtomicString& idValue = getIdAttribute();
1260 if (!idValue.isNull()) 1260 if (!idValue.isNull())
1261 updateId(scope, nullAtom, idValue); 1261 updateId(scope, nullAtom, idValue);
1262 1262
1263 const AtomicString& nameValue = getNameAttribute(); 1263 const AtomicString& nameValue = getNameAttribute();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 if (!nameValue.isNull()) 1296 if (!nameValue.isNull())
1297 updateName(nameValue, nullAtom); 1297 updateName(nameValue, nullAtom);
1298 } 1298 }
1299 1299
1300 ContainerNode::removedFrom(insertionPoint); 1300 ContainerNode::removedFrom(insertionPoint);
1301 if (wasInDocument) { 1301 if (wasInDocument) {
1302 if (hasPendingResources()) 1302 if (hasPendingResources())
1303 document().accessSVGExtensions().removeElementFromPendingResources(t his); 1303 document().accessSVGExtensions().removeElementFromPendingResources(t his);
1304 1304
1305 if (isUpgradedCustomElement()) 1305 if (isUpgradedCustomElement())
1306 CustomElement::didLeaveDocument(this, insertionPoint->document()); 1306 CustomElement::didDetach(this, insertionPoint->document());
1307 } 1307 }
1308 1308
1309 document().removeFromTopLayer(this); 1309 document().removeFromTopLayer(this);
1310 1310
1311 clearElementFlag(IsInCanvasSubtree); 1311 clearElementFlag(IsInCanvasSubtree);
1312 1312
1313 if (hasRareData()) 1313 if (hasRareData())
1314 elementRareData()->clearRestyleFlags(); 1314 elementRareData()->clearRestyleFlags();
1315 } 1315 }
1316 1316
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after
3248 { 3248 {
3249 #if ENABLE(OILPAN) 3249 #if ENABLE(OILPAN)
3250 if (hasRareData()) 3250 if (hasRareData())
3251 visitor->trace(elementRareData()); 3251 visitor->trace(elementRareData());
3252 visitor->trace(m_elementData); 3252 visitor->trace(m_elementData);
3253 #endif 3253 #endif
3254 ContainerNode::trace(visitor); 3254 ContainerNode::trace(visitor);
3255 } 3255 }
3256 3256
3257 } // namespace blink 3257 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/custom/CustomElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698