Chromium Code Reviews
DescriptionDon't adjust the scroll position if the anchor element changes in size
https://crrev.com/1755923002 added logic to pick a corner of the anchor candidate
from which the relative offset would be calculated. Even if the anchor element itself
changed in height (during restore), the scroll position would be adjusted accordingly.
This breaks for cases like crbug.com/600891 where the content is added to the anchor
node and adjusting the scroll to compensate for the change is not the right thing to
do.
Note that the logic above was added with a bunch of other changes and it's not clear
whether or not it was done to fix any existing bugs. i.e. we may need to revisit
the changes in this CL if we find that it doesn't work in some cases.
BUG=600891
Patch Set 1 #Patch Set 2 : Don't adjust offset if size of anchor object changewd #Patch Set 3 : nit #
Messages
Total messages: 6 (4 generated)
|
|||||||||||||||||||||||||||||||||||||