Force layout for SameDocumentLoad when content size is not enough for restore.
This issue is caused by in navigation backward (LoadInSameDocument) for Single Page App, developer change DOM in onpopstate but not trigger a layout, then we don't have correct content size for restore scroll position. In this patch, we add a layout in RestoreScrollPositionAndViewState when the size is not enough for restore scroll position. This change should only effect SameDocumentLoad. Bug: 721262 Change-Id: I2b2956828634884b926b4c5b3073210170f42263 Reviewed-on: https://chromium-review.googlesource.com/556979 Commit-Queue: Jianpeng Chao <chaopeng@chromium.org> Reviewed-by:Majid Valipour <majidvp@chromium.org> Reviewed-by:
Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#484944}
Showing
Please register or sign in to comment