mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout: Add BoxFragment rare data (#38325)
Introduce `BoxFragmentRareData`, rare data for `BoxFragment`, which would store the specific data that is relevant to several fragments. This would reduce the `BoxFragment` size to 256 from 264 and add 8 bytes for fragment that have rare data (due to the additional pointer to the rare data). Testing: Existing WPT coverage Signed-off-by: Jo Steven Novaryo <jo.steven.novaryo@huawei.com>
This commit is contained in:
parent
09f0e20e29
commit
a8886c1222
4 changed files with 32 additions and 8 deletions
|
@ -257,7 +257,7 @@ pub fn process_resolved_style_request(
|
|||
let content_rect = box_fragment.content_rect;
|
||||
let margins = box_fragment.margin;
|
||||
let padding = box_fragment.padding;
|
||||
let specific_layout_info = box_fragment.specific_layout_info.clone();
|
||||
let specific_layout_info = box_fragment.specific_layout_info().cloned();
|
||||
(content_rect, margins, padding, specific_layout_info)
|
||||
},
|
||||
Fragment::Positioning(positioning_fragment) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue