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

Issue 1292513002: Create custom scrollbars when html element has overflow:scroll (Closed)

Created:
5 years, 4 months ago by MuVen
Modified:
5 years, 4 months ago
Reviewers:
skobes
CC:
blink-reviews, dshwang, slimming-paint-reviews_chromium.org, blink-reviews-paint_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Create custom scrollbars when html element has overflow:scroll custom scrollbars are not created when html element has overflow:scroll style. Reconstruct scrollbars from native to custom scrollbar when html element has overflow:scroll style. BUG=518757 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201039

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : addressed review comments #

Total comments: 3

Patch Set 5 : Comment 1's: LayoutTests failures #

Total comments: 1

Patch Set 6 : Comment 2's: LayoutTests failures #

Patch Set 7 : #

Patch Set 8 : addressed review comment: (fix for overflow:overlay) #

Total comments: 12

Patch Set 9 : addressed review comments #

Total comments: 6

Patch Set 10 : #

Patch Set 11 : Fixing, layout test #

Total comments: 2

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -49 lines) Patch
A + LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -16 lines 0 comments Download
A + LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute-expected.html View 1 2 3 1 chunk +7 lines, -16 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +37 lines, -17 lines 0 comments Download

Messages

Total messages: 52 (18 generated)
MuVen
Skobes, PTAL.
5 years, 4 months ago (2015-08-13 13:49:04 UTC) #6
skobes
https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode974 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:974: return actualLayoutObject->isBox() && actualLayoutObject->style()->hasPseudoStyle(SCROLLBAR); This will reconstruct custom scrollbars ...
5 years, 4 months ago (2015-08-13 18:12:40 UTC) #7
MuVen
https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode651 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:651: destroyScrollbar(HorizontalScrollbar); !m_hBar->isCustomScrollbar() This condition wont trigger reconstruction every-time after ...
5 years, 4 months ago (2015-08-13 19:36:32 UTC) #8
skobes
https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/80001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode651 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:651: destroyScrollbar(HorizontalScrollbar); On 2015/08/13 19:36:32, MuVen wrote: > !m_hBar->isCustomScrollbar() This ...
5 years, 4 months ago (2015-08-13 19:53:43 UTC) #9
MuVen
Hi SKobes, PTAL. Thanks, MuVen.
5 years, 4 months ago (2015-08-14 18:59:42 UTC) #11
skobes
https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode654 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:654: needsHBarConstruction = true; I don't understand the need to ...
5 years, 4 months ago (2015-08-14 19:02:56 UTC) #12
MuVen
On 2015/08/14 18:59:42, MuVen wrote: > Hi SKobes, > > PTAL. > > Thanks, > ...
5 years, 4 months ago (2015-08-14 19:03:38 UTC) #13
skobes
On 2015/08/14 19:03:38, MuVen wrote: > Regular overflow logic below creates the scrollbar only in ...
5 years, 4 months ago (2015-08-14 19:05:14 UTC) #14
MuVen
On 2015/08/14 19:05:14, skobes wrote: > On 2015/08/14 19:03:38, MuVen wrote: > > Regular overflow ...
5 years, 4 months ago (2015-08-14 19:17:48 UTC) #15
skobes
https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode697 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:697: bool horizontalScrollBarChanged = (box().hasAutoHorizontalScrollbar() && (hasHorizontalScrollbar() != hasHorizontalOverflow)) || ...
5 years, 4 months ago (2015-08-14 19:23:37 UTC) #16
MuVen
Done !!! PTAL. https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/140001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode697 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:697: bool horizontalScrollBarChanged = (box().hasAutoHorizontalScrollbar() && (hasHorizontalScrollbar() ...
5 years, 4 months ago (2015-08-17 09:21:03 UTC) #22
skobes
https://codereview.chromium.org/1292513002/diff/260001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/260001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode695 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:695: setHasHorizontalScrollbar(hasHorizontalOverflow); This seems wrong for OSCROLL, which should show ...
5 years, 4 months ago (2015-08-17 22:59:02 UTC) #23
MuVen
https://codereview.chromium.org/1292513002/diff/280001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/280001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode694 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:694: if (box().hasAutoHorizontalScrollbar() || box().style()->overflowX() == OSCROLL) in case of ...
5 years, 4 months ago (2015-08-18 13:20:02 UTC) #24
MuVen
Ptal. I have analyzed 2 of your review comments. Please share your thoughts. https://codereview.chromium.org/1292513002/diff/260001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File ...
5 years, 4 months ago (2015-08-18 14:38:53 UTC) #25
skobes
On 2015/08/18 14:38:53, MuVen wrote: > We may need this statement. Technically if we see, ...
5 years, 4 months ago (2015-08-18 15:13:40 UTC) #26
MuVen
On 2015/08/18 15:13:40, skobes wrote: > On 2015/08/18 14:38:53, MuVen wrote: > > We may ...
5 years, 4 months ago (2015-08-18 17:11:09 UTC) #27
skobes
On 2015/08/18 17:11:09, MuVen wrote: > In the test case mentioned fast/repaint/layout-state-only-positioned.html > div "q" ...
5 years, 4 months ago (2015-08-18 18:48:09 UTC) #28
MuVen
PTAL. ~Thanks
5 years, 4 months ago (2015-08-19 16:52:42 UTC) #29
skobes
https://codereview.chromium.org/1292513002/diff/340001/LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html File LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html (right): https://codereview.chromium.org/1292513002/diff/340001/LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html#newcode29 LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html:29: function addRule(selector, css){ This addRule function seems unnecessarily complex ...
5 years, 4 months ago (2015-08-19 16:59:52 UTC) #30
MuVen
PTAL. https://codereview.chromium.org/1292513002/diff/340001/LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html File LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html (right): https://codereview.chromium.org/1292513002/diff/340001/LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html#newcode29 LayoutTests/fast/scrolling/custom-scrollbar-style-applied-with-overflow-attribute.html:29: function addRule(selector, css){ On 2015/08/19 16:59:51, skobes wrote: ...
5 years, 4 months ago (2015-08-19 19:20:42 UTC) #31
skobes
https://codereview.chromium.org/1292513002/diff/360001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/360001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode689 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:689: // overflow:auto may need to lay out again if ...
5 years, 4 months ago (2015-08-19 19:40:18 UTC) #32
MuVen
PTAL. https://codereview.chromium.org/1292513002/diff/360001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/360001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode689 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:689: // overflow:auto may need to lay out again ...
5 years, 4 months ago (2015-08-19 20:37:33 UTC) #33
skobes
lgtm Please update the first line of the change description to describe the positive effect ...
5 years, 4 months ago (2015-08-19 20:43:27 UTC) #34
MuVen
On 2015/08/19 20:43:27, skobes wrote: > lgtm > > Please update the first line of ...
5 years, 4 months ago (2015-08-19 20:44:36 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292513002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292513002/380001
5 years, 4 months ago (2015-08-19 20:45:10 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/100751)
5 years, 4 months ago (2015-08-19 21:52:23 UTC) #39
MuVen
Patch Set 10 has layout tests failure because, Overlay scrollbars are disabled if scrollSize(HorizontalScrollbar/VerticalScrollbar) is ...
5 years, 4 months ago (2015-08-20 08:23:29 UTC) #40
skobes
https://codereview.chromium.org/1292513002/diff/400001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/400001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode693 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:693: || (box().style()->overflowX() == OSCROLL && !horizontalScrollbar() && !ScrollbarTheme::theme()->usesOverlayScrollbars()); Won't ...
5 years, 4 months ago (2015-08-20 19:44:02 UTC) #41
MuVen
https://codereview.chromium.org/1292513002/diff/400001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp File Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp (right): https://codereview.chromium.org/1292513002/diff/400001/Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp#newcode693 Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp:693: || (box().style()->overflowX() == OSCROLL && !horizontalScrollbar() && !ScrollbarTheme::theme()->usesOverlayScrollbars()); On ...
5 years, 4 months ago (2015-08-21 14:27:38 UTC) #44
skobes
lgtm
5 years, 4 months ago (2015-08-21 15:52:44 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292513002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292513002/460001
5 years, 4 months ago (2015-08-21 17:07:04 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/59088)
5 years, 4 months ago (2015-08-21 22:33:33 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1292513002/460001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1292513002/460001
5 years, 4 months ago (2015-08-22 01:36:34 UTC) #51
commit-bot: I haz the power
5 years, 4 months ago (2015-08-22 05:56:53 UTC) #52
Message was sent while issue was closed.
Committed patchset #12 (id:460001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201039

Powered by Google App Engine
This is Rietveld 408576698