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

Issue 636363003: Fix fullscreen elements in pinch viewport mode. (Closed)

Created:
6 years, 2 months ago by aelias_OOO_until_Jul13
Modified:
6 years, 2 months ago
Reviewers:
falken, bokan, pdr., Rick Byers
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, kenneth.christiansen, leviw+renderwatch, mkwst+moarreviews_chromium.org, pdr+renderingwatchlist_chromium.org, rune+blink, trchen, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix fullscreen elements in pinch viewport mode. In pinch viewport mode, the size of the FrameView is always the content width of the document (not the true viewport size), so this patch plumbs the viewport size to fullscreen elements separately. Secondly, in this mode there is an "inner viewport" that scrolls separately and whose scrollability additionally needs to be disabled. Do so by using setUserScrollable() (which is a mechanism that only works in this mode). BUG=411072 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183623

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address code review feedback #

Patch Set 3 : Use pinch viewport size instead of screeninfo size #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase again #

Patch Set 6 : Fix compile after rebase #

Patch Set 7 : Rebase again #

Patch Set 8 : Add test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -22 lines) Patch
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/frame/PinchViewport.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 6 1 chunk +16 lines, -7 lines 0 comments Download
M Source/core/rendering/RenderFullScreen.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderFullScreen.cpp View 1 2 3 4 chunks +17 lines, -5 lines 0 comments Download
M Source/web/FullscreenController.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M Source/web/FullscreenController.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 chunks +85 lines, -10 lines 0 comments Download
A Source/web/tests/data/fullscreen_iframe.html View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
aelias_OOO_until_Jul13
PTAL. bokan@ and falken@ for initial review, rbyers@ for Source/core OWNERS.
6 years, 2 months ago (2014-10-09 00:27:17 UTC) #2
falken
lgtm
6 years, 2 months ago (2014-10-09 02:17:26 UTC) #3
bokan
lgtm https://codereview.chromium.org/636363003/diff/1/Source/core/frame/PinchViewport.h File Source/core/frame/PinchViewport.h (right): https://codereview.chromium.org/636363003/diff/1/Source/core/frame/PinchViewport.h#newcode78 Source/core/frame/PinchViewport.h:78: GraphicsLayer* innerViewportScrollLayer() It's unambiguous and consistent with the ...
6 years, 2 months ago (2014-10-09 02:19:18 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/636363003/diff/1/Source/web/tests/WebFrameTest.cpp File Source/web/tests/WebFrameTest.cpp (right): https://codereview.chromium.org/636363003/diff/1/Source/web/tests/WebFrameTest.cpp#newcode6149 Source/web/tests/WebFrameTest.cpp:6149: WebViewImpl* webViewImpl = webViewHelper.initializeAndLoad(m_baseURL + "fullscreen_div.html", true, 0, &client, ...
6 years, 2 months ago (2014-10-09 03:56:24 UTC) #5
Rick Byers
https://codereview.chromium.org/636363003/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/636363003/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode168 Source/core/page/scrolling/ScrollingCoordinator.cpp:168: toWebLayer(m_page->frameHost().pinchViewport().innerViewportScrollLayer())->setUserScrollable(false, false); ScrollView::setScrollbarModes can override this. Are you sure ...
6 years, 2 months ago (2014-10-09 14:28:52 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/636363003/diff/1/Source/core/frame/PinchViewport.h File Source/core/frame/PinchViewport.h (right): https://codereview.chromium.org/636363003/diff/1/Source/core/frame/PinchViewport.h#newcode78 Source/core/frame/PinchViewport.h:78: GraphicsLayer* innerViewportScrollLayer() On 2014/10/09 at 02:19:18, bokan wrote: > ...
6 years, 2 months ago (2014-10-10 00:58:51 UTC) #7
Rick Byers
LGTM
6 years, 2 months ago (2014-10-10 16:07:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636363003/70011
6 years, 2 months ago (2014-10-10 20:09:03 UTC) #10
commit-bot: I haz the power
Failed to apply patch for Source/core/frame/FrameView.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-10 21:45:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636363003/380001
6 years, 2 months ago (2014-10-10 22:30:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636363003/210002
6 years, 2 months ago (2014-10-10 22:54:40 UTC) #17
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/31278)
6 years, 2 months ago (2014-10-11 01:12:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636363003/210002
6 years, 2 months ago (2014-10-11 03:07:20 UTC) #21
commit-bot: I haz the power
Failed to apply patch for Source/web/WebViewImpl.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-11 03:07:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/636363003/690001
6 years, 2 months ago (2014-10-13 19:13:21 UTC) #25
commit-bot: I haz the power
6 years, 2 months ago (2014-10-13 19:51:23 UTC) #26
Message was sent while issue was closed.
Committed patchset #7 (id:690001) as 183623

Powered by Google App Engine
This is Rietveld 408576698