Bug 120495 - [Grid Layout] Content-sized resolution should only happen on content-sized tracks
Summary: [Grid Layout] Content-sized resolution should only happen on content-sized tr...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BlinkMergeCandidate
Depends on:
Blocks:
 
Reported: 2013-08-29 15:04 PDT by Ryosuke Niwa
Modified: 2015-01-26 06:59 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-08-29 15:04:22 PDT
Consider merging https://chromium.googlesource.com/chromium/blink/+/26c7fde92a23277ca9f38e605f41927812a9dc37

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.
Comment 1 Sergio Villar Senin 2015-01-26 06:59:25 PST
This was fixed long time ago.