mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 16:58:58 +00:00
LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr
This commit is contained in:
parent
1df3652e27
commit
7c0c1c8f49
Notes:
sideshowbarker
2024-07-17 00:53:02 +09:00
Author: https://github.com/mattco98
Commit: 7c0c1c8f49
Pull-request: https://github.com/SerenityOS/serenity/pull/17743
Reviewed-by: https://github.com/linusg ✅
214 changed files with 825 additions and 827 deletions
|
@ -76,7 +76,7 @@ private:
|
|||
};
|
||||
|
||||
struct FloatingBox {
|
||||
Box const& box;
|
||||
JS::NonnullGCPtr<Box const> box;
|
||||
// Offset from left/right edge to the left content edge of `box`.
|
||||
CSSPixels offset_from_edge { 0 };
|
||||
|
||||
|
@ -155,7 +155,7 @@ private:
|
|||
FloatSideData m_left_floats;
|
||||
FloatSideData m_right_floats;
|
||||
|
||||
Vector<Box const&> m_absolutely_positioned_boxes;
|
||||
Vector<JS::NonnullGCPtr<Box const>> m_absolutely_positioned_boxes;
|
||||
|
||||
bool m_was_notified_after_parent_dimensioned_my_root_box { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue