Index: Source/web/WebElement.cpp |
diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp |
index d6300d8b79c7c484ebf224f9b89d8ac968686dbb..96a7fbd865c64308fbb4a3dd30e2ff86d34dbdd8 100644 |
--- a/Source/web/WebElement.cpp |
+++ b/Source/web/WebElement.cpp |
@@ -33,6 +33,7 @@ |
#include "bindings/core/v8/ExceptionState.h" |
#include "core/dom/Element.h" |
+#include "core/dom/FullscreenElementStack.h" |
#include "core/dom/NamedNodeMap.h" |
#include "core/dom/custom/CustomElementCallbackDispatcher.h" |
#include "core/dom/shadow/ShadowRoot.h" |
@@ -142,7 +143,8 @@ WebString WebElement::computeInheritedLanguage() const |
void WebElement::requestFullScreen() |
{ |
- unwrap<Element>()->webkitRequestFullScreen(Element::ALLOW_KEYBOARD_INPUT); |
+ Element* element = unwrap<Element>(); |
+ FullscreenElementStack::from(element->document()).requestFullscreen(*element, FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest); |
} |
WebRect WebElement::boundsInViewportSpace() |