Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Issue 643473002: Made top controls work with virtual viewport pinch-to-zoom. (Blink) (Closed)

Created:
6 years, 2 months ago by bokan
Modified:
6 years, 2 months ago
CC:
blink-reviews, mkwst+moarreviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Made top controls work with virtual viewport pinch-to-zoom. (Blink) Together with the Chromium-side patch, makes top controls work properly under the virtual viewport mode of pinch zoom. The key changes on the Blink side are to adjust both the PinchViewport and FrameView max scroll bounds to account for the change in the top controls offset on the compositor. Additionally, I changed these to make the same floating point and snapping calculations as in the compositor to prevent losing pixel fractions. Chromium side: https://codereview.chromium.org/641873003/ Note, this was previously landed in 183639 and reverted in 183653 due to failing tests on Mac bots. BUG=364109 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183639 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183713

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed if statement #

Total comments: 4

Patch Set 3 : Review feedback from rbyers@. Added back the if statement #

Patch Set 4 : Fixed mac breakage (UseMockScrollbars) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -66 lines) Patch
M Source/core/frame/FrameView.cpp View 1 2 3 1 chunk +17 lines, -10 lines 0 comments Download
M Source/core/frame/PinchViewport.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 2 3 5 chunks +26 lines, -3 lines 0 comments Download
M Source/web/PageScaleConstraintsSet.cpp View 1 chunk +5 lines, -4 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +16 lines, -5 lines 0 comments Download
M Source/web/tests/FrameTestHelpers.h View 1 2 3 3 chunks +20 lines, -0 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 3 5 chunks +165 lines, -11 lines 0 comments Download
M Source/web/tests/ViewportTest.cpp View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 2 chunks +1 line, -16 lines 0 comments Download
M Source/web/tests/data/content-width-1000.html View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
bokan
ptal.
6 years, 2 months ago (2014-10-08 23:03:38 UTC) #2
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp#newcode361 Source/core/frame/PinchViewport.cpp:361: if (m_topControlsAdjustment) { Please remove this if() statement, ...
6 years, 2 months ago (2014-10-09 22:58:53 UTC) #3
bokan
+rbyers for Source/core OWNER https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp#newcode361 Source/core/frame/PinchViewport.cpp:361: if (m_topControlsAdjustment) { On 2014/10/09 ...
6 years, 2 months ago (2014-10-09 23:22:50 UTC) #5
Rick Byers
Definitely a little grotty, but I trust your/aelias's judgement on the best complexity tradeoff. If ...
6 years, 2 months ago (2014-10-10 00:06:10 UTC) #6
bokan
https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/643473002/diff/1/Source/core/frame/PinchViewport.cpp#newcode361 Source/core/frame/PinchViewport.cpp:361: if (m_topControlsAdjustment) { On 2014/10/09 22:58:53, aelias wrote: > ...
6 years, 2 months ago (2014-10-10 14:39:56 UTC) #7
bokan
On 2014/10/10 00:06:10, Rick Byers wrote: > Definitely a little grotty, but I trust your/aelias's ...
6 years, 2 months ago (2014-10-10 14:42:31 UTC) #8
Rick Byers
On 2014/10/10 14:42:31, bokan wrote: > On 2014/10/10 00:06:10, Rick Byers wrote: > > Definitely ...
6 years, 2 months ago (2014-10-10 16:05:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643473002/100001
6 years, 2 months ago (2014-10-14 02:05:03 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:100001) as 183639
6 years, 2 months ago (2014-10-14 04:29:34 UTC) #12
apavlov
A revert of this CL (patchset #3 id:100001) has been created in https://codereview.chromium.org/655763002/ by apavlov@chromium.org. ...
6 years, 2 months ago (2014-10-14 08:19:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643473002/200001
6 years, 2 months ago (2014-10-14 20:19:46 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/31789)
6 years, 2 months ago (2014-10-14 23:11:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643473002/200001
6 years, 2 months ago (2014-10-14 23:12:24 UTC) #19
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 01:22:53 UTC) #20
Message was sent while issue was closed.
Committed patchset #4 (id:200001) as 183713

Powered by Google App Engine
This is Rietveld 408576698