mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Don't render backgrounds for text fragments.
This commit is contained in:
parent
cf79e64a5a
commit
26cf00ef4e
1 changed files with 10 additions and 5 deletions
|
@ -1011,11 +1011,16 @@ impl Fragment {
|
||||||
}
|
}
|
||||||
None => {}
|
None => {}
|
||||||
}
|
}
|
||||||
self.build_display_list_for_background_if_applicable(&*self.style,
|
match self.specific {
|
||||||
display_list,
|
ScannedTextFragment(_) => {},
|
||||||
layout_context,
|
_ => {
|
||||||
level,
|
self.build_display_list_for_background_if_applicable(&*self.style,
|
||||||
&absolute_fragment_bounds);
|
display_list,
|
||||||
|
layout_context,
|
||||||
|
level,
|
||||||
|
&absolute_fragment_bounds);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add a border, if applicable.
|
// Add a border, if applicable.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue