CTTE: More Document references please
[WebKit-https.git] / Source / WebCore / style / StyleResolveTree.cpp
index 40a28b3..4e3fac5 100644 (file)
@@ -248,7 +248,7 @@ static void createRendererIfNeeded(Element& element, RenderStyle* resolvedStyle)
 
 #if ENABLE(FULLSCREEN_API)
     if (document.webkitIsFullScreen() && document.webkitCurrentFullScreenElement() == &element) {
-        newRenderer = RenderFullScreen::wrapRenderer(newRenderer, parentRenderer, &document);
+        newRenderer = RenderFullScreen::wrapRenderer(newRenderer, parentRenderer, document);
         if (!newRenderer)
             return;
     }