1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

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
parent c7d592dd01
commit 82df793d5d

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);
}