mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-30 05:09:01 +00:00
LibWeb: Store box's containing line box fragment in FormattingState
Layout should not change any properties of a box until the moment a FormattingState is committed.
This commit is contained in:
parent
aa72ebf7aa
commit
f8aa0c144f
Notes:
sideshowbarker
2024-07-17 18:07:04 +09:00
Author: https://github.com/awesomekling
Commit: f8aa0c144f
5 changed files with 13 additions and 10 deletions
|
@ -63,6 +63,8 @@ struct FormattingState {
|
|||
return *overflow_data;
|
||||
}
|
||||
|
||||
Optional<LineBoxFragmentCoordinate> containing_line_box_fragment;
|
||||
|
||||
// NOTE: NodeState is ref-counted and accessed via copy-on-write helpers below.
|
||||
size_t ref_count { 1 };
|
||||
void ref()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue