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

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

Issue 2340263003: Move Document.fullscreenElement to DocumentOrShadowRoot (Closed)
Patch Set: Update test. 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/DocumentFullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp b/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
index 50057650522e34d7b1ca8636f5e95c55dc381f2c..0629fe218cba05f5fbf15bd4cfbe8014f7ef130d 100644
--- a/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentFullscreen.cpp
@@ -25,6 +25,7 @@
#include "core/dom/DocumentFullscreen.h"
+#include "core/dom/DocumentOrShadowRoot.h"
#include "core/dom/Fullscreen.h"
namespace blink {
@@ -34,19 +35,14 @@ bool DocumentFullscreen::fullscreenEnabled(Document& document)
return Fullscreen::fullscreenEnabled(document);
}
-Element* DocumentFullscreen::fullscreenElement(Document& document)
-{
- return Fullscreen::fullscreenElementFrom(document);
-}
-
void DocumentFullscreen::exitFullscreen(Document& document)
{
Fullscreen::exitFullscreen(document);
}
-Element* DocumentFullscreen::currentFullScreenElement(Document& document)
+bool DocumentFullscreen::webkitIsFullScreen(Document& document)
{
- return Fullscreen::currentFullScreenElementFrom(document);
+ return DocumentOrShadowRoot::currentFullScreenElement(document);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698