| 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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |