aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/style_ext.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/style_ext.rs')
-rw-r--r--components/layout_2020/style_ext.rs31
1 files changed, 0 insertions, 31 deletions
diff --git a/components/layout_2020/style_ext.rs b/components/layout_2020/style_ext.rs
index e6733ac998e..04ad55ddaac 100644
--- a/components/layout_2020/style_ext.rs
+++ b/components/layout_2020/style_ext.rs
@@ -261,16 +261,6 @@ pub(crate) trait ComputedValuesExt {
box_size: LogicalVec2<Size<Au>>,
pbm: &PaddingBorderMargin,
) -> LogicalVec2<Size<Au>>;
- fn content_max_box_size(
- &self,
- containing_block: &ContainingBlock,
- pbm: &PaddingBorderMargin,
- ) -> LogicalVec2<Size<Au>>;
- fn content_max_box_size_deprecated(
- &self,
- containing_block: &ContainingBlock,
- pbm: &PaddingBorderMargin,
- ) -> LogicalVec2<Option<Au>>;
fn content_max_box_size_for_max_size(
&self,
box_size: LogicalVec2<Size<Au>>,
@@ -470,27 +460,6 @@ impl ComputedValuesExt for ComputedValues {
}
}
- fn content_max_box_size(
- &self,
- containing_block: &ContainingBlock,
- pbm: &PaddingBorderMargin,
- ) -> LogicalVec2<Size<Au>> {
- let max_box_size = self
- .max_box_size(containing_block.style.writing_mode)
- .percentages_relative_to(containing_block);
-
- self.content_max_box_size_for_max_size(max_box_size, pbm)
- }
-
- fn content_max_box_size_deprecated(
- &self,
- containing_block: &ContainingBlock,
- pbm: &PaddingBorderMargin,
- ) -> LogicalVec2<Option<Au>> {
- self.content_max_box_size(containing_block, pbm)
- .map(Size::to_numeric)
- }
-
fn content_max_box_size_for_max_size(
&self,
max_box_size: LogicalVec2<Size<Au>>,