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

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

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase Created 3 years, 9 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
Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
index 3d9376fab485561ae2f3a79911f1ff2b9382ac65..a0597c670f1f688195574cea1f82fffbfa28162a 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -29,7 +29,6 @@
#include "core/dom/Fullscreen.h"
-#include "bindings/core/v8/ConditionalFeaturesForCore.h"
#include "core/dom/Document.h"
#include "core/dom/ElementTraversal.h"
#include "core/dom/StyleEngine.h"
@@ -86,7 +85,7 @@ bool allowedToUseFullscreen(const Frame* frame) {
// 1. If FP, by itself, enables fullscreen in this document, then fullscreen
// is allowed.
- if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Fullscreen, frame)) {
+ if (frame->isFeatureEnabled(WebFeaturePolicyFeature::Fullscreen)) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698