[webkit-changes] [WebKit/WebKit] 2b9589: [IFC] Fix fast/repaint/block-layout-inline-childre...
Alan Baradlay
noreply at github.com
Tue Mar 28 09:58:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2b9589e4e698907f82728d4f07a32b50721568d7
https://github.com/WebKit/WebKit/commit/2b9589e4e698907f82728d4f07a32b50721568d7
Author: Alan Baradlay <zalan at apple.com>
Date: 2023-03-28 (Tue, 28 Mar 2023)
Changed paths:
A LayoutTests/fast/inline/out-of-flow-inline-with-float-and-text-align-on-last-line-expected.html
A LayoutTests/fast/inline/out-of-flow-inline-with-float-and-text-align-on-last-line.html
M Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp
Log Message:
-----------
[IFC] Fix fast/repaint/block-layout-inline-children-float-positioned.html
https://bugs.webkit.org/show_bug.cgi?id=254565
Reviewed by Antti Koivisto.
1. floats not only move line boxes but they also shrink them
2. text-align offset logic is based on the line box's width (adjusted by the potentially intrusive floats)
* LayoutTests/fast/inline/out-of-flow-inline-with-float-and-text-align-on-last-line-expected.html: Added.
* LayoutTests/fast/inline/out-of-flow-inline-with-float-and-text-align-on-last-line.html: Added.
* Source/WebCore/layout/formattingContexts/inline/InlineFormattingGeometry.cpp:
(WebCore::Layout::InlineFormattingGeometry::contentLeftAfterLastLine const):
Canonical link: https://commits.webkit.org/262224@main
More information about the webkit-changes
mailing list