Bug 855240 - Don't allow CSS viewport changes to happen on MozScrolledAreaChanged. r=kats

Changing the CSS viewport in response to MozScrolledAreaChanged can cause
infinite resizing loops. Also take the opportunity to throttle viewport size
changes and short-circuit unnecessary viewport remeasuring.