Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: third_party/WebKit/Source/core/dom/ElementFullscreen.cpp

Issue 2109113002: Count usage of webkitRequestFullscreen in shadow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tkent
Patch Set: rebase, fix compilation Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698