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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h

Issue 2340263003: Move Document.fullscreenElement to DocumentOrShadowRoot (Closed)
Patch Set: Fix for comments Created 4 years, 2 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/DocumentOrShadowRoot.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
index 8a31e5ef3be2349075da2ff54049acf8ae344875..4b4c1b6499096546fd2561c3f0f3080aab532b1d 100644
--- a/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
+++ b/third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.h
@@ -6,6 +6,7 @@
#define DocumentOrShadowRoot_h
#include "core/dom/Document.h"
+#include "core/dom/Fullscreen.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/frame/UseCounter.h"
@@ -73,6 +74,14 @@ class DocumentOrShadowRoot {
return nullptr;
return shadowRoot.adjustedElement(*target);
}
+
+ static Element* fullscreenElement(Document& document) {
+ return Fullscreen::fullscreenElementForBindingFrom(document);
foolip 2016/10/10 12:13:40 I think it's probably fine to not have a special c
kochi 2016/10/17 11:14:27 The motivation I introduced *ForBinding* was that
+ }
+
+ static Element* fullscreenElement(ShadowRoot& shadowRoot) {
+ return Fullscreen::fullscreenElementForBindingFrom(shadowRoot);
+ }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698