summaryrefslogtreecommitdiff
path: root/Demos/Eyes/EyesWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-10 10:42:29 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-10 10:46:57 +0200
commit656b01eb0fb659fb2d3ee4e6e4413a82543414e3 (patch)
treebd07b588460ed9fccf6aadac0b8115e03200256b /Demos/Eyes/EyesWidget.cpp
parente836f09094317c8eb1f9674d114cf34837b94e30 (diff)
downloadserenity-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