stylo: support all overflow values

MozReview-Commit-ID: 1iQdUDsb6u9
This commit is contained in:
Manish Goregaokar 2017-04-24 19:47:37 -07:00 committed by Manish Goregaokar
parent e3e10ada09
commit f8e298b2b3
10 changed files with 63 additions and 81 deletions

View file

@ -276,7 +276,7 @@ pub trait Flow: fmt::Debug + Sync + Send + 'static {
overflow.scroll.origin.x = Au(0);
overflow.scroll.size.width = border_box.size.width;
}
if overflow_x::T::visible != self.as_block().fragment.style.get_box().overflow_y.0 {
if overflow_x::T::visible != self.as_block().fragment.style.get_box().overflow_y {
overflow.paint.origin.y = Au(0);
overflow.paint.size.height = border_box.size.height;
overflow.scroll.origin.y = Au(0);