mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout: Shrink fragments down from 448 bytes down to 128 bytes.
16% performance improvement in layout (!)
This commit is contained in:
parent
2df236376a
commit
de5e2fd5e2
8 changed files with 128 additions and 88 deletions
|
@ -502,7 +502,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
if opts::get().show_debug_fragment_borders {
|
||||
self.build_debug_borders_around_text_fragments(display_list,
|
||||
flow_origin,
|
||||
text_fragment,
|
||||
&**text_fragment,
|
||||
clip_rect);
|
||||
}
|
||||
}
|
||||
|
@ -559,7 +559,7 @@ impl FragmentDisplayListBuilding for Fragment {
|
|||
// the iframe is actually going to be displayed.
|
||||
match self.specific {
|
||||
IframeFragment(ref iframe_fragment) => {
|
||||
self.finalize_position_and_size_of_iframe(iframe_fragment,
|
||||
self.finalize_position_and_size_of_iframe(&**iframe_fragment,
|
||||
absolute_fragment_bounds.origin,
|
||||
layout_context)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue