Description[CSS Grid] Introduce an explicit type for resolved grid positions
We were using simple size_t integers to represent resolved grid
positions in our internal data structures. This change allows us to
clarify the code, avoid potential off by one mistakes, and move some
of the ugliest bits of the resolving code to a central place.
This is a transition patch, so there's no attempt at making the code
pretty. In particular we just provide a
setIntegerPosition()/integerPosition() pair, that are used throughout
the code to set/get the resolved positions. A follow-up patch will
move the rest of the resolver code in RenderGrid to the
GridResolvedPosition class, and we should be able to completely remove
those methods.
BUG=
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|