mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +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
5 changed files with 13 additions and 10 deletions
|
@ -14,6 +14,11 @@
|
|||
|
||||
namespace Web::Layout {
|
||||
|
||||
struct LineBoxFragmentCoordinate {
|
||||
size_t line_box_index { 0 };
|
||||
size_t fragment_index { 0 };
|
||||
};
|
||||
|
||||
class Box : public NodeWithStyleAndBoxModelMetrics {
|
||||
public:
|
||||
struct OverflowData {
|
||||
|
@ -82,11 +87,7 @@ public:
|
|||
|
||||
bool is_body() const;
|
||||
|
||||
struct LineBoxFragmentCoordinate {
|
||||
size_t line_box_index { 0 };
|
||||
size_t fragment_index { 0 };
|
||||
};
|
||||
void set_containing_line_box_fragment(LineBoxFragmentCoordinate);
|
||||
void set_containing_line_box_fragment(Optional<LineBoxFragmentCoordinate>);
|
||||
|
||||
StackingContext* stacking_context() { return m_stacking_context; }
|
||||
const StackingContext* stacking_context() const { return m_stacking_context; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue