Skip to content

Commit

Permalink
Follow-up to bug 268132
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=275334
rdar://129528145

Reviewed by David Kilzer.

This is a change that should have been included in the fix for bug 268132.
WebKit#23283

* Source/WebCore/dom/Element.cpp:
(WebCore::Element::removedFromAncestor):

Canonical link: https://commits.webkit.org/279903@main
  • Loading branch information
mscottapple authored and ddkilzer committed Jun 11, 2024
1 parent 3f74bba commit 779b597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/WebCore/dom/Element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2857,7 +2857,7 @@ void Element::removedFromAncestor(RemovalType removalType, ContainerNode& oldPar
{
ContainerNode::removedFromAncestor(removalType, oldParentOfRemovedTree);

if (RefPtr page = document().page()) {
if (RefPtrAllowingPartiallyDestroyed<Page> page = document().page()) {
#if ENABLE(POINTER_LOCK)
page->pointerLockController().elementWasRemoved(*this);
#endif
Expand Down

0 comments on commit 779b597

Please sign in to comment.