[Webkit-unassigned] [Bug 222100] [css-grid] Fix min/max widths of grid affected by ancestor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 23 07:34:10 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=222100
--- Comment #6 from Javier Fernandez <jfernandez at igalia.com> ---
Comment on attachment 421305
--> https://bugs.webkit.org/attachment.cgi?id=421305
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=421305&action=review
> Source/WebCore/rendering/RenderBox.cpp:2479
> + // If the preferred widths are already dirty at this point (during layout), it actually means that we never need to calculate them, since that should
I think we can move the comments above the if clause, and remove the brackets.
> Source/WebCore/rendering/RenderBox.cpp:2485
> + // If our containing block also has min/max widths that are affected by the ancestry, we have already dealt with this object as well. Avoid
Ditto
> Source/WebCore/rendering/RenderBox.cpp:2496
> + if (shouldRecalculateMinMaxWidthsAffectedByAncestor(this)) {
Why not using a composed conditional clause instead two nested if ?
> Source/WebCore/rendering/RenderBox.cpp:2497
> + // Laying out this object means that its containing block is also being laid out. This object is special, in that its min/max widths depend on
We could move the comments here as well, as I suggested before.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210223/1477bff2/attachment-0001.htm>
More information about the webkit-unassigned
mailing list