mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Take AbstractElement in StyleComputer::compute_style()
This commit is contained in:
parent
1667d6d4da
commit
27aab90e66
Notes:
github-actions[bot]
2025-09-11 16:48:53 +00:00
Author: https://github.com/AtkinsSJ
Commit: 27aab90e66
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6118
6 changed files with 11 additions and 11 deletions
|
|
@ -344,7 +344,7 @@ void ConnectionFromClient::debug_request(u64 page_id, ByteString request, ByteSt
|
|||
for (auto& child : node->children_as_vector())
|
||||
nodes_to_visit.enqueue(child.ptr());
|
||||
if (auto* element = as_if<Web::DOM::Element>(node)) {
|
||||
auto styles = doc->style_computer().compute_style(*element);
|
||||
auto styles = doc->style_computer().compute_style({ *element });
|
||||
dump_style(MUST(String::formatted("Element {}", node->debug_description())), styles, element->custom_properties({}));
|
||||
|
||||
for (auto pseudo_element_index = 0; pseudo_element_index < to_underlying(Web::CSS::PseudoElement::KnownPseudoElementCount); ++pseudo_element_index) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue