| Summary: | [css-grid] Improve performance of track sizing algorithm for spanning items | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Oriol Brufau <obrufau> | ||||||||
| Component: | CSS | Assignee: | Oriol Brufau <obrufau> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue, esprehn+autocc, ews-watchlist, glenn, jfernandez, kondapallykalyan, pdr, rego, svillar, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| See Also: | https://bugs.chromium.org/p/chromium/issues/detail?id=1021929 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Oriol Brufau
2020-02-17 12:24:47 PST
Created attachment 390960 [details]
Patch
Created attachment 390984 [details]
Patch
Comment on attachment 390984 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390984&action=review > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:247 > + const GridTrackSize& trackSize = tracks(m_direction)[trackPosition].cachedTrackSize(); We can use 'auto' type here. > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:271 > + const GridTrackSize& trackSize = trackList[trackPosition].cachedTrackSize(); Ditto > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:450 > + const GridTrackSize& trackSize = track.cachedTrackSize(); Ditto > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:573 > + // We cannot use tracks(direction)[trackPosition].cachedTrackSize() It's not needed to wrap comments like this. > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:634 > + const GridTrackSize& trackSize = rawGridTrackSize(direction, trackPosition); Use auto here > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:729 > + const GridTrackSize& trackSize = allTracks[trackIndex].cachedTrackSize(); Ditto > Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:825 > + const GridTrackSize& trackSize = allTracks[trackPosition].cachedTrackSize(); Ditto Created attachment 391040 [details]
Patch
Comment on attachment 391040 [details] Patch Clearing flags on attachment: 391040 Committed r256826: <https://trac.webkit.org/changeset/256826> All reviewed patches have been landed. Closing bug. |