Restore "same layer" check in CalculateRectsWithGeometryMapper

If the root layer and the "current" layer are the same, we can't really
guarantee that the "pre"-transform is the same as the "local border
box"-transform - for example in the case where we're performing a hit-
test from/under a foreignObject element which has a 'transform' applied.

Bug: 908570
Change-Id: Icbaf3c15ca7b483f8209d5d0cc8b4613d80d49ce
Commit-Queue: Fredrik Söderquist <>
Reviewed-by: Xianzhu Wang <>
Cr-Commit-Position: refs/heads/master@{#612643}
3 files changed