Open Bug 1990069 Opened 28 days ago Updated 28 days ago

Store a mapping from anchor to all its positioned frames

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

People

(Reporter: eeejay, Unassigned)

References

(Blocks 1 open bug)

Details

We can currently retrieve a positioned frame's anchor frame with PresShell::GetAnchorPosAnchor, but the reverse relationship isn't stored. This means we need to currently iterate over all positioned frames (PresShell::mAnchorPosPositioned), retrieved their anchor frames and compare it against a given anchor.

It would be nice if, given an anchor, there was a more efficient way to retrieve its positioned frames that didn't involve searching over a variable sized list and doing a hash lookup on each one.

See Also: → 1987945
You need to log in before you can comment on or make changes to this bug.