mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
layout: Lay absolutely-positioned blocks with inline containing blocks out of
flow. Removes the long space before the site-specific drop-down in the Google SERPs.
This commit is contained in:
parent
05deb3dcc8
commit
dba3e41a63
5 changed files with 40 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue