1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

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
parent 4333d0d639
commit ca154723f7
6 changed files with 4 additions and 23 deletions

View file

@ -122,8 +122,6 @@ public:
virtual void paint_box_shadow(PaintContext& context);
virtual void paint_background(PaintContext& context);
virtual float width_of_logical_containing_block() const;
Painting::BorderRadiusData normalized_border_radius_data();
virtual Optional<float> intrinsic_width() const { return {}; }