| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index d72b199e7748170ca61273d51c844c2dcbe232c3..68ddd5915223b6930e887d937df8e3340655f482 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -5064,6 +5064,11 @@ HTMLDialogElement* Document::activeModalDialog() const
|
|
|
| void Document::webkitExitPointerLock()
|
| {
|
| + exitPointerLock();
|
| +}
|
| +
|
| +void Document::exitPointerLock()
|
| +{
|
| if (!page())
|
| return;
|
| if (Element* target = page()->pointerLockController().element()) {
|
| @@ -5075,6 +5080,11 @@ void Document::webkitExitPointerLock()
|
|
|
| Element* Document::webkitPointerLockElement() const
|
| {
|
| + return pointerLockElement();
|
| +}
|
| +
|
| +Element* Document::pointerLockElement() const
|
| +{
|
| if (!page() || page()->pointerLockController().lockPending())
|
| return 0;
|
| if (Element* element = page()->pointerLockController().element()) {
|
|
|