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

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

Issue 2746763009: Migrate WTF::Deque::prepend() to ::push_front() (Closed)
Patch Set: Created 3 years, 9 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/Fullscreen.cpp
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
index 23475494851e755f9b0f7886977432ed3308a023..ffe3260014470a00d13352bcf66e11feafa1e6e2 100644
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
@@ -433,7 +433,7 @@ void Fullscreen::requestFullscreen(Element& element,
// the IPC that dispatches fullscreenchange.
HeapDeque<Member<Document>> docs;
for (Document* doc = &document; doc; doc = nextLocalAncestor(*doc))
- docs.prepend(doc);
+ docs.push_front(doc);
// 4. For each document in docs, run these substeps:
HeapDeque<Member<Document>>::iterator current = docs.begin(),
@@ -546,7 +546,7 @@ void Fullscreen::exitFullscreen(Document& document) {
continue;
DCHECK(toLocalFrame(descendant)->document());
if (fullscreenElementFrom(*toLocalFrame(descendant)->document()))
- descendants.prepend(toLocalFrame(descendant)->document());
+ descendants.push_front(toLocalFrame(descendant)->document());
}
// 4. For each descendant in descendants, empty descendant's fullscreen

Powered by Google App Engine
This is Rietveld 408576698