DescriptionMade double-tap zoom work in pinch virtual viewport mode. (Blink-side)
On the Blink side:
The clamping method used by computeScaleAndScrollForBlockRect now
uses a new method PinchViewport::clampDocumentOffsetAtScale to clamp
the requested viewport offset taking into account the inner and outer
viewports. Added copies of AutoZoom tests that run with virtual-
viewport turned on.
Also added an overload of applyViewportDeltas, called in virtual
viewport mode only, that applies the inner and outer deltas along
page scale in one shot. This makes the viewport layers a special case
again in that their scroll offsets are set through this call, rather
than the standard 'did_scroll' callback of most layers. This is needed
since the scroll offsets may be invalid until the page scale is
applied so this is handled in one method to prevent unintended
clamping.
On the Compositor side:
Calls the appropriate applyViewportDeltas based on which pinch mode
we're running in. The page scale animation now prefers to scroll the
inner viewport first, scrolling the outer only when the inner has
reached its scroll extent.
Chromium-side: https://codereview.chromium.org/585063002
BUG=364106
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182860
Patch Set 1 #
Total comments: 1
Patch Set 2 : #Patch Set 3 : Added tests #Patch Set 4 : TODO->FIXME #
Total comments: 4
Patch Set 5 : Param names #Patch Set 6 : Rebase #Patch Set 7 : Fix assert #
Messages
Total messages: 18 (6 generated)
|