Remove dead code from layout.

This commit is contained in:
Ms2ger 2015-11-16 19:24:11 +01:00
parent de23fef9ca
commit 5ec1cdea9b
11 changed files with 4 additions and 116 deletions

View file

@ -632,13 +632,6 @@ impl ColumnIntrinsicInlineSize {
}
}
/// Returns the true minimum size of this column, given the containing block's inline size.
/// Beware that this is generally only correct for fixed table layout. (Compare CSS 2.1 §
/// 17.5.2.1 with the algorithm in INTRINSIC § 4.)
pub fn minimum(&self, containing_block_inline_size: Au) -> Au {
cmp::max(self.minimum_length, containing_block_inline_size.scale_by(self.percentage))
}
/// Returns the higher of the two percentages specified in `self` and `other`.
pub fn greatest_percentage(&self, other: &ColumnIntrinsicInlineSize) -> CSSFloat {
if self.percentage > other.percentage {