layout: Support any display property in generated content, and allow

tables to clear floats.

Improves the GitHub header.
This commit is contained in:
Patrick Walton 2014-09-26 13:49:26 -07:00
parent ab17d31bbf
commit 47fc64052c
7 changed files with 99 additions and 50 deletions

View file

@ -19,7 +19,7 @@ use wrapper::ThreadSafeLayoutNode;
use servo_util::geometry::Au;
use std::cmp::max;
use std::fmt;
use style::computed_values::{float, table_layout};
use style::computed_values::{clear, float, table_layout};
#[deriving(Encodable)]
pub enum TableLayout {
@ -248,6 +248,10 @@ impl Flow for TableWrapperFlow {
&mut self.block_flow
}
fn float_clearance(&self) -> clear::T {
self.block_flow.float_clearance()
}
fn float_kind(&self) -> float::T {
self.block_flow.float_kind()
}