LayoutNG: Fix a crash with input[type=file]::after with padding
We had an assumption that line items in input[type=file] didn't have padding. However, ::before or ::after with padding can be in the line items. The |static_width_right| computation was wrong in this case because NGLogicalLineItem::inline_size doesn't contain padding size. We should compute it from NGLogicalLineItem::InlineOffset(). Fixed: 1125428 Change-Id: I290d9f148480569fba75655bae5fd03d80f2132f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404225 Auto-Submit: Kent Tamura <tkent@chromium.org> Commit-Queue: Koji Ishii <kojii@chromium.org> Reviewed-by:Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#806062}
Showing
Please register or sign in to comment