Index: Source/web/WebDocument.cpp |
diff --git a/Source/web/WebDocument.cpp b/Source/web/WebDocument.cpp |
index 7e1c0ce062ffc718d1ed1a3cd26bcb612d59cf3d..6a1748a22a2d32b9bcb782da95e215ade36d3083 100644 |
--- a/Source/web/WebDocument.cpp |
+++ b/Source/web/WebDocument.cpp |
@@ -225,14 +225,14 @@ void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) |
void WebDocument::cancelFullScreen() |
{ |
- if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(unwrap<Document>())) |
+ if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*unwrap<Document>())) |
fullscreen->webkitCancelFullScreen(); |
} |
WebElement WebDocument::fullScreenElement() const |
{ |
Element* fullScreenElement = 0; |
- if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(const_cast<WebDocument*>(this)->unwrap<Document>())) |
+ if (FullscreenElementStack* fullscreen = FullscreenElementStack::fromIfExists(*const_cast<WebDocument*>(this)->unwrap<Document>())) |
fullScreenElement = fullscreen->webkitCurrentFullScreenElement(); |
return WebElement(fullScreenElement); |
} |