| Index: Source/web/WebElement.cpp
|
| diff --git a/Source/web/WebElement.cpp b/Source/web/WebElement.cpp
|
| index d6300d8b79c7c484ebf224f9b89d8ac968686dbb..3bb7f30150e5fbfd31ef00f966ec6055f4f35dd1 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()).requestFullScreenForElement(*element, FullscreenElementStack::PrefixedMozillaAllowKeyboardInputRequest);
|
| }
|
|
|
| WebRect WebElement::boundsInViewportSpace()
|
|
|