1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibWeb: Add pointer from BFC::FloatingBox to its UsedValues

This will allow us to skip a lot more hash lookups.
This commit is contained in:
Andreas Kling 2024-01-17 12:19:52 +01:00
parent 57fd494195
commit 7a34f1a4e2
2 changed files with 4 additions and 0 deletions

View file

@ -89,6 +89,9 @@ private:
struct FloatingBox {
JS::NonnullGCPtr<Box const> box;
LayoutState::UsedValues& used_values;
// Offset from left/right edge to the left content edge of `box`.
CSSPixels offset_from_edge { 0 };