mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 19:11:54 +00: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:
parent
40760308c6
commit
eb1ad8655e
42 changed files with 270 additions and 271 deletions
|
@ -197,11 +197,11 @@ void HTMLMeterElement::create_shadow_tree_if_needed()
|
|||
set_shadow_root(shadow_root);
|
||||
|
||||
auto meter_bar_element = MUST(DOM::create_element(document(), HTML::TagNames::div, Namespace::HTML));
|
||||
meter_bar_element->set_use_pseudo_element(CSS::Selector::PseudoElement::Type::Track);
|
||||
meter_bar_element->set_use_pseudo_element(CSS::PseudoElement::Track);
|
||||
MUST(shadow_root->append_child(*meter_bar_element));
|
||||
|
||||
m_meter_value_element = MUST(DOM::create_element(document(), HTML::TagNames::div, Namespace::HTML));
|
||||
m_meter_value_element->set_use_pseudo_element(CSS::Selector::PseudoElement::Type::Fill);
|
||||
m_meter_value_element->set_use_pseudo_element(CSS::PseudoElement::Fill);
|
||||
MUST(meter_bar_element->append_child(*m_meter_value_element));
|
||||
update_meter_value_element();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue