[LayoutNG] Block-end padding problem when block-fragmenting
A fieldset-specific regression was introduced by the following change https://chromium-review.googlesource.com/c/chromium/src/+/2263353. This change fixes the bug crbug.com/1097012, addressing now all the TODOs that were added as a result of this issue. Because the padding of the fieldset's content is applied to the anonymous fieldset content box rather than the fieldset itself, we don't want to directly subtract the block-end padding from the fieldset in the finish fragmentation function. For this reason, we're only passing the border so that when subtracting to get the final block size, we're not mistakenly eliminating the padding as well. The minimum border box block size was not being calculated in every case due to legends not fragmenting, thus resulting in missing padding and border for some fragments. Additional conditions were added to allow that calculation when needed. Bug: 1097012 Change-Id: I8e9fd55ae11a14ce83e035a591ab0ec6a7f34261 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373382 Commit-Queue: Ana Sollano Kim <ansollan@microsoft.com> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Reviewed-by:
Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#801460}
Showing
Please register or sign in to comment