| 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() {
|
|
|