Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 82015687ef949f185db4a99c480715b1d6f2ed9f..cb68d5f8585a5c6e6bea4c0e62f318202ec42632 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1279,6 +1279,9 @@ void Element::removedFrom(ContainerNode* insertionPoint) |
if (containsFullScreenElement()) |
setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); |
+ if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(document())) |
+ fullscreen->elementRemoved(*this); |
+ |
if (document().page()) |
document().page()->pointerLockController().elementRemoved(this); |