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

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

Issue 796913002: Use C++11 range-based loop for core/clipboard, core/dom and core/testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 11 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
« no previous file with comments | « Source/core/dom/ElementData.cpp ('k') | Source/core/dom/IdTargetObserverRegistry.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Fullscreen.cpp
diff --git a/Source/core/dom/Fullscreen.cpp b/Source/core/dom/Fullscreen.cpp
index 12eb58d26b76daaefa87f2f465d3534e914f6a1f..d9f8f66f106c929aa464ae8c7b638d2389350eb1 100644
--- a/Source/core/dom/Fullscreen.cpp
+++ b/Source/core/dom/Fullscreen.cpp
@@ -339,11 +339,11 @@ void Fullscreen::exitFullscreen()
// 4. For each descendant in descendants, empty descendant's fullscreen element stack, and queue a
// task to fire an event named fullscreenchange with its bubbles attribute set to true on descendant.
- for (WillBeHeapDeque<RefPtrWillBeMember<Document> >::iterator i = descendants.begin(); i != descendants.end(); ++i) {
- ASSERT(*i);
- RequestType requestType = from(**i).m_fullScreenElementStack.last().second;
- from(**i).clearFullscreenElementStack();
- enqueueChangeEvent(**i, requestType);
+ for (auto& descendant : descendants) {
+ ASSERT(descendant);
+ RequestType requestType = from(*descendant).m_fullScreenElementStack.last().second;
+ from(*descendant).clearFullscreenElementStack();
+ enqueueChangeEvent(*descendant, requestType);
}
// 5. While doc is not null, run these substeps:
« no previous file with comments | « Source/core/dom/ElementData.cpp ('k') | Source/core/dom/IdTargetObserverRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698