WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
255434
[margin-trim] RenderBox should not be performing trimming
https://bugs.webkit.org/show_bug.cgi?id=255434
Summary
[margin-trim] RenderBox should not be performing trimming
Sammy Gill
Reported
2023-04-13 21:18:57 PDT
RenderBox performs some trimming inside of constrainBlockMarginInAvailableSpaceOrTrim and computeOrTrimInlineMargin as the renderer goes through layout. This has some unfortunate side effects, such as requiring us to set the rare data bits to indicate the margin has been trimmed at the same location. This action requires a const_cast that could be avoided since trimming should not occur at the RenderBox level and should be occurring completely in the layout system it is in (flex, grid, or block). We should make sure that the trimming logic is contained wholly within each layout system and should remove this logic from RenderBox once it is
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2023-04-13 21:19:14 PDT
<
rdar://problem/108030923
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug