Description[css-grid] Refactor information stored related to column positions
In m_columnPositions we were storing position of each column
including the alignment offset, always from the logical left,
and the border and padding, depending on the direction.
This was really confusing as in the case of RTL direction
we were adding the offset from the left and
the right border and padding.
This patches changes it to store always the info from the left,
so even in RTL direction we use the left border and padding.
This allows us to simplify translateRTLCoordinate() as
it doesn't need to care about border and padding anymore.
No new tests, no change of behavior.
Committed: https://crrev.com/d1c930ed4f146adaa9cf9489afc10719f2f0bfa0
Cr-Commit-Position: refs/heads/master@{#389731}
Patch Set 1 #
Messages
Total messages: 9 (4 generated)
|