Skip to content

Commit

Permalink
layout: Clean up inline layout data structures (servo#33149)
Browse files Browse the repository at this point in the history
- Rename `InlineFormattingContextState` to
  `InlineFormattingContextLayout`.
- Have `InlineFormattingContextLayout` hold a reference to the
 `InlineFormattingContext`, so that it does not need to be passed
 around as an argument
- Have `LineItemLayout` hold a reference to
  `InlineFormattingContextLayout` to avoid duplicating so much data.
- Rename some members of `LineItemLayout` to make it clearer what
  they do.
- Give beter names to many lifetimes and combine some that are
  effectively the same.

Signed-off-by: Martin Robinson <[email protected]>
Co-authored-by: Rakhi Sharma <[email protected]>
  • Loading branch information
mrobinson and atbrakhi authored Aug 22, 2024
1 parent 60ef6bc commit e956b53
Show file tree
Hide file tree
Showing 3 changed files with 154 additions and 194 deletions.
Loading

0 comments on commit e956b53

Please sign in to comment.