Title: [261509] branches/safari-609-branch/Source/WebCore
Revision
261509
Author
[email protected]
Date
2020-05-11 17:21:21 -0700 (Mon, 11 May 2020)

Log Message

Cherry-pick r259348. rdar://problem/62978878

    Notify accessibility when a node is removed from its ancestor.
    https://bugs.webkit.org/show_bug.cgi?id=209819

    Reviewed by Chris Fleizach.

    Covered by existing tests in LayoutTests/accessibility.

    * dom/Node.cpp:
    (WebCore::Node::removedFromAncestor):

    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259348 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Modified Paths

Diff

Modified: branches/safari-609-branch/Source/WebCore/ChangeLog (261508 => 261509)


--- branches/safari-609-branch/Source/WebCore/ChangeLog	2020-05-12 00:21:18 UTC (rev 261508)
+++ branches/safari-609-branch/Source/WebCore/ChangeLog	2020-05-12 00:21:21 UTC (rev 261509)
@@ -1,5 +1,34 @@
 2020-05-07  Russell Epstein  <[email protected]>
 
+        Cherry-pick r259348. rdar://problem/62978878
+
+    Notify accessibility when a node is removed from its ancestor.
+    https://bugs.webkit.org/show_bug.cgi?id=209819
+    
+    Reviewed by Chris Fleizach.
+    
+    Covered by existing tests in LayoutTests/accessibility.
+    
+    * dom/Node.cpp:
+    (WebCore::Node::removedFromAncestor):
+    
+    
+    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+    2020-04-01  Jack Lee  <[email protected]>
+
+            Notify accessibility when a node is removed from its ancestor.
+            https://bugs.webkit.org/show_bug.cgi?id=209819
+
+            Reviewed by Chris Fleizach.
+
+            Covered by existing tests in LayoutTests/accessibility.
+
+            * dom/Node.cpp:
+            (WebCore::Node::removedFromAncestor):
+
+2020-05-07  Russell Epstein  <[email protected]>
+
         Cherry-pick r257929. rdar://problem/62978899
 
     In case an activating service worker is terminated, it should go to activated state

Modified: branches/safari-609-branch/Source/WebCore/dom/Node.cpp (261508 => 261509)


--- branches/safari-609-branch/Source/WebCore/dom/Node.cpp	2020-05-12 00:21:18 UTC (rev 261508)
+++ branches/safari-609-branch/Source/WebCore/dom/Node.cpp	2020-05-12 00:21:21 UTC (rev 261509)
@@ -1290,12 +1290,18 @@
     return InsertedIntoAncestorResult::Done;
 }
 
-void Node::removedFromAncestor(RemovalType removalType, ContainerNode&)
+void Node::removedFromAncestor(RemovalType removalType, ContainerNode& oldParentOfRemovedTree)
 {
     if (removalType.disconnectedFromDocument)
         clearFlag(IsConnectedFlag);
     if (isInShadowTree() && !treeScope().rootNode().isShadowRoot())
         clearFlag(IsInShadowTreeFlag);
+    if (removalType.disconnectedFromDocument) {
+        if (auto* document = &oldParentOfRemovedTree.treeScope().documentScope()) {
+            if (auto* cache = document->existingAXObjectCache())
+                cache->remove(*this);
+        }
+    }
 }
 
 bool Node::isRootEditableElement() const
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to