From 0b5dc7ed3425a6c32718072bc06fb4ced8de42ba Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 4 Jan 2017 11:47:02 +0100 Subject: [PATCH] Remove some unused StackingContextId methods. --- components/gfx_traits/lib.rs | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 89ddeb512bf..72c2b9a0828 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -128,37 +128,11 @@ impl StackingContextId { } } - /// Returns an ID for the stacking context that forms the outer stacking context of an element - /// with `overflow: scroll`. - #[inline(always)] - pub fn new_outer(fragment_type: FragmentType) -> StackingContextId { - StackingContextId(StackingContextId::next_special_id() | (fragment_type as usize)) - } - - #[inline] - pub fn fragment_type(&self) -> FragmentType { - FragmentType::from_usize(self.0 & 3) - } - - #[inline] - pub fn id(&self) -> usize { - self.0 & !3 - } - /// Returns the stacking context ID for the outer document/layout root. #[inline] pub fn root() -> StackingContextId { StackingContextId(0) } - - /// Returns true if this is a special stacking context. - /// - /// A special stacking context is a stacking context that is one of (a) the outer stacking - /// context of an element with `overflow: scroll`; (b) generated content; (c) both (a) and (b). - #[inline] - pub fn is_special(&self) -> bool { - (self.0 & !SPECIAL_STACKING_CONTEXT_ID_MASK) == 0 - } } /// A unique ID for every scrolling root.