servo/servo — pull request #4329 by mrobinson (2014-12-11 12:22:44+00:00)
Title: Improve root layer masking to deal with uninitialized layers

At various moments, whether due to timing or layout issues, root layers (iframes) do not have a size and location. We modify the compositor to have all root layers mask to their content boundaries whether they have a frame rect or not. Uninitialized layers have empty boundaries, so they will disappear from the page. We also have to ensure that clicks to not go to areas of layers that are masked away. This fixes issues where ads on github take over the entire viewport.