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

Issue 702913002: Updating custom scrollbar style (Closed)

Created:
6 years, 1 month ago by MuVen
Modified:
6 years, 1 month ago
Reviewers:
pdr., esprehn, skobes, rune
CC:
aelias_OOO_until_Jul13, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, jdduke (slow), leviw+renderwatch, pdr+renderingwatchlist_chromium.org, Sikugu_, vivekg2, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Updating custom scrollbar style Triggering custom scrollbar style update and adjusting the scrollbar rect(this process is done during style recalc).This shall solve other issues of custom scrollbar during page scale. As when the page is scaled the style is recalculated, if the thickness is changed then owning renderer is set for childneedslayout. This layout shall happen after style recalc is done, which avoids a re-layout of scrollbar while updating scrollbar geometry. For brief explanation on custom-scrollbar behaviour/issues please check https://codereview.chromium.org/503583002/#msg46 BUG=430519, 406676, 390895, 375200, 424925 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184986

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : added new test #

Total comments: 20

Patch Set 4 : addressed review comments #

Total comments: 6

Patch Set 5 : addressed review comments #

Total comments: 4

Patch Set 6 : addressed review comments by rune #

Total comments: 9

Patch Set 7 : addressed review comments by rune #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -2 lines) Patch
A LayoutTests/scrollbars/custom-scrollbar-changing-style.html View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-changing-style-expected.html View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash.html View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash-expected.txt View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (12 generated)
MuVen
PTAL. Thanks,
6 years, 1 month ago (2014-11-05 17:07:07 UTC) #2
esprehn
This needs a test.
6 years, 1 month ago (2014-11-05 19:49:20 UTC) #3
MuVen
Hi esprehn, PTAL. I have clubed all the issues in this patch and added tests ...
6 years, 1 month ago (2014-11-06 15:33:58 UTC) #4
rune
I don't know the scrollbar code well enough to say if the implementation of recalculateCustomScrollbarStyle ...
6 years, 1 month ago (2014-11-06 16:44:27 UTC) #6
MuVen
@rune, Please find my comments. Please let me know your views on this, accordingly i ...
6 years, 1 month ago (2014-11-06 17:35:16 UTC) #7
MuVen
PTAL. addressed review comments. Thanks, Muven. https://codereview.chromium.org/702913002/diff/40001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/40001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode16 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:16: testRunner.dumpAsTextWithPixelResults(); On 2014/11/06 ...
6 years, 1 month ago (2014-11-06 18:49:56 UTC) #9
skobes
https://codereview.chromium.org/702913002/diff/60001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/60001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode19 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:19: var sheet = document.head.appendChild(style).sheet; I think this would be ...
6 years, 1 month ago (2014-11-07 00:14:00 UTC) #10
MuVen
PTAL.addressed review comments. Thanks, ~MuVen. https://codereview.chromium.org/702913002/diff/60001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/60001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode19 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:19: var sheet = document.head.appendChild(style).sheet; ...
6 years, 1 month ago (2014-11-07 09:46:59 UTC) #11
rune
https://codereview.chromium.org/702913002/diff/80001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/80001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode32 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:32: setTimeout(function() {addstyle();}, 1); I still think it would be ...
6 years, 1 month ago (2014-11-07 10:58:08 UTC) #12
MuVen
PTAL. https://codereview.chromium.org/702913002/diff/80001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/80001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode32 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:32: setTimeout(function() {addstyle();}, 1); On 2014/11/07 10:58:08, rune wrote: ...
6 years, 1 month ago (2014-11-07 11:33:55 UTC) #13
MuVen
@skobes,@rune, PTAL. provide your inputs to purse further. Thanks, MuVen.
6 years, 1 month ago (2014-11-07 15:55:46 UTC) #16
skobes
https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode8 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:8: background: rgba(255,0,0,0.8); Fix indentation. https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash.html File LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash.html (right): https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-thickness-change-on-zoom-crash.html#newcode8 ...
6 years, 1 month ago (2014-11-07 17:54:41 UTC) #17
MuVen
Done. PTAL. https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html File LayoutTests/scrollbars/custom-scrollbar-changing-style.html (right): https://codereview.chromium.org/702913002/diff/130001/LayoutTests/scrollbars/custom-scrollbar-changing-style.html#newcode8 LayoutTests/scrollbars/custom-scrollbar-changing-style.html:8: background: rgba(255,0,0,0.8); On 2014/11/07 17:54:41, skobes wrote: ...
6 years, 1 month ago (2014-11-07 18:31:19 UTC) #19
skobes
lgtm
6 years, 1 month ago (2014-11-07 18:39:08 UTC) #20
MuVen
On 2014/11/07 18:39:08, skobes wrote: > lgtm Thanks for the review. Special thanks to pdr ...
6 years, 1 month ago (2014-11-07 18:42:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/702913002/160001
6 years, 1 month ago (2014-11-07 18:43:21 UTC) #23
MuVen
@esprehn, This might require your LGTM even i guess. PTAL. Thanks.
6 years, 1 month ago (2014-11-07 18:46:17 UTC) #24
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/19240)
6 years, 1 month ago (2014-11-07 18:47:11 UTC) #26
pdr.
lgtm
6 years, 1 month ago (2014-11-07 18:54:38 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/702913002/160001
6 years, 1 month ago (2014-11-07 18:55:31 UTC) #32
commit-bot: I haz the power
6 years, 1 month ago (2014-11-07 19:49:28 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as 184986

Powered by Google App Engine
This is Rietveld 408576698