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

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

Issue 2199783002: Clarify fullscreenElement vs. currentFullScreenElement distinction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/DocumentFullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp b/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
index f19b4ee294878d01323fa90fe7223e9a1d97152f..01ca3f8a23fba4d4b895290fe8c5119416627d2d 100644
--- a/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
@@ -36,9 +36,7 @@ bool DocumentFullscreen::fullscreenEnabled(Document& document)
Element* DocumentFullscreen::fullscreenElement(Document& document)
{
- if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document))
- return fullscreen->fullscreenElement();
- return 0;
+ return Fullscreen::fullscreenElementFrom(document);
}
void DocumentFullscreen::exitFullscreen(Document& document)
@@ -46,11 +44,9 @@ void DocumentFullscreen::exitFullscreen(Document& document)
Fullscreen::from(document).exitFullscreen();
}
-Element* DocumentFullscreen::webkitCurrentFullScreenElement(Document& document)
+Element* DocumentFullscreen::currentFullScreenElement(Document& document)
{
- if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document))
- return fullscreen->webkitCurrentFullScreenElement();
- return 0;
+ return Fullscreen::currentFullScreenElementFrom(document);
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentFullscreen.h ('k') | third_party/WebKit/Source/core/dom/DocumentFullscreen.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698