Description[css-grid] Fix painting in RTL
Due to the optimization we've in GridPainter that only paints
the grid items in the cells affected by the paint invalidation rect,
we've an issue using direction RTL, as the cells to be painted
were wrongly detected.
The problem is that LayoutGrid::columnPositions() is not returning
physical positions in the case of RTL, so we need to translate that
vector before calling dirtiedGridAreas().
As we're changing the order of the tracks in the new translated Vector
we need to change the GridSpan we get as result from dirtiedGridAreas().
Created a helper function LayoutGrid::translateRTLCoordinate()
and used it in the different parts of the code where we need to do
this conversion.
TEST=fast/css-grid-layout/grid-painting-rtl.html
BUG=600680
Committed: https://crrev.com/53cea4d18b15b735c4ab6cd85cfcb3cc07593452
Cr-Commit-Position: refs/heads/master@{#387090}
Patch Set 1 #Patch Set 2 : New version #
Total comments: 2
Patch Set 3 : Upload rebased version after r386952 has landed #
Messages
Total messages: 17 (8 generated)
|