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

Issue 503583002: Fixed Inconsistent behaviour of custom-scrollbar (Closed)

Created:
6 years, 4 months ago by MuVen
Modified:
6 years, 1 month ago
Reviewers:
esprehn
CC:
abarth-chromium, blink-reviews, jdduke (slow), RaviKasibhatla, pdr., rwlbuis, Sikugu_, vivekg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fixed Inconsistent behaviour of custom-scrollbar Custom-scrollbar scales along with the page, in this process thickness of the scrollbar is changed. Which sets ownerRender needslayout. Now the layout is being trigerred on change in thickness and updating scrollbar for every scale-factor irrespective of scrollbar presence. Detailed explanation of the bug mentioned @ https://codereview.chromium.org/503583002/#msg46 This review is merged to https://codereview.chromium.org/702913002/ BUG=406676, 390895, 375200, 424925

Patch Set 1 #

Patch Set 2 : Adding test case #

Total comments: 14

Patch Set 3 : addressed review comments #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 3

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : final fix #

Patch Set 10 : testexpectations #

Patch Set 11 : TOT and changed the Test Name #

Patch Set 12 : Invalidate ,adjust custom scrollbar on thickness change #

Total comments: 3

Patch Set 13 : addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -7 lines) Patch
A LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +35 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +29 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderScrollbar.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 75 (27 generated)
MuVen
PTAL.Sorry for raising another review request for the same, I closed the previous issue unknowingly.
6 years, 4 months ago (2014-08-23 10:08:54 UTC) #1
MuVen
friendly ping. Thanks.
6 years, 3 months ago (2014-08-26 19:54:04 UTC) #2
abarth-chromium
This CL needs a test.
6 years, 3 months ago (2014-09-02 19:22:42 UTC) #3
MuVen
Hi Abarth, PTAL. Thanks,
6 years, 3 months ago (2014-09-10 13:40:17 UTC) #5
MuVen
Hi Esprehn, Can you PTAL at the patch. Thanks, MuVen.
6 years, 3 months ago (2014-09-11 16:49:45 UTC) #7
MuVen
On 2014/09/11 16:49:45, muven wrote: > Hi Esprehn, > > Can you PTAL at the ...
6 years, 3 months ago (2014-09-18 19:21:38 UTC) #8
esprehn
https://codereview.chromium.org/503583002/diff/40001/LayoutTests/fast/events/scale-document.html File LayoutTests/fast/events/scale-document.html (right): https://codereview.chromium.org/503583002/diff/40001/LayoutTests/fast/events/scale-document.html#newcode1 LayoutTests/fast/events/scale-document.html:1: <html> missing doctype, also leave out the html, body ...
6 years, 3 months ago (2014-09-19 05:06:52 UTC) #9
MuVen
PTAL. https://codereview.chromium.org/503583002/diff/40001/LayoutTests/fast/events/scale-document.html File LayoutTests/fast/events/scale-document.html (right): https://codereview.chromium.org/503583002/diff/40001/LayoutTests/fast/events/scale-document.html#newcode1 LayoutTests/fast/events/scale-document.html:1: <html> On 2014/09/19 05:06:52, esprehn wrote: > missing ...
6 years, 3 months ago (2014-09-19 16:19:30 UTC) #12
MuVen
On 2014/09/19 16:19:30, muven wrote: > PTAL. > > https://codereview.chromium.org/503583002/diff/40001/LayoutTests/fast/events/scale-document.html > File LayoutTests/fast/events/scale-document.html (right): > ...
6 years, 3 months ago (2014-09-23 14:49:13 UTC) #13
esprehn
This lgtm, but it does make me sad because we should have adjusted the size ...
6 years, 2 months ago (2014-09-26 04:10:25 UTC) #15
pdr.
> pdr@ should look at this, he's the master of the multi pass layout. Aaack! ...
6 years, 2 months ago (2014-09-26 04:55:50 UTC) #16
MuVen
On 2014/09/26 04:55:50, pdr wrote: > > pdr@ should look at this, he's the master ...
6 years, 2 months ago (2014-09-26 12:04:12 UTC) #17
MuVen
On 2014/09/26 12:04:12, muven wrote: > On 2014/09/26 04:55:50, pdr wrote: > > > pdr@ ...
6 years, 2 months ago (2014-09-26 13:10:40 UTC) #18
MuVen
one more point i want to mention, to confirm the scrollbar creation is setting the ...
6 years, 2 months ago (2014-09-26 17:03:20 UTC) #19
pdr.
On 2014/09/26 17:03:20, muven wrote: > one more point i want to mention, to confirm ...
6 years, 2 months ago (2014-09-28 01:38:42 UTC) #20
MuVen
Actually when the page is loaded overflow scrollbars are created and they are set to ...
6 years, 2 months ago (2014-09-28 11:49:59 UTC) #21
pdr.
On 2014/09/28 11:49:59, muven wrote: > Actually when the page is loaded overflow scrollbars are ...
6 years, 2 months ago (2014-09-28 22:18:29 UTC) #22
MuVen
Hi Pdr, After debugging i see the reson why it doesnt asserts during JS call ...
6 years, 2 months ago (2014-10-01 09:59:13 UTC) #23
pdr.
On 2014/10/01 at 09:59:13, sataya.m wrote: > Hi Pdr, > > After debugging i see ...
6 years, 2 months ago (2014-10-01 18:39:07 UTC) #24
MuVen
Hi pdr, Style of the scrollbar thickness is calculated @ RenderObject::getUncachedPseudoStyle Im pasting some of ...
6 years, 2 months ago (2014-10-02 12:07:14 UTC) #25
pdr.
On 2014/10/02 at 12:07:14, sataya.m wrote: > Hi pdr, > > Style of the scrollbar ...
6 years, 2 months ago (2014-10-03 02:42:13 UTC) #26
MuVen
Hi Pdr, I have debugged further and found the root cause. When i try to ...
6 years, 2 months ago (2014-10-10 13:53:28 UTC) #27
pdr.
On 2014/10/10 at 13:53:28, sataya.m wrote: > Hi Pdr, > > I have debugged further ...
6 years, 2 months ago (2014-10-10 21:55:15 UTC) #28
MuVen
solidcolorscrollbar or paintedscrollbarlayer is not being scaled by zoom factor, instead the VisibleToTotalLengthRatio will be ...
6 years, 2 months ago (2014-10-11 19:42:43 UTC) #29
pdr.
On 2014/10/11 at 19:42:43, sataya.m wrote: > solidcolorscrollbar or paintedscrollbarlayer is not being scaled by ...
6 years, 2 months ago (2014-10-11 21:06:39 UTC) #30
MuVen
As per below statement if (RenderBox* box = owningRenderer()) box->setChildNeedsLayout(); owningRender(body) needs Layout. https://support.google.com/chrome/?p=help&ctx=keyboard#topic=3227046 this ...
6 years, 2 months ago (2014-10-13 15:57:14 UTC) #31
MuVen
PTAL on the changes, If the framerect of the scrollbar is changed, then only layout ...
6 years, 2 months ago (2014-10-14 14:35:45 UTC) #34
pdr.
https://codereview.chromium.org/503583002/diff/250001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/503583002/diff/250001/Source/core/frame/FrameView.cpp#newcode3453 Source/core/frame/FrameView.cpp:3453: bool scrollbarExistenceChanged = false; Is the scrollbar existence changing, ...
6 years, 2 months ago (2014-10-14 22:02:21 UTC) #35
pdr.
I'm afraid I no longer have the bandwidth to continue this review.
6 years, 2 months ago (2014-10-15 22:35:21 UTC) #37
MuVen
Im sorry pdr, Initially when i started this i had only minimum knowldge in this ...
6 years, 2 months ago (2014-10-16 05:55:07 UTC) #38
esprehn
not lgtm, removing my bit since this patch isn't good to land for now. If ...
6 years, 2 months ago (2014-10-16 06:01:26 UTC) #39
pdr.
On 2014/10/16 at 05:55:07, sataya.m wrote: > Im sorry pdr, Initially when i started this ...
6 years, 2 months ago (2014-10-16 06:05:20 UTC) #41
MuVen
Hi Rob, PTAL. Custom Scrollbar(RenderScrollbar.cpp) is enabled upon zooming 300% and the style of the ...
6 years, 2 months ago (2014-10-16 15:04:40 UTC) #44
MuVen
Hi All, Im happy to find the root cause of the issue which led me ...
6 years, 2 months ago (2014-10-17 12:06:08 UTC) #46
rwlbuis
Is this CL related to this problem? https://codereview.chromium.org/653423003
6 years, 2 months ago (2014-10-17 20:59:57 UTC) #48
MuVen
I tried on the TOT with https://codereview.chromium.org/653423003 CL. The above mentioned issues are still present.May ...
6 years, 2 months ago (2014-10-18 06:51:32 UTC) #49
MuVen
Hi Rob, PTAL. Thanks, MuVen
6 years, 1 month ago (2014-10-27 12:25:51 UTC) #56
rwlbuis
On 2014/10/27 12:25:51, muven wrote: > Hi Rob, > > PTAL. > > Thanks, > ...
6 years, 1 month ago (2014-10-27 18:39:40 UTC) #57
MuVen
Hi Rob, Are you sure that the fast/repaint/line-flow-with-floats-9.html regression is caused by your patch? => ...
6 years, 1 month ago (2014-10-28 12:40:57 UTC) #63
rwlbuis
Patch looks ok to me, but I am not an expert in this area. I ...
6 years, 1 month ago (2014-10-28 14:59:03 UTC) #64
MuVen
On 2014/10/28 14:59:03, rwlbuis wrote: > Patch looks ok to me, but I am not ...
6 years, 1 month ago (2014-10-28 15:31:10 UTC) #66
esprehn
https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp#newcode3319 Source/core/frame/FrameView.cpp:3319: scrollbarExistenceDidChange(); What behavior are you trying to trigger here? ...
6 years, 1 month ago (2014-10-29 06:43:50 UTC) #69
MuVen
https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp#newcode3319 Source/core/frame/FrameView.cpp:3319: scrollbarExistenceDidChange(); Upon zooming in, customScrollbar style scales by scaleFactor. ...
6 years, 1 month ago (2014-10-29 09:39:59 UTC) #70
MuVen
On 2014/10/29 09:39:59, muven wrote: > https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp > File Source/core/frame/FrameView.cpp (right): > > https://codereview.chromium.org/503583002/diff/530001/Source/core/frame/FrameView.cpp#newcode3319 > ...
6 years, 1 month ago (2014-10-31 04:27:44 UTC) #71
MuVen
Hi Esprehn, I have uploaded a screencast of how these custom scrollbars are behaving inconsistently ...
6 years, 1 month ago (2014-10-31 04:30:46 UTC) #72
esprehn
I think you're misunderstanding here, the scrollbar existence didn't change. It just changed size, what ...
6 years, 1 month ago (2014-10-31 21:53:57 UTC) #73
MuVen
esprehn, as u have suggested i have renamed scrollbarExistenceChanged(), PTAL. Thanks
6 years, 1 month ago (2014-11-04 15:06:12 UTC) #74
MuVen
6 years, 1 month ago (2014-11-06 15:39:02 UTC) #75
Closing this review as 

https://codereview.chromium.org/702913002/ is fixing this issue(started with
Updating custom scrollbar style issue, but that provoked to fix this issue
without a relayout for scrollbar).

Powered by Google App Engine
This is Rietveld 408576698