[IOS][AF] Fixes save card infobar crash on iPhone X
Currently to fix a layout issue in the save card infobar in iPhone X, |-setFrame:| is overridden to call |-layoutIfNeeded| in order to update the layout of subviews immediately. |-setFrame:| won't be required to be overridden if the logic to adjust the layout constraints is moved from |-sizeThatFits:| to |-layoutSubviews|. The existing logic is likely to be wrong as the layout should not get updated in calls to |-sizeThatFits|. This is likely the root cause for the crash in crbug.com/892144 Bug: 862688,892144 Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs Change-Id: Iee81a30afa14581f304813512b84b86fc5c6feb5 Reviewed-on: https://chromium-review.googlesource.com/c/1262087 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by:Olivier Robin <olivierrobin@chromium.org> Cr-Commit-Position: refs/heads/master@{#598784}
Showing
Please register or sign in to comment