PresShell::DecVisibleCount() just iterates over all the frames in a visible frames set and decrements a counter for each one for which visibility tracking is still enabled. We'll soon need to add more code that does this kind of iteration, so it makes sense to replace DecVisibleCount() with a general iterator function that takes a lambda as an argument.
Created attachment 8748433 [details] [diff] [review] Replace PresShell::DecVisibleCount() with a general map function. Here's the patch. We'll be making use of this map function a good deal in upcoming patches.
Attachment #8748433 - Flags: review?(mstange)
Attachment #8748433 - Flags: review?(mstange) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/45c3308d49c95e37c8d1e4855231baa976a7fe9a Bug 1269935 - Replace PresShell::DecVisibleCount() with a general map function. r=mstange
Status: NEW → RESOLVED
Last Resolved: 3 years ago
status-firefox49: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
I backed this bug out on inbound, I expect the backout to get merged to mozilla-central. I plan to also request uplift to backout on aurora (so this bug would not be landed in any version of Firefox). Bug 1284350 tracks the back out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
You need to log in before you can comment on or make changes to this bug.