DescriptionUse layout units in PinchViewport::scrollIntoView.
The pinch viewport visibleRect is snapped to LayoutRect in
RenderBox::scrollRectToVisible, but it remained at full precision
FloatRect when used in PinchViewport::scrollIntoView. This caused a
small scroll in cases that should've been a no-op.
This changes PinchViewport::scrollIntoView to cast
visibleRect() to a LayoutRect before using it, fixing the issue by
making the imprecision cancel out. I also changed the argument rect to
a LayoutRect to avoid the reverse problem of too much precision in that
one in the future.
NOTRY=true
BUG=428826
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184818
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|