Title: [266435] branches/safari-610-branch/Source/WebCore
- Revision
- 266435
- Author
- [email protected]
- Date
- 2020-09-01 18:19:27 -0700 (Tue, 01 Sep 2020)
Log Message
Cherry-pick r266281. rdar://problem/68177575
Remove adopted node from TextManipulationController
https://bugs.webkit.org/show_bug.cgi?id=215914
Reviewed by Wenson Hsieh.
Remove Node from TextManipulationController when it gets adopted to a new document.
* dom/Node.cpp:
(WebCore::Node::moveNodeToNewDocument):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-610-branch/Source/WebCore/ChangeLog (266434 => 266435)
--- branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-02 01:19:25 UTC (rev 266434)
+++ branches/safari-610-branch/Source/WebCore/ChangeLog 2020-09-02 01:19:27 UTC (rev 266435)
@@ -1,5 +1,34 @@
2020-09-01 Alan Coon <[email protected]>
+ Cherry-pick r266281. rdar://problem/68177575
+
+ Remove adopted node from TextManipulationController
+ https://bugs.webkit.org/show_bug.cgi?id=215914
+
+ Reviewed by Wenson Hsieh.
+
+ Remove Node from TextManipulationController when it gets adopted to a new document.
+
+ * dom/Node.cpp:
+ (WebCore::Node::moveNodeToNewDocument):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266281 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-08-28 Ryosuke Niwa <[email protected]>
+
+ Remove adopted node from TextManipulationController
+ https://bugs.webkit.org/show_bug.cgi?id=215914
+
+ Reviewed by Wenson Hsieh.
+
+ Remove Node from TextManipulationController when it gets adopted to a new document.
+
+ * dom/Node.cpp:
+ (WebCore::Node::moveNodeToNewDocument):
+
+2020-09-01 Alan Coon <[email protected]>
+
Cherry-pick r266214. rdar://problem/68164557
Resource Load Statistics data summary does not report data which is held up in the web content process.
Modified: branches/safari-610-branch/Source/WebCore/dom/Node.cpp (266434 => 266435)
--- branches/safari-610-branch/Source/WebCore/dom/Node.cpp 2020-09-02 01:19:25 UTC (rev 266434)
+++ branches/safari-610-branch/Source/WebCore/dom/Node.cpp 2020-09-02 01:19:27 UTC (rev 266435)
@@ -2071,6 +2071,10 @@
cache->remove(*this);
}
+ auto* textManipulationController = oldDocument.textManipulationControllerIfExists();
+ if (UNLIKELY(textManipulationController))
+ textManipulationController->removeNode(this);
+
if (auto* eventTargetData = this->eventTargetData()) {
if (!eventTargetData->eventListenerMap.isEmpty()) {
for (auto& type : eventTargetData->eventListenerMap.eventTypes())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes