diff options
Diffstat (limited to 'components/gfx_traits/lib.rs')
-rw-r--r-- | components/gfx_traits/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/gfx_traits/lib.rs b/components/gfx_traits/lib.rs index 09593189512..9925326da7e 100644 --- a/components/gfx_traits/lib.rs +++ b/components/gfx_traits/lib.rs @@ -211,6 +211,11 @@ impl ScrollRootId { pub fn fragment_type(&self) -> FragmentType { FragmentType::from_usize(self.0 & 3) } + + #[inline] + pub fn to_stacking_context_id(&self) -> StackingContextId { + StackingContextId(self.0) + } } /// The type of fragment that a stacking context represents. |