[css-grid] Only force full invalidation when grid item data change
We're currently comparing the rareData's m_gridItem pointer to decide
whether a style change should force a full paint invalidation or not.
This is causing that changes in CSS Alignment properties on a grid item
are identified as needing a full paint invalidation, since the mentioned
pointer has been changed, indeed. However, that change is not caused by
the style change, but due to reapplying the same CSS rules.
Even more, the tests ensuring the are no invalidations when there is
not a visual geometry change are failing because of that.
This change modifies the condition to inspect the grid item's style
data, in addition to the pointer itself, so we only trigger the full
invalidation if there is an actual change in the data.
BUG=
620235
Committed:
https://crrev.com/be05bcdf2b257500dc1b24209583b323cc2b7461
Cr-Commit-Position: refs/heads/master@{#413700}