aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/lib.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2017-01-10 09:49:06 +0100
committerMartin Robinson <mrobinson@igalia.com>2017-01-17 09:47:43 -0500
commit44b24de60f95d3e428a98a070ff9926da8387093 (patch)
tree8198eb3211756161a87874dc892dd30891016312 /components/layout/lib.rs
parent14aa666a5a485f32fcbf60a2d249d3e4adcc50c8 (diff)
downloadservo-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.rs1
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;