mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove SizeKeyword, merge it into Size (#33844)
It's not really useful to have it. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
c37fb2e453
commit
564478ef0d
3 changed files with 36 additions and 45 deletions
|
@ -35,7 +35,7 @@ use crate::fragment_tree::{
|
|||
};
|
||||
use crate::geom::{
|
||||
AuOrAuto, LogicalRect, LogicalSides, LogicalVec2, PhysicalPoint, PhysicalRect, PhysicalSides,
|
||||
Size, SizeKeyword, ToLogical, ToLogicalWithContainingBlock,
|
||||
Size, ToLogical, ToLogicalWithContainingBlock,
|
||||
};
|
||||
use crate::positioned::{relative_adjustement, PositioningContext, PositioningContextLength};
|
||||
use crate::sizing::{ContentSizes, InlineContentSizesResult};
|
||||
|
@ -252,7 +252,7 @@ impl<'a> TableLayout<'a> {
|
|||
TableLayoutMode::Fixed &&
|
||||
!matches!(
|
||||
self.table.style.box_size(writing_mode).inline,
|
||||
Size::Keyword(SizeKeyword::Initial | SizeKeyword::MaxContent)
|
||||
Size::Initial | Size::MaxContent
|
||||
);
|
||||
let row_measures = vec![LogicalVec2::zero(); self.table.size.width];
|
||||
self.cell_measures = vec![row_measures; self.table.size.height];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue