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

LibHTML: Implement LayoutInline::layout()

This currently uses a gross hack where it subtracts 11px from the
previous sibling bottom to calculate its top. This should be fixed
by switching to a proper two-phase line layouting model, were we
first distribute inline elements into lines and figure out their
horizontal positions and heights; then compute the needed line
heights and position inline elements there vertically.
This commit is contained in:
Sergey Bugaev 2019-09-25 12:30:13 +03:00 committed by Andreas Kling
parent 03cca4510a
commit 9f8d776c70
2 changed files with 28 additions and 0 deletions

View file

@ -12,5 +12,7 @@ public:
virtual const char* class_name() const override { return "LayoutInline"; }
virtual bool is_inline() const override { return true; }
virtual void layout() override;
private:
};