DescriptionMove Get/SetScrollOffset methods from WebFrame to WebLocalFrame.
Most callers already call through WebLocalFrame. In the 3 cases where
the caller cannot guarantee that the main frame is local, this CL drops
the NOTREACHED part of WebRemoteFrameImpl implementations, but otherwise
preserves the old behavior of returning zero WebSize in case of
GetScrollOffset and having no-op behavior in case of SetScrollOffset:
- DevToolsEmulator::ApplyViewportOverride
- DevToolsEmulator::HandleInputEvent
- WebViewImpl::WidenRectWithinPageBounds
BUG=416660
Review-Url: https://codereview.chromium.org/2936423003
Cr-Commit-Position: refs/heads/master@{#481196}
Committed: https://chromium.googlesource.com/chromium/src/+/29d4ee41e5b378d6ecac6e4fe7ec2ef84f5ed2b6
Patch Set 1 #
Total comments: 4
Patch Set 2 : Added TODOs as suggested by dcheng@ (this patchset also accidentally includes a rebase...). #
Total comments: 5
Patch Set 3 : Added comments and TODOs for OOPIF support in PrepareFrameAndViewForPrint. #Patch Set 4 : Use WebViewHelper::LocalMainFrame() where possible. #Messages
Total messages: 36 (25 generated)
|