mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
layout: Rewrite intrinsic inline-size and automatic table layout to
match L. David Baron's work-in-progress specification. http://dbaron.org/css/intrinsic/ Column spans are not yet supported. This effectively adds support for percentage widths, and it also fixes many bugs, improving the layout of Google and Wikipedia.
This commit is contained in:
parent
c9ce56a85d
commit
c7e619dfe7
20 changed files with 1081 additions and 618 deletions
|
@ -36,7 +36,7 @@ use incremental::RestyleDamage;
|
|||
use inline::InlineFlow;
|
||||
use model::{CollapsibleMargins, IntrinsicISizes, MarginCollapseInfo};
|
||||
use parallel::FlowParallelInfo;
|
||||
use table::TableFlow;
|
||||
use table::{ColumnInlineSize, TableFlow};
|
||||
use table_caption::TableCaptionFlow;
|
||||
use table_cell::TableCellFlow;
|
||||
use table_colgroup::TableColGroupFlow;
|
||||
|
@ -164,20 +164,8 @@ pub trait Flow: fmt::Show + ToString + Sync {
|
|||
|
||||
/// If this is a table row or table rowgroup or table flow, returns column inline-sizes.
|
||||
/// Fails otherwise.
|
||||
fn col_inline_sizes<'a>(&'a mut self) -> &'a mut Vec<Au> {
|
||||
fail!("called col_inline_sizes() on an other flow than table-row/table-rowgroup/table")
|
||||
}
|
||||
|
||||
/// If this is a table row flow or table rowgroup flow or table flow, returns column min
|
||||
/// inline-sizes. Fails otherwise.
|
||||
fn col_min_inline_sizes<'a>(&'a self) -> &'a Vec<Au> {
|
||||
fail!("called col_min_inline_sizes() on an other flow than table-row/table-rowgroup/table")
|
||||
}
|
||||
|
||||
/// If this is a table row flow or table rowgroup flow or table flow, returns column min
|
||||
/// inline-sizes. Fails otherwise.
|
||||
fn col_pref_inline_sizes<'a>(&'a self) -> &'a Vec<Au> {
|
||||
fail!("called col_pref_inline_sizes() on an other flow than table-row/table-rowgroup/table")
|
||||
fn column_inline_sizes<'a>(&'a mut self) -> &'a mut Vec<ColumnInlineSize> {
|
||||
fail!("called column_inline_sizes() on non-table flow")
|
||||
}
|
||||
|
||||
// Main methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue