layout: If the border style is "none", treat its width as 0.

Closes #1383.
This commit is contained in:
Patrick Walton 2013-12-11 17:46:36 -08:00
parent acb3d9f533
commit 511d2b11d4
6 changed files with 97 additions and 23 deletions

View file

@ -448,15 +448,15 @@ impl LayoutTask {
});
layout_root.traverse_postorder(&mut ComputeDamageTraversal.clone());
debug!("layout: constructed Flow tree");
debug!("{:?}", layout_root.dump());
// Perform the primary layout passes over the flow tree to compute the locations of all
// the boxes.
do profile(time::LayoutMainCategory, self.profiler_chan.clone()) {
self.solve_constraints(layout_root, &mut layout_ctx)
}
debug!("layout: constraint solving done:");
debug!("{:?}", layout_root.dump());
// Build the display list if necessary, and send it to the renderer.
if data.goal == ReflowForDisplay {
do profile(time::LayoutDispListBuildCategory, self.profiler_chan.clone()) {