mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibHTML: Fix broken line splitting behavior in LayoutReplaced
Replaced elements will now properly create line breaks when they use up the available horizontal space. This fixes an issue with <img>'s lining up instead of breaking.
This commit is contained in:
parent
282456dc37
commit
44979ad7a5
4 changed files with 23 additions and 3 deletions
|
@ -28,6 +28,9 @@ public:
|
|||
Rect& rect() { return m_rect; }
|
||||
void set_rect(const Rect& rect) { m_rect = rect; }
|
||||
|
||||
int width() const { return rect().width(); }
|
||||
int height() const { return rect().height(); }
|
||||
|
||||
BoxModelMetrics& box_model() { return m_box_metrics; }
|
||||
const BoxModelMetrics& box_model() const { return m_box_metrics; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue