[GridNG] Refactor track direction to be contained in track collection
1. Refactoring `NGGridLayoutAlgorithmTrackCollection::SetIterator` to allow callers access to the iterator from a const reference/pointer to the collection; this change improves the `NGGridLayoutAlgorithm` implementation since previously we were not able to pass const references to an algorithm track collection as an input parameter (because of the non-const restriction imposed by `SetIterator`). 2. Refactoring use of `GridTrackSizingDirection` into track collections; several methods in `NGGridLayoutAlgorithm` received both, track collection and its respective direction, as parameters. Since the direction is already tied to the specified collection, this change moves the `GridTrackSizingDirection` into the collection class. Bug: 1045599 Change-Id: Ibbc7d2d93c5947106b0fe627d67dce2fb24916f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573889Reviewed-by:Christian Biesinger <cbiesinger@chromium.org> Reviewed-by:
Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by:
Jacques Newman <janewman@microsoft.com> Reviewed-by:
Kurt Catti-Schmidt <kschmi@microsoft.com> Commit-Queue: Ethan Jimenez <ethavar@microsoft.com> Cr-Commit-Position: refs/heads/master@{#833870}
Showing
This diff is collapsed.
Please register or sign in to comment