+82
−55
+9
−3
+1
−3
Loading
Bug 1519546, part 6 - Centralize the visibility logic in BrowserChild and use EffectsInfo. r=mattwoodrow Currently, BrowserChild rendering is enabled and disabled by `RecvRenderLayers`, and this method is called only by the tab switching code. This commit does several things. 1. It factors out the code to enable/disable rendering to MakeVisible/MakeHidden so it can be used outside of `RecvRenderLayers` 2. We track the current value of RenderLayers and use it in conjunction with EffectsInfo to determine if we need to be rendering at any given moment 3. We only apply RenderLayers to the root OOP browser (not OOP-iframes) These changes together make it so that BrowserChild will render IFF 'visible' || 'renderLayers', and will only apply 'renderLayers' to the root browser. Differential Revision: https://phabricator.services.mozilla.com/D31473 --HG-- extra : rebase_source : 0ce9db458f7fd2aa920adf99c5fa8c2634e7ab88 extra : source : e2197dd98aaeeb3d80b65c9892a82d41c4adc80d