Chromium Code Reviews
DescriptionRewrite overhanging float arithmetic to work near numeric limits
This patch fixes a bug where floats near LayoutUnit::max() would
incorrectly get added to two LayoutObjects which would lead to
duplicate display items when the floats were painted by both parents.
Examples sometimes make these easier to review:
logicalTop = LayoutUnit::max()
prevLogicalTop = (LayoutUnit::max() - 4)
prevLowestFloatLogicalBottom = 8
Previous logic:
if (prevLowestFloatLogicalBottom > logicalTop - prevLogicalTop) { ...
New logic:
if (logicalTop < prevLowestFloatLogicalBottom + prevLogicalTop) { ...
BUG=604331
Committed: https://crrev.com/6c961fe1112914b9d63d6551e31b96c415dfb83f
Cr-Commit-Position: refs/heads/master@{#389679}
Patch Set 1 #
Messages
Total messages: 16 (7 generated)
|
|||||||||||||||||||||||||||||||||||||