LibWeb: Remove Layout::Box::width_of_logical_containing_block()

This was a hack to percentages within tables relative to the nearest
table-row ancestor instead of the nearest table container.

That didn't actually make sense, so this patch simply removes the hack
in favor of containing_block()->width().
This commit is contained in:
Andreas Kling 2021-10-27 18:00:51 +02:00
commit ca154723f7
Notes: sideshowbarker 2024-07-18 01:50:57 +09:00
6 changed files with 4 additions and 23 deletions

View file

@ -22,9 +22,6 @@ public:
size_t colspan() const;
static CSS::Display static_display() { return CSS::Display { CSS::Display::Internal::TableCell }; }
private:
virtual float width_of_logical_containing_block() const override;
};
}