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

Issue 163383002: Scrollbar width is not applied when element hidden (Closed)

Created:
6 years, 10 months ago by Gurpreet
Modified:
6 years, 6 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., lgombos, gyuyoung2, ryuan, tonikitoo_, Julien - ping for review, esprehn
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Scrollbar width is not applied when element hidden Webkit has css properties through which custom scroll bars can be added. In case the element's visibility property is hidden and custom scrollbar properties are applied the scrollbar width is not considered when querying the element.clientWidth. In case of non-custom scrollbars whether the element's visibility property is hidden or not correct scrollbar width is considered. When a custom scrollbar is created there is a check whether the renderer to which scrollbar is added is visible or not. This check is not required since for non-custom scrollbars the same check is not present. Also whether the element's visibility property is hidden or not a placeholder is set for the element. Both behavior i.e custom and non-custom scrollbars should be same. I already landed this patch on Webkit. Just modified the layout test file. http://trac.webkit.org/changeset/155323 R=esprehn@chromium.org,eseidel@chromium.org BUG=343521 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175123

Patch Set 1 #

Patch Set 2 : Rebase to latest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -1 line) Patch
A LayoutTests/fast/dom/Element/scroll-width-hidden.html View 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Element/scroll-width-hidden-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Element/scroll-width-visible.html View 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/dom/Element/scroll-width-visible-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderScrollbar.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
Gurpreet
Please review. Thanks.
6 years, 10 months ago (2014-02-19 09:33:46 UTC) #1
eseidel
I don't really understand what this is changing. It looks like it's causing custom scrollbars ...
6 years, 9 months ago (2014-03-10 18:12:11 UTC) #2
Gurpreet
On 2014/03/10 18:12:11, eseidel wrote: > I don't really understand what this is changing. It ...
6 years, 9 months ago (2014-03-11 05:03:07 UTC) #3
Gurpreet
Hi Eric. Please review. Thanks.
6 years, 9 months ago (2014-03-18 13:06:15 UTC) #4
Gurpreet
Hi Eric. Can you please review this? Thanks.
6 years, 9 months ago (2014-03-24 12:12:24 UTC) #5
Gurpreet
Hi Eric. Can you please review this? Thanks.
6 years, 8 months ago (2014-04-01 14:41:11 UTC) #6
Gurpreet
Hi Can someone please review this. Thanks.
6 years, 7 months ago (2014-05-05 09:40:45 UTC) #7
eseidel
Julien is the right reviewer for scrollbar changes. Sorry for the long delay! Please track ...
6 years, 6 months ago (2014-05-29 00:27:52 UTC) #8
eseidel
In any case, this looks right. rslgtm. Presumably you tested in FF or IE?
6 years, 6 months ago (2014-05-29 00:28:49 UTC) #9
leviw_travelin_and_unemployed
On 2014/05/29 00:28:49, eseidel wrote: > In any case, this looks right. rslgtm. > > ...
6 years, 6 months ago (2014-05-29 00:43:23 UTC) #10
Gurpreet
The CQ bit was checked by k.gurpreet@samsung.com
6 years, 6 months ago (2014-05-29 05:54:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/k.gurpreet@samsung.com/163383002/50001
6 years, 6 months ago (2014-05-29 05:54:48 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 6 months ago (2014-05-29 07:13:51 UTC) #13
Gurpreet
The CQ bit was unchecked by k.gurpreet@samsung.com
6 years, 6 months ago (2014-05-30 08:21:31 UTC) #14
Gurpreet
The CQ bit was checked by k.gurpreet@samsung.com
6 years, 6 months ago (2014-05-30 08:21:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/k.gurpreet@samsung.com/163383002/50001
6 years, 6 months ago (2014-05-30 08:22:00 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 6 months ago (2014-05-30 09:12:53 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-30 10:33:21 UTC) #18
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/9900)
6 years, 6 months ago (2014-05-30 10:33:21 UTC) #19
Gurpreet
The CQ bit was unchecked by k.gurpreet@samsung.com
6 years, 6 months ago (2014-05-30 10:41:59 UTC) #20
Gurpreet
The CQ bit was checked by k.gurpreet@samsung.com
6 years, 6 months ago (2014-05-30 11:00:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/k.gurpreet@samsung.com/163383002/50001
6 years, 6 months ago (2014-05-30 11:00:25 UTC) #22
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 13:09:13 UTC) #23
Message was sent while issue was closed.
Change committed as 175123

Powered by Google App Engine
This is Rietveld 408576698