DescriptionViewport resize anchoring should use the current layout viewport.
The current viewport resize anchor assumes the FrameView is always the layout
viewport. This is not true in the setRootScroller experiment where an arbitrary
<div> may become the layout viewport in RootFrameViewport.
I've moved the anchoring logic into RootFrameViewport to keep this information
encapsulated and used the layout viewport as reported by the RootFrameViewport
class
BUG=505516
Committed: https://crrev.com/d17622aad88e3646b8e91d22a8ca46308cc8a0ae
Cr-Commit-Position: refs/heads/master@{#413376}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Replaced static_cast with temp variable #Patch Set 3 : Rebase + Fixed test #Patch Set 4 : Forgot to add test file #
Messages
Total messages: 22 (12 generated)
|