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 7d3ee2056cb1247c5be7ab1cd725bc0787e2b8f0..15766e8cc7e6e4494234732abc40c47deaecaa8e 100644 |
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
@@ -29,7 +29,7 @@ |
#include "core/dom/Fullscreen.h" |
-#include "bindings/core/v8/ConditionalFeatures.h" |
+#include "bindings/core/v8/ConditionalFeaturesForCore.h" |
#include "core/dom/Document.h" |
#include "core/dom/ElementTraversal.h" |
#include "core/dom/StyleEngine.h" |
@@ -50,6 +50,7 @@ |
#include "core/svg/SVGSVGElement.h" |
#include "platform/ScopedOrientationChangeIndicator.h" |
#include "platform/UserGestureIndicator.h" |
+#include "public/platform/Platform.h" |
namespace blink { |
@@ -86,8 +87,7 @@ bool allowedToUseFullscreen(const Frame* frame) { |
// 1. If FP, by itself, enables fullscreen in this document, then fullscreen |
// is allowed. |
- if (frame->securityContext()->getFeaturePolicy()->isFeatureEnabled( |
- kFullscreenFeature)) { |
+ if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Fullscreen, frame)) { |
return true; |
} |