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

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

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index efdafbb7fdf63f77b1607c3fe6f9da43f9fb6e09..a8425900f9f8b6bd373cd72e5e465729c2d167d2 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -476,7 +476,6 @@ Document::Document(const DocumentInit& initializer,
m_isMobileDocument(false),
m_layoutView(0),
m_contextDocument(initializer.contextDocument()),
- m_hasFullscreenSupplement(false),
m_loadEventDelayCount(0),
m_loadEventDelayTimer(TaskRunnerHelper::get(TaskType::Networking, this),
this,
@@ -4199,6 +4198,10 @@ EventQueue* Document::getEventQueue() const {
return m_domWindow->getEventQueue();
}
+void Document::enqueueAnimationFrameTask(std::unique_ptr<WTF::Closure> task) {
+ ensureScriptedAnimationController().enqueueTask(std::move(task));
+}
+
void Document::enqueueAnimationFrameEvent(Event* event) {
ensureScriptedAnimationController().enqueueEvent(event);
}
@@ -5712,9 +5715,13 @@ void Document::removeFromTopLayer(Element* element) {
}
HTMLDialogElement* Document::activeModalDialog() const {
- if (m_topLayerElements.isEmpty())
- return 0;
- return toHTMLDialogElement(m_topLayerElements.last().get());
+ for (auto it = m_topLayerElements.rbegin(); it != m_topLayerElements.rend();
+ ++it) {
+ if (isHTMLDialogElement(*it))
+ return toHTMLDialogElement((*it).get());
+ }
+
+ return nullptr;
}
void Document::exitPointerLock() {
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/DocumentFullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698