LibWeb: Use available space to resolve sizes in FFC

If available space is definite it should always match the size of the
containing block. Therefore, there is no need to do containing block
node lookup.
This commit is contained in:
Aliaksandr Kalenik 2024-11-09 20:42:53 +01:00 committed by Andreas Kling
commit dd11d48a1d
Notes: github-actions[bot] 2024-11-10 18:15:48 +00:00
7 changed files with 11 additions and 41 deletions

View file

@ -101,9 +101,6 @@ public:
[[nodiscard]] CSSPixels containing_block_width_for(NodeWithStyleAndBoxModelMetrics const&) const;
[[nodiscard]] CSSPixels containing_block_height_for(NodeWithStyleAndBoxModelMetrics const&) const;
[[nodiscard]] AvailableSize containing_block_width_as_available_size(NodeWithStyleAndBoxModelMetrics const&) const;
[[nodiscard]] AvailableSize containing_block_height_as_available_size(NodeWithStyleAndBoxModelMetrics const&) const;
[[nodiscard]] CSSPixels calculate_stretch_fit_width(Box const&, AvailableSize const&) const;
[[nodiscard]] CSSPixels calculate_stretch_fit_height(Box const&, AvailableSize const&) const;