diff options
Diffstat (limited to 'components/layout/css/node_util.rs')
-rw-r--r-- | components/layout/css/node_util.rs | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/components/layout/css/node_util.rs b/components/layout/css/node_util.rs index 80144d50022..eb447b0cf6b 100644 --- a/components/layout/css/node_util.rs +++ b/components/layout/css/node_util.rs @@ -2,7 +2,6 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use incremental::RestyleDamage; use util::LayoutDataAccess; use wrapper::ThreadSafeLayoutNode; use wrapper::{After, Before, Normal}; @@ -15,9 +14,6 @@ pub trait NodeUtil { fn get_css_select_results<'a>(&'a self) -> &'a Arc<ComputedValues>; fn have_css_select_results(&self) -> bool; fn remove_css_select_results(self); - - fn get_restyle_damage(self) -> RestyleDamage; - fn set_restyle_damage(self, damage: RestyleDamage); } impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> { @@ -75,23 +71,5 @@ impl<'ln> NodeUtil for ThreadSafeLayoutNode<'ln> { *style = None; } - - /// Get the description of how to account for recent style changes. - /// This is a simple bitfield and fine to copy by value. - fn get_restyle_damage(self) -> RestyleDamage { - let layout_data_ref = self.borrow_layout_data(); - layout_data_ref - .as_ref().unwrap() - .data - .restyle_damage - } - - /// Set the restyle damage field. - fn set_restyle_damage(self, damage: RestyleDamage) { - let mut layout_data_ref = self.mutate_layout_data(); - match &mut *layout_data_ref { - &Some(ref mut layout_data) => layout_data.data.restyle_damage = damage, - _ => fail!("no layout data for this node"), - } - } } + |