1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:07:45 +00:00

LibWeb: Resolve all layout-dependent properties in one loop

Instead of using separate loops for each property, all the work can
be completed in one loop.

Performance improvement on https://html.spec.whatwg.org/
This commit is contained in:
Aliaksandr Kalenik 2024-01-23 18:34:44 +01:00 committed by Andreas Kling
parent b9bbe4c166
commit 91ef4fed93
2 changed files with 102 additions and 126 deletions

View file

@ -189,10 +189,7 @@ struct LayoutState {
private:
void resolve_relative_positions();
void resolve_border_radii();
void resolve_box_shadow_data();
void resolve_text_shadows(Vector<Painting::PaintableWithLines&> const& paintables_with_lines);
void resolve_css_transform();
void resolve_layout_dependent_properties();
};
}