mozilla-b2g/gaia — pull request #6961 by davidflanagan (2012-12-11 21:59:49+00:00)
Title: Bug 809782 - followup to fix gray square problem

My 3rd patch for bug 809782 had a couple of bugs in it that would sometimes cause thumbnails to not be displayed properly. This is a followup to fix those bugs.

One bug was in visibility_monitor.js

The other bug has to do with how the gallery was managing its list of thumbnails when switching views. So this patch includes a minor refactoring of how the thumbnails list is managed. As part of that I had to chase down a problem with fullscreen mode, so it turned out to be a larger patch than I anticipated, but it gave me the opportunity to do a little CSS cleanup, as well.