[Webkit-unassigned] [Bug 124039] New: [CSS Grid Layout] Run the content-sized tracks sizing algorithm only when required

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 8 05:10:18 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=124039

           Summary: [CSS Grid Layout] Run the content-sized tracks sizing
                    algorithm only when required
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Keywords: BlinkMergeCandidate
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: svillar at igalia.com
            Blocks: 123989


We're running it for every single track even if it isn't content sized. Basically we need to keep track of the content-sized tracks and run the algorithm only for them. Fixing this involves merging these two commits from Blink:

    CSS Grid Layout] Avoid preferred logical widths' recomputations

    The code runs the content-sized track sizing algorithm all the time,
    which forces a layout even when the track is not content-sized. This
    change makes us bail out if we know we don't need to run the
    algorithm. Note that it will not help content sized grid tracks.

    This speeds up PerformanceTests/Layout/fixed-grid-lots-of-data.html
    from ~28.5 run/s to ~585 run/s by avoiding a lot of unneeded layouts.

    The baselines change comes from triggering less layouts, which changes
    the frame rects between 2 subsequent layouts thus changing the repaint
    rectangles.

    BUG=225892

    Review URL: https://chromiumcodereview.appspot.com/22949002

and

    Content-sized resolution should only happen on content-sized tracks

    The current code would always try to run the content sized
    algorithm regardless of whether this was needed. On top of
    it, it would iterate over ALL grid items, even if only a
    small set of the tracks were content-sized.

    This change stores of which tracks are content-sized and
    use the internal grid to only iterate over these tracks.

    On a Z620, this speeds up
    PerformanceTests/Layout/fixed-grid-lots-of-data.html from
    about 550 runs / sec to 830 runs / sec.

    BUG=273238

    Review URL: https://chromiumcodereview.appspot.com/22867006

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list