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

Issue 708283002: RLSA needsLayout on customscrollbar thickness change. (Closed)

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

Description

RLSA needsLayout on CustomScrollbar thickness change. RLSA RenderBlock needs layouts excluding the CustomScrollbar thickness. Set children of RenderBlock width is changed upon CustomScrollbar thickness change. This ensures to re-layout RLSA RenderBlock considering the CustomScrollbar thickness. BUG=431528 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185395

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : added testcase #

Total comments: 2

Patch Set 5 : Implemented scrollbarsChanged API, and added few test cases #

Patch Set 6 : modified logical width/height in RenderScrollbar.cpp to minize code #

Patch Set 7 : using normalChildNeedsLayout() #

Patch Set 8 : RenderBlock child needsLayout #

Total comments: 2

Patch Set 9 : addressed review comments #

Total comments: 2

Patch Set 10 : addressed review comments #

Messages

Total messages: 42 (19 generated)
MuVen
Hi Rune, PTAL. Thanks, MuVen.
6 years, 1 month ago (2014-11-08 15:20:07 UTC) #2
MuVen
+ skobes
6 years, 1 month ago (2014-11-08 15:21:36 UTC) #4
skobes
https://codereview.chromium.org/708283002/diff/60001/Source/core/rendering/RenderLayerScrollableArea.cpp File Source/core/rendering/RenderLayerScrollableArea.cpp (right): https://codereview.chromium.org/708283002/diff/60001/Source/core/rendering/RenderLayerScrollableArea.cpp#newcode642 Source/core/rendering/RenderLayerScrollableArea.cpp:642: if (box().style()->overflowX() == OAUTO || box().style()->overflowY() == OAUTO || ...
6 years, 1 month ago (2014-11-10 20:26:09 UTC) #5
MuVen
https://codereview.chromium.org/708283002/diff/60001/Source/core/rendering/RenderLayerScrollableArea.cpp File Source/core/rendering/RenderLayerScrollableArea.cpp (right): https://codereview.chromium.org/708283002/diff/60001/Source/core/rendering/RenderLayerScrollableArea.cpp#newcode772 Source/core/rendering/RenderLayerScrollableArea.cpp:772: if (box().isRenderBlock()) { RenderBlock& block = toRenderBlock(box()); block.scrollbarsChanged(m_horizontalScrollbarRectChanged, m_verticalScrollbarRectChanged); ...
6 years, 1 month ago (2014-11-11 14:45:04 UTC) #6
MuVen
I see a nominal layout of renderbox in testcase http://css-tricks.com/examples/WebKitScrollbars/ when i change the custom ...
6 years, 1 month ago (2014-11-11 15:08:18 UTC) #7
skobes
On 2014/11/11 15:08:18, muven wrote: > I see a nominal layout of renderbox in testcase ...
6 years, 1 month ago (2014-11-11 19:53:36 UTC) #8
MuVen
Hi Skobes, I see that the logical width/height of the custom scrollbar is not been ...
6 years, 1 month ago (2014-11-12 17:41:13 UTC) #14
MuVen
I have modified logical width/height in the renderScrollbar.cpp to minize code, as in the RenderScrollbar ...
6 years, 1 month ago (2014-11-12 18:33:28 UTC) #15
skobes
On 2014/11/12 18:33:28, muven wrote: > I have modified logical width/height in the renderScrollbar.cpp > ...
6 years, 1 month ago (2014-11-13 04:49:36 UTC) #16
MuVen
layoutBlock(true); makes to relayout children even. may be we can add conditions to make it ...
6 years, 1 month ago (2014-11-13 06:11:52 UTC) #17
MuVen
PTAL.
6 years, 1 month ago (2014-11-13 15:58:03 UTC) #24
skobes
https://codereview.chromium.org/708283002/diff/360001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/708283002/diff/360001/Source/core/rendering/RenderBlock.cpp#newcode1394 Source/core/rendering/RenderBlock.cpp:1394: relayoutChildren |= layer()->scrollableArea()->didCustomScrollbarRectChanged(); RenderBlockFlow::layoutBlockFlow has logic to force relayout ...
6 years, 1 month ago (2014-11-13 18:14:26 UTC) #25
MuVen
PTAL. https://codereview.chromium.org/708283002/diff/360001/Source/core/rendering/RenderBlock.cpp File Source/core/rendering/RenderBlock.cpp (right): https://codereview.chromium.org/708283002/diff/360001/Source/core/rendering/RenderBlock.cpp#newcode1394 Source/core/rendering/RenderBlock.cpp:1394: relayoutChildren |= layer()->scrollableArea()->didCustomScrollbarRectChanged(); I have added a variable ...
6 years, 1 month ago (2014-11-13 20:34:10 UTC) #28
skobes
Thanks, this is looking better. https://codereview.chromium.org/708283002/diff/420001/Source/core/rendering/RenderBox.h File Source/core/rendering/RenderBox.h (right): https://codereview.chromium.org/708283002/diff/420001/Source/core/rendering/RenderBox.h#newcode453 Source/core/rendering/RenderBox.h:453: void setCustomScrollbarThicknessChanged(bool thicknessChanged) { ...
6 years, 1 month ago (2014-11-14 03:32:11 UTC) #29
MuVen
PTAL. https://codereview.chromium.org/708283002/diff/420001/Source/core/rendering/RenderBox.h File Source/core/rendering/RenderBox.h (right): https://codereview.chromium.org/708283002/diff/420001/Source/core/rendering/RenderBox.h#newcode453 Source/core/rendering/RenderBox.h:453: void setCustomScrollbarThicknessChanged(bool thicknessChanged) { m_customScrollbarThicknessChanged = thicknessChanged; } ...
6 years, 1 month ago (2014-11-14 06:10:25 UTC) #30
skobes
lgtm
6 years, 1 month ago (2014-11-14 20:07:42 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/708283002/440001
6 years, 1 month ago (2014-11-14 20:24:59 UTC) #33
MuVen
@skobes, thanks for the review, @pdr, Need owners LGTM. PTAL. Thanks, MuVen.
6 years, 1 month ago (2014-11-14 20:35:18 UTC) #35
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/19821)
6 years, 1 month ago (2014-11-14 20:41:27 UTC) #37
pdr.
On 2014/11/14 at 20:41:27, commit-bot wrote: > Try jobs failed on following builders: > blink_presubmit ...
6 years, 1 month ago (2014-11-14 21:21:24 UTC) #38
MuVen
On 2014/11/14 21:21:24, pdr wrote: > On 2014/11/14 at 20:41:27, commit-bot wrote: > > Try ...
6 years, 1 month ago (2014-11-14 21:30:19 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/708283002/440001
6 years, 1 month ago (2014-11-14 21:30:47 UTC) #41
commit-bot: I haz the power
6 years, 1 month ago (2014-11-14 22:52:09 UTC) #42
Message was sent while issue was closed.
Committed patchset #10 (id:440001) as 185395

Powered by Google App Engine
This is Rietveld 408576698