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

Issue 14874002: Allow frames with overflow:hidden scroll in slow scrolling path when scaled up (Closed)

Created:
7 years, 7 months ago by Xianzhu
Modified:
7 years, 7 months ago
Reviewers:
jamesr
CC:
blink-reviews, trchen
Visibility:
Public.

Description

Allow frames with overflow:hidden scroll in slow scrolling path when scaled up When a page is scaled up, we should allow the clipped contents to be panned through the smaller viewport. Two changes: 1. Let contentsSize be the layout size if originally the frame is not allowed to be scrolled; 2. Set ScrollbarMode to ScrollbarAuto if it ScrollbarAlwaysOff and visibleContentScaleFactor > 1. BUG=181315 TEST=WebFrameTest.OverflowHiddenScrollable

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Remove unnecessary changes #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -20 lines) Patch
M Source/WebKit/chromium/tests/WebFrameTest.cpp View 1 chunk +36 lines, -0 lines 0 comments Download
M Source/core/page/FrameView.h View 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/page/FrameView.cpp View 1 8 chunks +35 lines, -18 lines 3 comments Download

Messages

Total messages: 15 (0 generated)
Xianzhu
7 years, 7 months ago (2013-05-02 21:05:21 UTC) #1
Xianzhu
https://codereview.chromium.org/14874002/diff/3001/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/14874002/diff/3001/Source/core/page/FrameView.cpp#newcode608 Source/core/page/FrameView.cpp:608: hMode = ScrollbarAuto; Sorry. Just noticed that this is ...
7 years, 7 months ago (2013-05-03 00:00:41 UTC) #2
Xianzhu
https://codereview.chromium.org/14874002/diff/3001/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/14874002/diff/3001/Source/core/page/FrameView.cpp#newcode608 Source/core/page/FrameView.cpp:608: hMode = ScrollbarAuto; On 2013/05/03 00:00:41, Xianzhu wrote: > ...
7 years, 7 months ago (2013-05-03 00:26:49 UTC) #3
jamesr
This is for subframes, correct? When would a non-scrollable subframe become scrollable due to page ...
7 years, 7 months ago (2013-05-03 00:29:14 UTC) #4
Xianzhu
On 2013/05/03 00:29:14, jamesr wrote: > This is for subframes, correct? When would a non-scrollable ...
7 years, 7 months ago (2013-05-03 00:41:38 UTC) #5
jamesr
If you're just dealing with the main frame, then I think we should probably determine ...
7 years, 7 months ago (2013-05-03 00:57:10 UTC) #6
aelias_OOO_until_Jul13
How about just making the main frame always return "true" for isScrollable, and make overflow:hidden ...
7 years, 7 months ago (2013-05-03 01:03:34 UTC) #7
Xianzhu
On 2013/05/03 00:57:10, jamesr wrote: > If you're just dealing with the main frame, then ...
7 years, 7 months ago (2013-05-03 02:29:32 UTC) #8
Xianzhu
On 2013/05/03 01:03:34, aelias wrote: > How about just making the main frame always return ...
7 years, 7 months ago (2013-05-03 02:32:15 UTC) #9
Xianzhu
Added some code review comments to explain the changes. https://codereview.chromium.org/14874002/diff/7001/Source/core/page/FrameView.cpp File Source/core/page/FrameView.cpp (right): https://codereview.chromium.org/14874002/diff/7001/Source/core/page/FrameView.cpp#newcode580 Source/core/page/FrameView.cpp:580: ...
7 years, 7 months ago (2013-05-03 20:52:41 UTC) #10
Xianzhu
Any feedbacks to my latest comments?
7 years, 7 months ago (2013-05-07 16:39:46 UTC) #11
aelias_OOO_until_Jul13
Shrinking contentsSize ends up shrink the CC contents layer size, which is incorrect. It would ...
7 years, 7 months ago (2013-05-07 19:57:06 UTC) #12
Xianzhu
On 2013/05/07 19:57:06, aelias wrote: > Shrinking contentsSize ends up shrink the CC contents layer ...
7 years, 7 months ago (2013-05-07 20:14:56 UTC) #13
Xianzhu
About ScrollableArea::contentsSize(), it is actually 'scrollableContentsSize' as a interface method of ScrollableArea. In this sense, ...
7 years, 7 months ago (2013-05-07 20:33:49 UTC) #14
Xianzhu
7 years, 7 months ago (2013-05-07 21:42:36 UTC) #15
Closing this CL because enne@'s two viewport method can better resolve the
issue.

Powered by Google App Engine
This is Rietveld 408576698