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:
parent
c7d592dd01
commit
82df793d5d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue