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 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 const AtomicString& nameValue = getNameAttribute(); | 1467 const AtomicString& nameValue = getNameAttribute(); |
1468 if (!nameValue.isNull()) | 1468 if (!nameValue.isNull()) |
1469 updateName(nullAtom, nameValue); | 1469 updateName(nullAtom, nameValue); |
1470 | 1470 |
1471 if (parentElement() && parentElement()->isInCanvasSubtree()) | 1471 if (parentElement() && parentElement()->isInCanvasSubtree()) |
1472 setIsInCanvasSubtree(true); | 1472 setIsInCanvasSubtree(true); |
1473 | 1473 |
1474 return InsertionDone; | 1474 return InsertionDone; |
1475 } | 1475 } |
1476 | 1476 |
1477 void Element::removedFrom(ContainerNode* insertionPoint) | 1477 void Element::removedFrom(ContainerNode* insertionPoint, Node* next) |
1478 { | 1478 { |
1479 bool wasInDocument = insertionPoint->inDocument(); | 1479 bool wasInDocument = insertionPoint->inDocument(); |
1480 | 1480 |
1481 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); | 1481 ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements()); |
1482 | 1482 |
1483 if (Fullscreen::isActiveFullScreenElement(*this)) { | 1483 if (Fullscreen::isActiveFullScreenElement(*this)) { |
1484 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); | 1484 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); |
1485 if (insertionPoint->isElementNode()) { | 1485 if (insertionPoint->isElementNode()) { |
1486 toElement(insertionPoint)->setContainsFullScreenElement(false); | 1486 toElement(insertionPoint)->setContainsFullScreenElement(false); |
1487 toElement(insertionPoint)->setContainsFullScreenElementOnAncestorsCr
ossingFrameBoundaries(false); | 1487 toElement(insertionPoint)->setContainsFullScreenElementOnAncestorsCr
ossingFrameBoundaries(false); |
(...skipping 11 matching lines...) Expand all Loading... |
1499 if (insertionPoint->isInTreeScope() && treeScope() == document()) { | 1499 if (insertionPoint->isInTreeScope() && treeScope() == document()) { |
1500 const AtomicString& idValue = getIdAttribute(); | 1500 const AtomicString& idValue = getIdAttribute(); |
1501 if (!idValue.isNull()) | 1501 if (!idValue.isNull()) |
1502 updateId(insertionPoint->treeScope(), idValue, nullAtom); | 1502 updateId(insertionPoint->treeScope(), idValue, nullAtom); |
1503 | 1503 |
1504 const AtomicString& nameValue = getNameAttribute(); | 1504 const AtomicString& nameValue = getNameAttribute(); |
1505 if (!nameValue.isNull()) | 1505 if (!nameValue.isNull()) |
1506 updateName(nameValue, nullAtom); | 1506 updateName(nameValue, nullAtom); |
1507 } | 1507 } |
1508 | 1508 |
1509 ContainerNode::removedFrom(insertionPoint); | 1509 ContainerNode::removedFrom(insertionPoint, next); |
1510 if (wasInDocument) { | 1510 if (wasInDocument) { |
1511 if (this == document().cssTarget()) | 1511 if (this == document().cssTarget()) |
1512 document().setCSSTarget(nullptr); | 1512 document().setCSSTarget(nullptr); |
1513 | 1513 |
1514 if (hasPendingResources()) | 1514 if (hasPendingResources()) |
1515 document().accessSVGExtensions().removeElementFromPendingResources(t
his); | 1515 document().accessSVGExtensions().removeElementFromPendingResources(t
his); |
1516 | 1516 |
1517 if (isUpgradedCustomElement()) | 1517 if (isUpgradedCustomElement()) |
1518 CustomElement::didDetach(this, insertionPoint->document()); | 1518 CustomElement::didDetach(this, insertionPoint->document()); |
1519 } | 1519 } |
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3616 { | 3616 { |
3617 #if ENABLE(OILPAN) | 3617 #if ENABLE(OILPAN) |
3618 if (hasRareData()) | 3618 if (hasRareData()) |
3619 visitor->trace(elementRareData()); | 3619 visitor->trace(elementRareData()); |
3620 visitor->trace(m_elementData); | 3620 visitor->trace(m_elementData); |
3621 #endif | 3621 #endif |
3622 ContainerNode::trace(visitor); | 3622 ContainerNode::trace(visitor); |
3623 } | 3623 } |
3624 | 3624 |
3625 } // namespace blink | 3625 } // namespace blink |
OLD | NEW |