mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb/CSS: Move and rename PseudoElement types to prep for code gen
The upcoming generated types will match those for pseudo-classes: A PseudoElementSelector type, that then holds a PseudoElement enum defining what it is. That enum will be at the top level in the Web::CSS namespace. In order to keep the diffs clearer, this commit renames and moves the types, and then a following one will replace the handwritten enum with a generated one.
This commit is contained in:
Notes:
github-actions[bot]
2025-03-24 09:51:36 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/0ed2e718018 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4021
@@ -329,7 +329,7 @@ void ViewImplementation::get_hovered_node_id()
|
||||
client().async_get_hovered_node_id(page_id());
|
||||
}
|
||||
|
||||
void ViewImplementation::inspect_dom_node(Web::UniqueNodeID node_id, DOMNodeProperties::Type property_type, Optional<Web::CSS::Selector::PseudoElement::Type> pseudo_element)
|
||||
void ViewImplementation::inspect_dom_node(Web::UniqueNodeID node_id, DOMNodeProperties::Type property_type, Optional<Web::CSS::PseudoElement> pseudo_element)
|
||||
{
|
||||
client().async_inspect_dom_node(page_id(), property_type, node_id, pseudo_element);
|
||||
}
|
||||
@@ -339,7 +339,7 @@ void ViewImplementation::clear_inspected_dom_node()
|
||||
client().async_clear_inspected_dom_node(page_id());
|
||||
}
|
||||
|
||||
void ViewImplementation::highlight_dom_node(Web::UniqueNodeID node_id, Optional<Web::CSS::Selector::PseudoElement::Type> pseudo_element)
|
||||
void ViewImplementation::highlight_dom_node(Web::UniqueNodeID node_id, Optional<Web::CSS::PseudoElement> pseudo_element)
|
||||
{
|
||||
client().async_highlight_dom_node(page_id(), node_id, pseudo_element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user