Mask root layer rectangles to their boundaries

This prevents iframes contents from overflowing their root layers.
auto merge of #3526 : mrobinson/servo/masks-to-bounds, r=zwarich

This prevents iframes contents from overflowing their root layers.