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

text: Remove layout line & layout box interior bounds #18476

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Nov 4, 2024

These were originally used for some calculations, but now they have been replaced by proper bounds.

When reworking the layout, I added proper bounds (named bounds), and renamed the original bounds to interior_bounds in order to preserve the old behavior in some places. As of now, we're ready to drop the interior bounds, as replacing them with proper bounds works and all tests pass.

Areas where this PR changes the calculated values (by a bit):

  • layout metrics (getTextExtent),
  • maxscroll,
  • bottom scroll,
  • positions of links in text.

@kjarosh kjarosh added text Issues relating to text rendering/input A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup labels Nov 4, 2024
@torokati44
Copy link
Member

Thank you!

@torokati44 torokati44 merged commit e795e68 into ruffle-rs:master Nov 5, 2024
22 checks passed
@kjarosh kjarosh deleted the interior-bounds branch November 5, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core player, where no other category fits T-refactor Type: Refactor / Cleanup text Issues relating to text rendering/input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants