Bug 1034347 follow up - Fixing over paint issues
While making sure
* we're not continuously creating/destroying layers during an edge gesture
* we don't reflow while quickly swiping through apps
Merge pull request #21591 from etiennesegonzac/bug-1034347-bis

Bug 1034347 follow up - Fixing over paint issues r=21