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

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)

Created:
4 years, 3 months ago by Eric Seckler
Modified:
4 years, 2 months ago
Reviewers:
skobes, sky, dcheng, piman, halliwell, pdr.
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, dshwang, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, slimming-paint-reviews_chromium.org, dglazkov+blink, darin-cc_chromium.org, blink-reviews-paint_chromium.org, blink-reviews, piman+watch_chromium.org, kinuko+watch, blink-reviews-api_chromium.org, Sami, bokan
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace hide-scrollbars flag with a web setting. Instead of the composited/non-composited distinction, we now enforce this purely within in Blink in three places: PaintLayerScrollableArea, FrameView, VisualViewport. Also updates the use of the flag in chromecast/. BUG=639806 ,internal b/29253042 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/61ff9143240cc8bc02688b5d84cc939cb14e7685 Cr-Commit-Position: refs/heads/master@{#420766}

Patch Set 1 #

Patch Set 2 : Replace use of flag in cast and fix spurious test failures. #

Patch Set 3 : replace viewport test b/c overlay bars are hidden in layout tests. #

Total comments: 2

Patch Set 4 : Add missing plumbing of hide_scrollbars preference. #

Total comments: 4

Patch Set 5 : check for presence of settings using DCHECK + sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -56 lines) Patch
M chromecast/browser/BUILD.gn View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/browser/DEPS View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/child/runtime_features.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html View 1 chunk +2 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars-expected.html View 1 chunk +1 line, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars-in-frame.html View 1 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars-in-frame-expected.html View 1 1 chunk +21 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/InternalSettings.idl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollbarThemeOverlayMock.h View 1 chunk +1 line, -8 lines 0 comments Download
M third_party/WebKit/Source/web/WebRuntimeFeatures.cpp View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebRuntimeFeatures.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M ui/native_theme/native_theme_switches.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/native_theme/native_theme_switches.cc View 3 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 76 (44 generated)
Eric Seckler
Hi Steve, PTAL if overall approach is fine. Thanks! :)
4 years, 3 months ago (2016-09-14 17:04:21 UTC) #18
skobes
Does this need to be a setting? The bug says "within specific WebContents" but as ...
4 years, 3 months ago (2016-09-16 01:07:26 UTC) #21
Eric Seckler
On 2016/09/16 01:07:26, skobes wrote: > Does this need to be a setting? The bug ...
4 years, 3 months ago (2016-09-16 07:54:22 UTC) #22
skobes
lgtm On 2016/09/16 07:54:22, Eric Seckler wrote: > I'd like a setting per-WebContents (i.e. per ...
4 years, 3 months ago (2016-09-16 17:28:40 UTC) #27
Eric Seckler
+sky@ for ui/native_theme, WebKit/platform, WebKit/web. +piman@ for content/ +halliwell@ for chromecast/ +dcheng@ for security review ...
4 years, 3 months ago (2016-09-17 07:17:24 UTC) #29
halliwell
On 2016/09/17 07:17:24, Eric Seckler wrote: > +sky@ for ui/native_theme, WebKit/platform, WebKit/web. > +piman@ for ...
4 years, 3 months ago (2016-09-17 16:06:36 UTC) #30
sky
ui/native_theme LGTM. I'm not a WebKit owner though, you need to get a local owner ...
4 years, 3 months ago (2016-09-18 16:12:08 UTC) #31
Eric Seckler
On 2016/09/18 16:12:08, sky wrote: > ui/native_theme LGTM. I'm not a WebKit owner though, you ...
4 years, 3 months ago (2016-09-19 08:51:46 UTC) #33
dcheng
ipc changes lgtm but one blink question https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1054: if (box().frame()->settings() ...
4 years, 3 months ago (2016-09-19 10:04:47 UTC) #34
skobes
https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1054: if (box().frame()->settings() && box().frame()->settings()->hideScrollbars()) On 2016/09/19 10:04:47, dcheng wrote: ...
4 years, 3 months ago (2016-09-19 18:37:22 UTC) #35
dcheng
On 2016/09/19 18:37:22, skobes wrote: > https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp > File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): > > https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 > ...
4 years, 3 months ago (2016-09-19 19:25:12 UTC) #36
skobes
https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1054: if (box().frame()->settings() && box().frame()->settings()->hideScrollbars()) On 2016/09/19 18:37:22, skobes wrote: ...
4 years, 3 months ago (2016-09-19 19:31:20 UTC) #37
piman
lgtm
4 years, 3 months ago (2016-09-19 20:21:57 UTC) #38
pdr.
On 2016/09/19 at 20:21:57, piman wrote: > lgtm LGTM
4 years, 3 months ago (2016-09-19 20:27:33 UTC) #39
Eric Seckler
https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp:1054: if (box().frame()->settings() && box().frame()->settings()->hideScrollbars()) On 2016/09/19 19:31:20, skobes wrote: ...
4 years, 3 months ago (2016-09-22 12:41:56 UTC) #48
skobes
On 2016/09/22 12:41:56, Eric Seckler wrote: > https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp > File third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp (right): > > https://codereview.chromium.org/2339873002/diff/80001/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp#newcode1054 ...
4 years, 3 months ago (2016-09-22 14:12:45 UTC) #51
Eric Seckler
On 2016/09/22 14:12:45, skobes wrote: > On 2016/09/22 12:41:56, Eric Seckler wrote: > > > ...
4 years, 3 months ago (2016-09-22 14:26:03 UTC) #52
skobes
On 2016/09/22 14:26:03, Eric Seckler wrote: > On 2016/09/22 14:12:45, skobes wrote: > > On ...
4 years, 2 months ago (2016-09-22 21:04:03 UTC) #53
Eric Seckler
On 2016/09/22 21:04:03, skobes wrote: > On 2016/09/22 14:26:03, Eric Seckler wrote: > > On ...
4 years, 2 months ago (2016-09-23 09:41:43 UTC) #54
skobes
lgtm
4 years, 2 months ago (2016-09-23 15:21:04 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339873002/160001
4 years, 2 months ago (2016-09-23 15:23:22 UTC) #58
dcheng
On 2016/09/23 15:23:22, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 2 months ago (2016-09-23 15:26:24 UTC) #59
skobes
On 2016/09/23 15:26:24, dcheng wrote: > On 2016/09/23 15:23:22, commit-bot: I haz the power wrote: ...
4 years, 2 months ago (2016-09-23 15:30:01 UTC) #60
dcheng
On 2016/09/23 15:30:01, skobes wrote: > On 2016/09/23 15:26:24, dcheng wrote: > > On 2016/09/23 ...
4 years, 2 months ago (2016-09-23 16:10:35 UTC) #62
Eric Seckler
Thanks for the thorough investigation, sounds like we're safe. I'm happy to commit patch set ...
4 years, 2 months ago (2016-09-23 16:25:26 UTC) #63
skobes
On 2016/09/23 16:10:35, dcheng wrote: > From the codesearch listings, I see 8 primary callers. ...
4 years, 2 months ago (2016-09-23 16:45:00 UTC) #64
skobes
lgtm On 2016/09/23 16:25:26, Eric Seckler wrote: > Thanks for the thorough investigation, sounds like ...
4 years, 2 months ago (2016-09-23 16:47:43 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339873002/140001
4 years, 2 months ago (2016-09-23 17:40:01 UTC) #68
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/298779)
4 years, 2 months ago (2016-09-23 20:05:36 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2339873002/140001
4 years, 2 months ago (2016-09-23 20:52:34 UTC) #72
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 2 months ago (2016-09-23 22:58:27 UTC) #74
commit-bot: I haz the power
4 years, 2 months ago (2016-09-23 23:00:18 UTC) #76
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/61ff9143240cc8bc02688b5d84cc939cb14e7685
Cr-Commit-Position: refs/heads/master@{#420766}

Powered by Google App Engine
This is Rietveld 408576698