-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 980a1d5. rdar://121612950
Restrict didFinishInsertingNode to connected nodes https://bugs.webkit.org/show_bug.cgi?id=268051 Reviewed by Wenson Hsieh. Don't call didFinishInsertingNode when a node is not connected to a document. * Source/WebCore/dom/ContainerNodeAlgorithms.cpp: (WebCore::notifyNodeInsertedIntoTree): (WebCore::notifyChildNodeInserted): * Source/WebCore/html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::insertedIntoAncestor): * Source/WebCore/html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::insertedIntoAncestor): * Source/WebCore/html/HTMLMaybeFormAssociatedCustomElement.cpp: (WebCore::HTMLMaybeFormAssociatedCustomElement::insertedIntoAncestor): * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::insertedIntoAncestor): * Source/WebCore/html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::insertedIntoAncestor): * Source/WebCore/html/ValidatedFormListedElement.cpp: (WebCore::ValidatedFormListedElement::insertedIntoAncestor): Call resetFormOwner when this insertion didn't result in getting connected to a new document since didFinishInsertingNode won't be called in such cases. It's okay to call this function synchronously in this case since we don't rely on TreeScope::getElementById when the node is not connected to a a document in findAssociatedForm. * Source/WebCore/svg/SVGFEImageElement.cpp: (WebCore::SVGFEImageElement::insertedIntoAncestor): * Source/WebCore/svg/SVGTextPathElement.cpp: (WebCore::SVGTextPathElement::insertedIntoAncestor): Canonical link: https://commits.webkit.org/273523@main Identifier: 272448.554@safari-7618.1.15.10-branch
- Loading branch information
Showing
9 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters