| Index: third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp b/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
|
| index ce6607e664007e930280523566500ca5f8aaaade..139a5fe3443bb595eea04cc92e8854340ab3f307 100644
|
| --- a/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
|
| @@ -5,6 +5,7 @@
|
| #include "core/dom/ElementFullscreen.h"
|
|
|
| #include "core/dom/Fullscreen.h"
|
| +#include "core/frame/UseCounter.h"
|
|
|
| namespace blink {
|
|
|
| @@ -15,6 +16,8 @@ void ElementFullscreen::requestFullscreen(Element& element)
|
|
|
| void ElementFullscreen::webkitRequestFullscreen(Element& element)
|
| {
|
| + if (element.isInShadowTree())
|
| + UseCounter::count(element.document(), UseCounter::PrefixedElementRequestFullscreenInShadow);
|
| Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::PrefixedRequest);
|
| }
|
|
|
|
|