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 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 if (Element* backdrop = pseudoElement(BACKDROP)) | 1225 if (Element* backdrop = pseudoElement(BACKDROP)) |
1226 backdrop->insertedInto(insertionPoint); | 1226 backdrop->insertedInto(insertionPoint); |
1227 | 1227 |
1228 if (!insertionPoint->isInTreeScope()) | 1228 if (!insertionPoint->isInTreeScope()) |
1229 return InsertionDone; | 1229 return InsertionDone; |
1230 | 1230 |
1231 if (hasRareData()) | 1231 if (hasRareData()) |
1232 elementRareData()->clearClassListValueForQuirksMode(); | 1232 elementRareData()->clearClassListValueForQuirksMode(); |
1233 | 1233 |
1234 if (isUpgradedCustomElement() && inDocument()) | 1234 if (isUpgradedCustomElement() && inDocument()) |
1235 CustomElement::didEnterDocument(this, &document()); | 1235 CustomElement::didEnterDocument(this, document()); |
1236 | 1236 |
1237 TreeScope* scope = insertionPoint->treeScope(); | 1237 TreeScope* scope = insertionPoint->treeScope(); |
1238 if (scope != treeScope()) | 1238 if (scope != treeScope()) |
1239 return InsertionDone; | 1239 return InsertionDone; |
1240 | 1240 |
1241 const AtomicString& idValue = getIdAttribute(); | 1241 const AtomicString& idValue = getIdAttribute(); |
1242 if (!idValue.isNull()) | 1242 if (!idValue.isNull()) |
1243 updateId(scope, nullAtom, idValue); | 1243 updateId(scope, nullAtom, idValue); |
1244 | 1244 |
1245 const AtomicString& nameValue = getNameAttribute(); | 1245 const AtomicString& nameValue = getNameAttribute(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1294 updateLabel(treeScope, fastGetAttribute(forAttr), nullAtom); | 1294 updateLabel(treeScope, fastGetAttribute(forAttr), nullAtom); |
1295 } | 1295 } |
1296 } | 1296 } |
1297 | 1297 |
1298 ContainerNode::removedFrom(insertionPoint); | 1298 ContainerNode::removedFrom(insertionPoint); |
1299 if (wasInDocument) { | 1299 if (wasInDocument) { |
1300 if (hasPendingResources()) | 1300 if (hasPendingResources()) |
1301 document().accessSVGExtensions()->removeElementFromPendingResources(
this); | 1301 document().accessSVGExtensions()->removeElementFromPendingResources(
this); |
1302 | 1302 |
1303 if (isUpgradedCustomElement()) | 1303 if (isUpgradedCustomElement()) |
1304 CustomElement::didLeaveDocument(this, &insertionPoint->document()); | 1304 CustomElement::didLeaveDocument(this, insertionPoint->document()); |
1305 } | 1305 } |
1306 | 1306 |
1307 if (hasRareData()) | 1307 if (hasRareData()) |
1308 elementRareData()->setIsInCanvasSubtree(false); | 1308 elementRareData()->setIsInCanvasSubtree(false); |
1309 } | 1309 } |
1310 | 1310 |
1311 void Element::attach(const AttachContext& context) | 1311 void Element::attach(const AttachContext& context) |
1312 { | 1312 { |
1313 PostAttachCallbackDisabler callbackDisabler(this); | 1313 PostAttachCallbackDisabler callbackDisabler(this); |
1314 StyleResolverParentPusher parentPusher(this); | 1314 StyleResolverParentPusher parentPusher(this); |
(...skipping 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3634 return 0; | 3634 return 0; |
3635 } | 3635 } |
3636 | 3636 |
3637 Attribute* UniqueElementData::attributeItem(unsigned index) | 3637 Attribute* UniqueElementData::attributeItem(unsigned index) |
3638 { | 3638 { |
3639 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); | 3639 ASSERT_WITH_SECURITY_IMPLICATION(index < length()); |
3640 return &m_attributeVector.at(index); | 3640 return &m_attributeVector.at(index); |
3641 } | 3641 } |
3642 | 3642 |
3643 } // namespace WebCore | 3643 } // namespace WebCore |
OLD | NEW |