Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid call to measure child by reusing the already-computed resolved_minimum_size #294

Merged
merged 2 commits into from
Dec 26, 2022

Conversation

nicoburns
Copy link
Collaborator

Objective

Optimise and clarify code. I'l be honest, I don't fully understand why this works the way it does. But this PR adds some explanation, and also replaces a call to measure the child with the stored result of an earlier call to do the same.

Copy link
Collaborator

@alice-i-cecile alice-i-cecile left a comment

Choose a reason for hiding this comment

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

Ultimately, this was not found by reading the spec, but by trial and error fixing tests to align with Webkit/Firefox output.

Ultimately this smells like a browser bug to me. But diverging from that implicit spec is well outside of the scope of this PR.

@alice-i-cecile alice-i-cecile added code quality Make the code cleaner or prettier. performance Layout go brr labels Dec 26, 2022
@alice-i-cecile alice-i-cecile enabled auto-merge (squash) December 26, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Make the code cleaner or prettier. performance Layout go brr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants