mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
layout: Support any display
property in generated content, and allow
tables to clear floats. Improves the GitHub header.
This commit is contained in:
parent
ab17d31bbf
commit
47fc64052c
7 changed files with 99 additions and 50 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue