DescriptionRemove WebViewImpl helper methods for setting scroll offset.
Remove setMainFrameScrollOffset and updateLayoutViewportScrollOffset as
they're redundant and mostly used from tests anyway. Call sites were
modified to set the scroll offset on the main frame directly.
This patch is mostly a no-op cleanup. Semantics do change here slightly
since setMainFrameScrollOffset was calling updateLayoutViewportScrollOffset
with isProgrammatic=false, which is wrong. Also updated
WebLocalFrameImpl::setScrollOffset to call notifyScrollPositionChanged
rather than setScrollOffset since the latter doesn't update scrollbars,
animators, etc. and shouldn't be used directly.
Also, as a drive-by, replaced outerViewport/mainFrame with layoutViewport
in applyViewportDeltas since they're all refer to the same thing. Layout
viewport is the preferred terminology.
BUG=
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196421
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 4
Patch Set 4 : Renamed outerViewport to layoutViewport #
Messages
Total messages: 18 (7 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||