summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp')
-rw-r--r--src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp b/src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp
index 9ae34a5b63..24e427e679 100644
--- a/src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp
+++ b/src/3rdparty/webkit/Source/WebCore/dom/ContainerNode.cpp
@@ -434,6 +434,11 @@ bool ContainerNode::removeChild(Node* oldChild, ExceptionCode& ec)
document()->removeFocusedNodeOfSubtree(child.get());
+#if ENABLE(FULLSCREEN_API)
+ document()->removeFullScreenElementOfSubtree(child.get());
+#endif
+
+
// Events fired when blurring currently focused node might have moved this
// child into a different parent.
if (child->parentNode() != this) {
@@ -525,6 +530,10 @@ void ContainerNode::removeChildren()
// exclude this node when looking for removed focusedNode since only children will be removed
document()->removeFocusedNodeOfSubtree(this, true);
+#if ENABLE(FULLSCREEN_API)
+ document()->removeFullScreenElementOfSubtree(this, true);
+#endif
+
forbidEventDispatch();
Vector<RefPtr<Node>, 10> removedChildren;
removedChildren.reserveInitialCapacity(childNodeCount());