Revert "Skip locatables"

This reverts commit 34116cddf67aed02d93aaeaea9e72d6a78b48442.
This commit is contained in:
Laurenz 2025-07-18 12:23:41 +02:00
parent 34116cddf6
commit 94cf897d37

View File

@ -10,7 +10,7 @@ use typst_utils::NonZeroExt;
use crate::diag::{bail, StrResult};
use crate::foundations::{Content, Label, Repr, Selector};
use crate::introspection::{Locatable, Location, Tag};
use crate::introspection::{Location, Tag};
use crate::layout::{Frame, FrameItem, Point, Position, Transform};
use crate::model::Numbering;
@ -422,11 +422,9 @@ impl IntrospectorBuilder {
) {
match tag {
Tag::Start(elem) => {
if elem.can::<dyn Locatable>() {
let loc = elem.location().unwrap();
if self.seen.insert(loc) {
sink.push((elem.clone(), position));
}
let loc = elem.location().unwrap();
if self.seen.insert(loc) {
sink.push((elem.clone(), position));
}
}
Tag::End(loc, key) => {