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

Issue 699183004: Main-thread scroll if we have fixed-pos children and overflow:hidden. (Closed)

Created:
6 years, 1 month ago by awoloszyn
Modified:
6 years, 1 month ago
Reviewers:
Ian Vollick, skobes
CC:
blink-reviews, blink-layers+watch_chromium.org, kenneth.christiansen
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Main-thread scroll if we have fixed-pos children and overflow:hidden. If we are overflow:hidden and have fixed-pos children we would transition to impl-side scrolling. This was exposing another bug (304810) where on impl-side where we do not correctly stop body elements from scrolling. This lead us to scroll elements on the impl-thread even if they need to be main-thread scrolled. Here we do not short-circuit the main-thread requirements if the frame is overflow:hidden. This is equivalent to our old implementation, and lets gmail continue to be on impl-thread, which is what abarth had originally changed that caused this issue. BUG=411767 R=vollick@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184891

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -8 lines) Patch
A + LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position-if-overflow-hidden.html View 1 1 chunk +1 line, -1 line 0 comments Download
A + LayoutTests/compositing/layer-creation/main-thread-scrolling-for-non-composited-fixed-position-if-overflow-hidden-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 chunks +10 lines, -4 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
awoloszyn
6 years, 1 month ago (2014-11-04 21:57:39 UTC) #1
Ian Vollick
You'll certainly need a layout test for this. It would also help to cite the ...
6 years, 1 month ago (2014-11-05 16:40:07 UTC) #3
awoloszyn
Added comments, and a layout test. https://codereview.chromium.org/699183004/diff/1/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/699183004/diff/1/Source/core/frame/FrameView.cpp#newcode2287 Source/core/frame/FrameView.cpp:2287: return NonScrollableFromSize; On ...
6 years, 1 month ago (2014-11-05 19:25:11 UTC) #4
skobes
Let me see if I understand this correctly... - scrollable frames with fixed-pos children need ...
6 years, 1 month ago (2014-11-05 21:05:22 UTC) #5
awoloszyn
On 2014/11/05 21:05:22, skobes wrote: > Let me see if I understand this correctly... > ...
6 years, 1 month ago (2014-11-05 21:33:36 UTC) #6
awoloszyn
https://codereview.chromium.org/699183004/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/699183004/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode951 Source/core/page/scrolling/ScrollingCoordinator.cpp:951: const bool mayBeScrolledByScript = (scrollingReasons == On 2014/11/05 21:05:22, ...
6 years, 1 month ago (2014-11-05 21:33:44 UTC) #7
skobes
lgtm
6 years, 1 month ago (2014-11-05 22:02:56 UTC) #8
Ian Vollick
On 2014/11/05 22:02:56, skobes wrote: > lgtm lgtm2
6 years, 1 month ago (2014-11-06 00:28:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699183004/40001
6 years, 1 month ago (2014-11-06 00:29:13 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/19109)
6 years, 1 month ago (2014-11-06 00:33:07 UTC) #13
Ian Vollick
On 2014/11/06 00:33:07, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 1 month ago (2014-11-06 00:34:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/699183004/40001
6 years, 1 month ago (2014-11-06 00:35:01 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 01:44:18 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 184891

Powered by Google App Engine
This is Rietveld 408576698