diff options
author | Andreas Kling <kling@serenityos.org> | 2022-10-06 20:42:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-06 21:08:50 +0200 |
commit | 82df793d5d7ce284f5672342edb5e23bd043ff37 (patch) | |
tree | ff423bb63c084b038b2c09b01c0e95c01d30bee0 /Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp | |
parent | c7d592dd011797eaed5f23b9dc9c511c7bb3863e (diff) | |
download | serenity-82df793d5d7ce284f5672342edb5e23bd043ff37.zip |
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 1ab7a8e0dbb5ee5195ab67c7c3f81c7f9f5f3f02.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp index 412513a995..adfed89f0d 100644 --- a/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp +++ b/Userland/Libraries/LibWeb/Layout/TreeBuilder.cpp @@ -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); } |