diff options
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r-- | components/layout/fragment.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index c11d9170679..7895acee9a8 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -2378,6 +2378,13 @@ impl Fragment { self.style.get_box().position == position::T::absolute } + pub fn is_inline_absolute(&self) -> bool { + match self.specific { + SpecificFragmentInfo::InlineAbsolute(..) => true, + _ => false, + } + } + pub fn meld_with_next_inline_fragment(&mut self, next_fragment: &Fragment) { if let Some(ref mut inline_context_of_this_fragment) = self.inline_context { if let Some(ref inline_context_of_next_fragment) = next_fragment.inline_context { |