Description[css-grid] Avoid double loop in positioned objects layout
Currently we were doing 2 loops to layout positioned objects:
* First we calculate the extra offsets for each object.
* Then we call layoutPositionedObjects() which does a new loop.
This patch extracts the common logic for each positioned object
in a new method layoutPositionedObject().
Now in LayoutGrid::layoutPositionedObjects() we'll call
this new method and that way we'll be doing only 1 loop
over the positioned objects.
No new tests, no change of behavior.
BUG=273898
Review-Url: https://codereview.chromium.org/2513953002
Cr-Commit-Position: refs/heads/master@{#444897}
Committed: https://chromium.googlesource.com/chromium/src/+/81c3ee6670a520935f024398c8aa23c7e379ff58
Patch Set 1 #
Total comments: 4
Patch Set 2 : New version overriding layoutPositionedObjects() #
Messages
Total messages: 17 (5 generated)
|