aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/table/layout.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-10-15 12:30:22 +0200
committerGitHub <noreply@github.com>2024-10-15 10:30:22 +0000
commit564478ef0da52d98d93fd6acf2526f9ece9b107f (patch)
tree931e5e749f963093a0d70c7d69415566c23ff4b5 /components/layout_2020/table/layout.rs
parentc37fb2e45300a58e97fcc7d2f00ecf7db1f0fc72 (diff)
downloadservo-564478ef0da52d98d93fd6acf2526f9ece9b107f.tar.gz
servo-564478ef0da52d98d93fd6acf2526f9ece9b107f.zip
Remove SizeKeyword, merge it into Size (#33844)
It's not really useful to have it. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/table/layout.rs')
-rw-r--r--components/layout_2020/table/layout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/table/layout.rs b/components/layout_2020/table/layout.rs
index 24d5058b9ad..5ce34111ef7 100644
--- a/components/layout_2020/table/layout.rs
+++ b/components/layout_2020/table/layout.rs
@@ -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];