diff options
author | Martin Robinson <mrobinson@igalia.com> | 2017-01-10 09:49:06 +0100 |
---|---|---|
committer | Martin Robinson <mrobinson@igalia.com> | 2017-01-17 09:47:43 -0500 |
commit | 44b24de60f95d3e428a98a070ff9926da8387093 (patch) | |
tree | 8198eb3211756161a87874dc892dd30891016312 /components/layout/lib.rs | |
parent | 14aa666a5a485f32fcbf60a2d249d3e4adcc50c8 (diff) | |
download | servo-44b24de60f95d3e428a98a070ff9926da8387093.tar.gz servo-44b24de60f95d3e428a98a070ff9926da8387093.zip |
Only create scrolling overflow regions when necessary
Only create scroll roots for overflow regions when the overflow region
is actually larger than the container size. This prevents creating
scrolling roots for elements that do not have overflow scroll as a
side-effect of the way their height and width is defined. For example,
tables should never respect overflow:scroll since their height and
width should always be large enough to prevent overflow. This also
decreases the size and complexity of the display list in many other
circumstances.
As part of this change, transformed overflow calculation is moved from
display list construction to layout. This should mean that overflow is
handled more accurately earlier.
Fixes #14574.
Diffstat (limited to 'components/layout/lib.rs')
-rw-r--r-- | components/layout/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout/lib.rs b/components/layout/lib.rs index ecca5b6eed1..8c8e8633fa0 100644 --- a/components/layout/lib.rs +++ b/components/layout/lib.rs @@ -50,6 +50,7 @@ extern crate serde_derive; extern crate serde_json; #[macro_use] extern crate servo_atoms; extern crate servo_config; +extern crate servo_geometry; extern crate servo_url; extern crate smallvec; extern crate style; |