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/ElementFullscreen.cpp

Issue 2325663002: Make Fullscreen::requestFullscreen and exitFullscreen static (Closed)
Patch Set: Created 4 years, 3 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/ElementFullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp b/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
index 139a5fe3443bb595eea04cc92e8854340ab3f307..1cae9fca6d34e888bc592f8424f59d32f92d94bf 100644
--- a/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementFullscreen.cpp
@@ -11,14 +11,14 @@ namespace blink {
void ElementFullscreen::requestFullscreen(Element& element)
{
- Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::UnprefixedRequest);
+ Fullscreen::requestFullscreen(element, Fullscreen::UnprefixedRequest);
}
void ElementFullscreen::webkitRequestFullscreen(Element& element)
{
if (element.isInShadowTree())
UseCounter::count(element.document(), UseCounter::PrefixedElementRequestFullscreenInShadow);
- Fullscreen::from(element.document()).requestFullscreen(element, Fullscreen::PrefixedRequest);
+ Fullscreen::requestFullscreen(element, Fullscreen::PrefixedRequest);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698