Chromium Code Reviews
DescriptionAccount for fixed positioning once when computing parent offset
I'd updated the code for updating the parent offset for fixed
positioned layers in crrev.com/967163002, but there was a bug in that
cl that resulted in the offset being updated twice.
This caused incorrect visible content rects in the layout test
compositing/squashing/squashed-clip-layer.html.
This cl simplifies the parent offset computation code to handle
three cases explicitly
1. has a scroll parent (must account for tree parent positioning)
2. is fixed position (must account for the offset between the
fixed container and the parent if they're different), and
3. the usual case - inherits the parent offset.
BUG=386810
Committed: https://crrev.com/8c8247428f92db3a4c8a5a4ac28da093d27e2f7f
Cr-Commit-Position: refs/heads/master@{#321653}
Patch Set 1 #Patch Set 2 : Removed incorrect comment. #Patch Set 3 : . #
Total comments: 4
Patch Set 4 : address reviewer comments. #
Total comments: 1
Patch Set 5 : compare rects, not strings. #Messages
Total messages: 16 (4 generated)
|