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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::back (Closed)
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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.h ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
index 9c124101037fbd3ff7c15d643bf029d91705330e..380a2438ffe881ba7375f8c08e19fd17fdf73dae 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -470,7 +470,7 @@ void Fullscreen::exitFullscreen(Document& document) {
for (auto& descendant : descendants) {
DCHECK(descendant);
RequestType requestType =
- from(*descendant).m_fullscreenElementStack.last().second;
+ from(*descendant).m_fullscreenElementStack.back().second;
from(*descendant).clearFullscreenElementStack();
from(document).enqueueChangeEvent(*descendant, requestType);
}
@@ -479,7 +479,7 @@ void Fullscreen::exitFullscreen(Document& document) {
Element* newTop = nullptr;
for (Document* currentDoc = &document; currentDoc;) {
RequestType requestType =
- from(*currentDoc).m_fullscreenElementStack.last().second;
+ from(*currentDoc).m_fullscreenElementStack.back().second;
// 1. Pop the top element of doc's fullscreen element stack.
from(*currentDoc).popFullscreenElementStack();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.h ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698