mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibWeb: Use HashMap::try_ensure_capacity in StyleComputer
This commit is contained in:
parent
6debd967ba
commit
eacfcac932
Notes:
sideshowbarker
2024-07-17 03:28:20 +09:00
Author: https://github.com/thomasqueirozb
Commit: eacfcac932
Pull-request: https://github.com/SerenityOS/serenity/pull/16334
7 changed files with 53 additions and 33 deletions
|
@ -374,7 +374,7 @@ Messages::WebContentServer::InspectDomNodeResponse ConnectionFromClient::inspect
|
|||
// FIXME: Pseudo-elements only exist as Layout::Nodes, which don't have style information
|
||||
// in a format we can use. So, we run the StyleComputer again to get the specified
|
||||
// values, and have to ignore the computed values and custom properties.
|
||||
auto pseudo_element_style = page().focused_context().active_document()->style_computer().compute_style(element, pseudo_element);
|
||||
auto pseudo_element_style = MUST(page().focused_context().active_document()->style_computer().compute_style(element, pseudo_element));
|
||||
DeprecatedString computed_values = serialize_json(pseudo_element_style);
|
||||
DeprecatedString resolved_values = "{}";
|
||||
DeprecatedString custom_properties_json = "{}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue