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

Issue 2345823003: Overlay scrollbars are painted onload. (Closed)

Created:
4 years, 3 months ago by sahel
Modified:
4 years, 2 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Overlay scrollbars are painted onload. I fixed the AdjustScale function to keep the values within a valid range. Now, when it is called during LayerImpl::PushPropertiesTo, the temporarily invalid scrollbar->Opacity() doesn't set the opacity to zero. The tests fails before applying this patch, and passes on this patch. BUG=635629 TEST=ScrollbarAnimationControllerThinningTest.AppearOnResize CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/38991f06ebb579440a3bf3f3fbb8792a60b610d4 Cr-Commit-Position: refs/heads/master@{#421910}

Patch Set 1 : Overlay scrollbars are painted onload. #

Total comments: 3

Patch Set 2 : unittest added #

Total comments: 4

Patch Set 3 : nit fixed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -9 lines) Patch
M cc/input/scrollbar_animation_controller_thinning.h View 1 chunk +3 lines, -1 line 0 comments Download
M cc/input/scrollbar_animation_controller_thinning.cc View 3 chunks +17 lines, -8 lines 0 comments Download
M cc/input/scrollbar_animation_controller_thinning_unittest.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (35 generated)
sahel
reveman@chromium.org: Please review changes in
4 years, 3 months ago (2016-09-16 15:28:00 UTC) #14
reveman
+davemoore
4 years, 3 months ago (2016-09-16 16:53:13 UTC) #16
bokan
Looks fine to me. Needs a test though, please look at add one to the ...
4 years, 3 months ago (2016-09-19 15:41:17 UTC) #17
sahel
https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc#newcode129 cc/input/scrollbar_animation_controller_thinning.cc:129: float max_value) { On 2016/09/19 15:41:17, bokan wrote: > ...
4 years, 3 months ago (2016-09-19 16:07:21 UTC) #18
bokan
ok, code is fine, just needs a test. https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_animation_controller_thinning.cc#newcode129 cc/input/scrollbar_animation_controller_thinning.cc:129: float ...
4 years, 3 months ago (2016-09-19 16:19:27 UTC) #19
sahel
4 years, 3 months ago (2016-09-23 20:10:38 UTC) #27
bokan
https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode70 cc/input/scrollbar_animation_controller_thinning_unittest.cc:70: Nit: spurious new line https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode110 cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); DidScrollUpdate gets ...
4 years, 3 months ago (2016-09-23 20:15:18 UTC) #28
sahel
https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode110 cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); On 2016/09/23 20:15:18, bokan wrote: > DidScrollUpdate gets ...
4 years, 3 months ago (2016-09-23 20:25:11 UTC) #29
bokan
lgtm https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_animation_controller_thinning_unittest.cc#newcode110 cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); On 2016/09/23 20:25:11, sahel wrote: > On ...
4 years, 3 months ago (2016-09-23 20:26:03 UTC) #30
aelias_OOO_until_Jul13
lgtm
4 years, 3 months ago (2016-09-23 21:57:44 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2345823003/60001
4 years, 2 months ago (2016-09-29 19:50:40 UTC) #44
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 2 months ago (2016-09-29 19:56:38 UTC) #46
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 19:58:40 UTC) #48
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/38991f06ebb579440a3bf3f3fbb8792a60b610d4
Cr-Commit-Position: refs/heads/master@{#421910}

Powered by Google App Engine
This is Rietveld 408576698