Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 1aff380eacaa9e07d9a68452e3a3b75be197892a..efb167d4349814e4fcae40f61e833efd0ac5d791 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); |