Skip to content

Check attachment only when a widget has a held layout box - #98

Merged
trissim merged 2 commits into
mainfrom
perf/scroll-geometry-source-20261007
Oct 7, 2026
Merged

trissim merged 2 commits into
mainfrom
perf/scroll-geometry-source-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

Widget's box measurement used to read is_attached before every mutation-box lookup. It now asks the compositor first, and the compositor checks is_attached only after confirming the widget is in the held layout geometry. A detached widget with no screen measures normally; an attached one without a screen still raises. A new test counts is_attached reads.

@trissim
trissim marked this pull request as ready for review October 7, 2026 19:07
Copilot AI balanced review requested due to automatic review settings October 7, 2026 19:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@trissim
trissim merged commit 36a9450 into main Oct 7, 2026
1 of 22 checks passed
@trissim trissim changed the title Acquire attachment only for actual held mutation boxes Check attachment only when a widget has a held layout box Oct 11, 2026
@trissim
trissim deleted the perf/scroll-geometry-source-20261007 branch October 11, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants