mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibWeb: Use HashMap::try_ensure_capacity in StyleComputer
This commit is contained in:
parent
6debd967ba
commit
eacfcac932
7 changed files with 53 additions and 33 deletions
|
@ -400,7 +400,9 @@ Element::NeedsRelayout Element::recompute_style()
|
|||
{
|
||||
set_needs_style_update(false);
|
||||
VERIFY(parent());
|
||||
auto new_computed_css_values = document().style_computer().compute_style(*this);
|
||||
|
||||
// FIXME propagate errors
|
||||
auto new_computed_css_values = MUST(document().style_computer().compute_style(*this));
|
||||
|
||||
auto required_invalidation = RequiredInvalidation::Relayout;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue