| 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 cc758807fda7ec40e40564c691fb4bda6991a11a..ffd6846ce22acf8eb5edb7715e64d2c5c336dd6e 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5759,7 +5759,7 @@ void Document::removeFromTopLayer(Element* element) {
|
| HTMLDialogElement* Document::activeModalDialog() const {
|
| if (m_topLayerElements.isEmpty())
|
| return 0;
|
| - return toHTMLDialogElement(m_topLayerElements.last().get());
|
| + return toHTMLDialogElement(m_topLayerElements.back().get());
|
| }
|
|
|
| void Document::exitPointerLock() {
|
|
|