Changeset 212682 in webkit


Ignore:
Timestamp:
Feb 20, 2017 4:18:31 PM (7 years ago)
Author:
matthew_hanson@apple.com
Message:

Roll out r212621 via r212647. rdar://problem/30563318

Location:
branches/safari-603-branch
Files:
6 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-603-branch/LayoutTests/ChangeLog

    r212676 r212682  
     12017-02-20  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Rollout r212647. rdar://problem/30563318
     4
    152017-02-20  Matthew Hanson  <matthew_hanson@apple.com>
    26
  • branches/safari-603-branch/Source/WebCore/ChangeLog

    r212676 r212682  
     12017-02-20  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Rollout r212647. rdar://problem/30563318
     4
    152017-02-20  Matthew Hanson  <matthew_hanson@apple.com>
    26
  • branches/safari-603-branch/Source/WebCore/dom/ContainerNode.cpp

    r212647 r212682  
    599599{
    600600    disconnectSubframesIfNeeded(*this, DescendantsOnly);
    601     if (oldChild.parentNode() != this)
    602         return;
    603 
    604     {
    605         NoEventDispatchAssertion assertNoEventDispatch;
    606 
    607         document().nodeChildrenWillBeRemoved(*this);
    608 
    609         ASSERT(oldChild.parentNode() == this);
    610         ASSERT(!oldChild.isDocumentFragment());
    611 
    612         Node* prev = oldChild.previousSibling();
    613         Node* next = oldChild.nextSibling();
    614 
    615         ChildListMutationScope(*this).willRemoveChild(oldChild);
    616         oldChild.notifyMutationObserversNodeWillDetach();
    617 
    618         removeBetween(prev, next, oldChild);
    619 
    620         notifyChildRemoved(oldChild, prev, next, ChildChangeSourceParser);
    621         document().notifyRemovePendingSheetIfNeeded();
    622     }
     601
     602    NoEventDispatchAssertion assertNoEventDispatch;
     603
     604    document().nodeChildrenWillBeRemoved(*this);
     605
     606    ASSERT(oldChild.parentNode() == this);
     607    ASSERT(!oldChild.isDocumentFragment());
     608
     609    Node* prev = oldChild.previousSibling();
     610    Node* next = oldChild.nextSibling();
     611
     612    ChildListMutationScope(*this).willRemoveChild(oldChild);
     613    oldChild.notifyMutationObserversNodeWillDetach();
     614
     615    removeBetween(prev, next, oldChild);
     616
     617    notifyChildRemoved(oldChild, prev, next, ChildChangeSourceParser);
     618    document().notifyRemovePendingSheetIfNeeded();
    623619}
    624620
     
    724720    ASSERT(!hasTagName(HTMLNames::templateTag));
    725721
     722    if (&document() != &newChild.document())
     723        document().adoptNode(newChild);
     724
    726725    {
    727726        NoEventDispatchAssertion assertNoEventDispatch;
    728 
    729         if (&document() != &newChild.document())
    730             document().adoptNode(newChild);
    731 
    732727        appendChildCommon(newChild);
    733728        treeScope().adoptIfNeeded(newChild);
  • branches/safari-603-branch/Source/WebCore/html/parser/HTMLConstructionSite.cpp

    r212647 r212682  
    134134        parent->parserRemoveChild(*task.child);
    135135
    136     if (task.child->parentNode())
    137         return;
    138 
    139136    task.parent->parserAppendChild(*task.child);
    140137}
     
    143140{
    144141    ASSERT(task.operation == HTMLConstructionSiteTask::InsertAlreadyParsedChild);
    145 
    146     if (task.child->parentNode())
    147         return;
    148142
    149143    insert(task);
  • branches/safari-603-branch/Source/WebCore/xml/XMLErrors.cpp

    r212647 r212682  
    141141
    142142        m_document.parserRemoveChild(*documentElement);
    143         if (!documentElement->parentNode())
    144             body->parserAppendChild(*documentElement);
    145143
     144        body->parserAppendChild(*documentElement);
    146145        m_document.parserAppendChild(rootElement);
    147146
  • branches/safari-603-branch/Source/WebCore/xml/parser/XMLDocumentParser.cpp

    r212647 r212682  
    196196        return;
    197197
    198     if (m_sawError) {
     198    if (m_sawError)
    199199        insertErrorMessageBlock();
    200         if (isDetached()) // Inserting an error message may have ran arbitrary scripts.
    201             return;
    202     } else {
     200    else {
    203201        updateLeafTextNode();
    204202        document()->styleScope().didChangeStyleSheetEnvironment();
     
    217215    // makes sense to call any methods on DocumentParser once it's been stopped.
    218216    // However, FrameLoader::stop calls DocumentParser::finish unconditionally.
    219 
    220     Ref<XMLDocumentParser> protectedThis(*this);
    221217
    222218    if (m_parserPaused)
Note: See TracChangeset for help on using the changeset viewer.