Chromium Code Reviews
DescriptionFix scroll anchoring during viewport resize.
WebView::resizeWithTopControls does a synchronous layout. Anchoring scrolls
performed during this layout were getting clobbered by ResizeViewportAnchor,
whose purpose is to scroll the viewports to preserve their combined position
(as reported by RootFrameViewport) after bounds-clamping to their new sizes.
After this change, ResizeViewportAnchor tracks the resize-induced scroll delta
while ignoring other scrolls.
BUG=626258, 612305
Committed: https://crrev.com/6913f420989be6dbaed45bd7e1b60042ff119d70
Cr-Commit-Position: refs/heads/master@{#408439}
Patch Set 1 #
Total comments: 4
Patch Set 2 : add comment on m_drift #Messages
Total messages: 18 (11 generated)
|