diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:42:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-10 10:46:57 +0200 |
commit | 656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (patch) | |
tree | bd07b588460ed9fccf6aadac0b8115e03200256b /Demos/Eyes/EyesWidget.cpp | |
parent | e836f09094317c8eb1f9674d114cf34837b94e30 (diff) | |
download | serenity-656b01eb0fb659fb2d3ee4e6e4413a82543414e3.zip |
LibWeb: Rework the layout engine to use relative offsets
The box tree and line boxes now all store a relative offset from their
containing block, instead of an absolute (document-relative) position.
This removes a huge pain point from the layout system which was having
to adjust offsets recursively when something moved. It also makes some
layout logic significantly simpler.
Every box can still find its absolute position by walking its chain
of containing blocks and accumulating the translation from the root.
This is currently what we do both for rendering and hit testing.
Diffstat (limited to 'Demos/Eyes/EyesWidget.cpp')
0 files changed, 0 insertions, 0 deletions