mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibWeb: Resolve relpos fragment offsets only for inline paintables
Prior to this change, we iterated through all fragments within each PaintableWithLines to resolve the relative position offset. This happened before transferring the fragments to their corresponding inline paintables. With this change, we significantly reduce amount of work by attempting to resolve relative position offsets only for those contained within inline paintables. Performance improvement on https://html.spec.whatwg.org/
This commit is contained in:
parent
de9fa25e11
commit
b317620486
2 changed files with 46 additions and 36 deletions
|
@ -188,7 +188,7 @@ struct LayoutState {
|
|||
LayoutState const& m_root;
|
||||
|
||||
private:
|
||||
void resolve_relative_positions(Vector<Painting::PaintableWithLines&> const&);
|
||||
void resolve_relative_positions();
|
||||
void resolve_border_radii();
|
||||
void resolve_box_shadow_data();
|
||||
void resolve_text_shadows(Vector<Painting::PaintableWithLines&> const& paintables_with_lines);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue