|
|
Chromium Code Reviews
DescriptionOverlay 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. #
Messages
Total messages: 48 (35 generated)
Description was changed from ========== 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 temprorarily invalid scrollbar->Opacity() doesn't set the opacity to zero. BUG=635629 ========== to ========== 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 temprorarily invalid scrollbar->Opacity() doesn't set the opacity to zero. BUG=635629 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
Description was changed from ========== 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 temprorarily invalid scrollbar->Opacity() doesn't set the opacity to zero. BUG=635629 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== 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. BUG=635629 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
sahel@chromium.org changed reviewers: + bokan@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
Patchset #1 (id:1) has been deleted
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
sahel@chromium.org changed reviewers: + reveman@chromium.org
reveman@chromium.org: Please review changes in
reveman@chromium.org changed reviewers: + davemoore@chromium.org
+davemoore
Looks fine to me. Needs a test though, please look at add one to the unittests. I don't think davemoore@ works on Chromium anymore... https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning.cc:129: float max_value) { I don't see a need for these to be params. Just inline the kIdleOpacity and 1 below.
https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning.cc:129: float max_value) { On 2016/09/19 15:41:17, bokan wrote: > I don't see a need for these to be params. Just inline the kIdleOpacity and 1 > below. The function is called for adjusting scale of both opacity and thickness. That's why I didn't inline the ranges.
ok, code is fine, just needs a test. https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning.cc (right): https://codereview.chromium.org/2345823003/diff/20001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning.cc:129: float max_value) { On 2016/09/19 16:07:21, sahel wrote: > On 2016/09/19 15:41:17, bokan wrote: > > I don't see a need for these to be params. Just inline the kIdleOpacity and 1 > > below. > > The function is called for adjusting scale of both opacity and thickness. That's > why I didn't inline the ranges. Ah, sorry, I missed that. In that case this is fine.
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
Description was changed from ========== 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. BUG=635629 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== 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 ==========
sahel@chromium.org changed reviewers: - davemoore@chromium.org
sahel@chromium.org changed reviewers: + aelias@chromium.org - reveman@chromium.org
https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning_unittest.cc:70: Nit: spurious new line https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); DidScrollUpdate gets called when we scroll though, right? Currently, the scrollbars appear after the user scrolls. Does this test fail without your fix?
https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); On 2016/09/23 20:15:18, bokan wrote: > DidScrollUpdate gets called when we scroll though, right? Currently, the > scrollbars appear after the user scrolls. Does this test fail without your fix? It get's called when we are scrolling, AND during pushPropertiesTo, and the latter call causes the bug on load, because it's getting called without scrolling and during sets the opacity_change_ to be DECREASE. Yes, it fails without this fix.
lgtm https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... File cc/input/scrollbar_animation_controller_thinning_unittest.cc (right): https://codereview.chromium.org/2345823003/diff/40001/cc/input/scrollbar_anim... cc/input/scrollbar_animation_controller_thinning_unittest.cc:110: scrollbar_controller_->DidScrollUpdate(false); On 2016/09/23 20:25:11, sahel wrote: > On 2016/09/23 20:15:18, bokan wrote: > > DidScrollUpdate gets called when we scroll though, right? Currently, the > > scrollbars appear after the user scrolls. Does this test fail without your > fix? > > It get's called when we are scrolling, AND during pushPropertiesTo, > and the latter call causes the bug on load, because it's getting called without > scrolling and during sets the opacity_change_ to be DECREASE. > > Yes, it fails without this fix. Got it. Thanks!
lgtm
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by sahel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by sahel@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from bokan@chromium.org, aelias@chromium.org Link to the patchset: https://codereview.chromium.org/2345823003/#ps60001 (title: "nit fixed.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/38991f06ebb579440a3bf3f3fbb8792a60b610d4 Cr-Commit-Position: refs/heads/master@{#421910} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
