Skip to content

Cache relative-height answers and refresh them when a widget is closing - #89

Merged
trissim merged 4 commits into
mainfrom
perf/relative-height-measurement-resource-20261007
Oct 7, 2026
Merged

trissim merged 4 commits into
mainfrom
perf/relative-height-measurement-resource-20261007

Conversation

@trissim

@trissim trissim commented Oct 7, 2026 •

Copy link
Copy Markdown

Widget gets _height_dependency_answers, which keeps the computed box and relative-descendant answers together, and Widget imports RenderStyles. A new _message_pump_closing hook on MessagePump is called when a pump starts closing, and DOMNode uses it to tell its node list it was updated. Changes are in dom.py, message_pump.py and widget.py, with two test files.

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

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 2a8779e into main Oct 7, 2026
2 of 22 checks passed
@trissim trissim changed the title Reuse relative-height answers through native measurement ownership Cache relative-height answers and refresh them when a widget is closing Oct 11, 2026
@trissim
trissim deleted the perf/relative-height-measurement-resource-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