[css-grid] Refactor Grid to allow different implementations
The current Grid data structure is mostly generic but it still depends on a grid representation based on Vectors of Vectors. In order to allow future memory efficient representations we should remove that dependency. This CL moves all the vector dependent code to a new class named VectorGrid. Apart from that, GridIterator was moved to Grid and also refectored as we would need to provide different implementations of the iterator depending on the data structure used for grids. Last but not least, in order to limit the amount of changes in the clients of these two interfaces, a couple of factory methods were added to create both Grid and GridIterator objects. These Create() methods are the ones instantiating the specific Grid (and GridIterator) representations. R=jfernandez@igalia.com, rego@igalia.com Change-Id: I59d9f8df93c3c65390a0f22aaf8064359f9248f4 Reviewed-on: https://chromium-review.googlesource.com/1075331 Commit-Queue: Sergio Villar <svillar@igalia.com> Reviewed-by:Javier Fernandez <jfernandez@igalia.com> Reviewed-by:
Manuel Rego Casasnovas <rego@igalia.com> Cr-Commit-Position: refs/heads/master@{#564857}
Showing
Please register or sign in to comment