Revert "Pay only for realization but not downstream"

This reverts commit 5e41d13dc23a959b9ff37d8a2e566d94d05ea0ca.
This commit is contained in:
Laurenz 2025-07-18 13:30:59 +02:00
parent 5e41d13dc2
commit 315a3f192e

View File

@ -344,7 +344,6 @@ fn visit_show_rules<'a>(
styles: StyleChain<'a>,
) -> SourceResult<bool> {
// Determines whether and how to proceed with show rule application.
let keep_tags = content.can::<dyn Locatable>() || content.label().is_some();
let Some(Verdict { prepared, mut map, step }) = verdict(s.engine, content, styles)
else {
return Ok(false);
@ -401,9 +400,6 @@ fn visit_show_rules<'a>(
let (start, end) = tags.unzip();
if let Some(tag) = start {
visit(s, s.store(TagElem::packed(tag)), styles)?;
if !keep_tags {
s.sink.pop();
}
}
let prev_outside = s.outside;
@ -419,9 +415,6 @@ fn visit_show_rules<'a>(
// Push end tag.
if let Some(tag) = end {
visit(s, s.store(TagElem::packed(tag)), styles)?;
if !keep_tags {
s.sink.pop();
}
}
Ok(true)