LibWeb: Use correct cache key for pseudo elements

We were incorrectly caching both ::before and ::after pseudo elements
with the ::before key.

This regressed in 1ab7a8e0db.
This commit is contained in:
Andreas Kling 2022-10-06 20:42:22 +02:00
commit 82df793d5d
Notes: sideshowbarker 2024-07-17 06:14:21 +09:00

View file

@ -172,7 +172,7 @@ void TreeBuilder::create_pseudo_element_if_needed(DOM::Element& element, CSS::Se
TODO();
}
element.set_pseudo_element_node({}, CSS::Selector::PseudoElement::Before, pseudo_element_node);
element.set_pseudo_element_node({}, pseudo_element, pseudo_element_node);
insert_node_into_inline_or_block_ancestor(*pseudo_element_node, pseudo_element_display, mode);
}