Index: Source/web/FullscreenController.cpp |
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp |
index e4ae3c3dc7590b5b0659d5312bea354d2e42f3f9..f4154f9cfc598a860636a6582b78e4666178ce34 100644 |
--- a/Source/web/FullscreenController.cpp |
+++ b/Source/web/FullscreenController.cpp |
@@ -61,10 +61,10 @@ void FullscreenController::willEnterFullScreen() |
return; |
// Ensure that this element's document is still attached. |
- Document* doc = m_provisionalFullScreenElement->document(); |
- if (doc->frame()) { |
- FullscreenElementStack::from(doc)->webkitWillEnterFullScreenForElement(m_provisionalFullScreenElement.get()); |
- m_fullScreenFrame = doc->frame(); |
+ Document& doc = m_provisionalFullScreenElement->document(); |
+ if (doc.frame()) { |
+ FullscreenElementStack::from(&doc)->webkitWillEnterFullScreenForElement(m_provisionalFullScreenElement.get()); |
+ m_fullScreenFrame = doc.frame(); |
} |
m_provisionalFullScreenElement.clear(); |
} |