From 8b138e5e75f23ade73e77bf47d552eb03d40df5f Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 24 Oct 2016 18:11:29 -0700 Subject: [PATCH] style: Remove `modify_style_for_anonymous_table_object`, now that the cascade takes care of it. --- components/style/properties/properties.mako.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index d5a42102a7c..63e7b2fe5a4 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1927,18 +1927,6 @@ pub fn modify_border_style_for_inline_sides(style: &mut Arc, } } -/// Adjusts the display and position properties as appropriate for an anonymous table object. -#[cfg(feature = "servo")] -#[inline] -pub fn modify_style_for_anonymous_table_object( - style: &mut Arc, - new_display_value: longhands::display::computed_value::T) { - let mut style = Arc::make_mut(style); - let box_style = Arc::make_mut(&mut style.box_); - box_style.display = new_display_value; - box_style.position = longhands::position::computed_value::T::static_; -} - /// Adjusts the `position` property as necessary for the outer fragment wrapper of an inline-block. #[cfg(feature = "servo")] #[inline]