Skip to content

Commit 2a1d81a

Browse files
committed
[LFC][Integration] Allow subpixel difference in the computed containing block height when switching between line layout systems
https://bugs.webkit.org/show_bug.cgi?id=219143 Reviewed by Antti Koivisto. With all the seemingly random flooring, ceiling and rounding in the legacy line layout codebase, it's really difficult to subpixel match the end result in a sane way in IFC as we start supporting more complex content. * rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::ensureLineBoxes): Canonical link: https://commits.webkit.org/231767@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270026 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 536f179 commit 2a1d81a

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

Source/WebCore/ChangeLog

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
2020-11-19 Zalan Bujtas <zalan@apple.com>
2+
3+
[LFC][Integration] Allow subpixel difference in the computed containing block height when switching between line layout systems
4+
https://bugs.webkit.org/show_bug.cgi?id=219143
5+
6+
Reviewed by Antti Koivisto.
7+
8+
With all the seemingly random flooring, ceiling and rounding in the legacy line layout codebase,
9+
it's really difficult to subpixel match the end result in a sane way in IFC as we start supporting more complex content.
10+
11+
* rendering/RenderBlockFlow.cpp:
12+
(WebCore::RenderBlockFlow::ensureLineBoxes):
13+
114
2020-11-19 Antti Koivisto <antti@apple.com>
215

316
[LFC][Integration] nextLinePosition should use iterator

Source/WebCore/rendering/RenderBlockFlow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3687,7 +3687,7 @@ void RenderBlockFlow::ensureLineBoxes()
36873687
complexLineLayout.layoutLineBoxes(relayoutChildren, repaintLogicalTop, repaintLogicalBottom);
36883688

36893689
updateLogicalHeight();
3690-
ASSERT(didNeedLayout || logicalHeight() == oldHeight);
3690+
ASSERT(didNeedLayout || ceilf(logicalHeight()) == ceilf(oldHeight));
36913691

36923692
if (!didNeedLayout)
36933693
clearNeedsLayout();

0 commit comments

Comments
 (0)