Index: Source/core/dom/FullscreenElementStack.cpp |
diff --git a/Source/core/dom/FullscreenElementStack.cpp b/Source/core/dom/FullscreenElementStack.cpp |
index c5fc482260612002eba1cabbc9cfbfc5bb253c7c..adde493d559368f461fe6c102909fc8af48ea9fc 100644 |
--- a/Source/core/dom/FullscreenElementStack.cpp |
+++ b/Source/core/dom/FullscreenElementStack.cpp |
@@ -127,7 +127,7 @@ void FullscreenElementStack::documentWasDetached() |
m_eventQueue.clear(); |
if (m_fullScreenRenderer) |
- setFullScreenRenderer(0); |
+ m_fullScreenRenderer->destroy(); |
#if ENABLE(OILPAN) |
m_fullScreenElement = nullptr; |
@@ -475,7 +475,7 @@ void FullscreenElementStack::setFullScreenRenderer(RenderFullScreen* renderer) |
} |
if (m_fullScreenRenderer) |
- m_fullScreenRenderer->destroy(); |
+ m_fullScreenRenderer->unwrapRenderer(); |
ASSERT(!m_fullScreenRenderer); |
m_fullScreenRenderer = renderer; |