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

Issue 524373003: Scrollbar ThumbLength is not updated when window size is changed. (Closed)

Created:
6 years, 3 months ago by MuVen
Modified:
6 years, 3 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org, Sikugu_, trchen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Scrollbar ThumbLength is not updated, when window size is changed. When a pop-up is opened the window size is 367 and content size is 451 and scrollbar of thumblength 202 is created. Pop-Window height has been resized to 451 because of JS . Before resizing of Pop-Window scrollbar thumb_length of 202 is been applied. After resizing Pop-Window vertical scrollbar is disabled during UpdateScrollbarGeometry(has_thumb_ = false). Now When PaintedScrollbarLayer::UpdateThumbAndTrackGeometry is called after pop-up window resize, as has_thumb_ = false , UpdateProperty on thumb_length_ is not applied, due to which we are seeing the unwanted scrollbar BUG=400136 Committed: https://crrev.com/ba7e0499e10b1c65ead54148a7582e0c60be6c6d Cr-Commit-Position: refs/heads/master@{#293218}

Patch Set 1 #

Patch Set 2 : added variable has_thumb_pre_ (previously) #

Total comments: 5

Patch Set 3 : Added Test Case #

Patch Set 4 : Modified Variable Name #

Total comments: 1

Patch Set 5 : addressed review comments #

Total comments: 4

Patch Set 6 : addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -0 lines) Patch
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
M cc/test/fake_scrollbar.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
MuVen
PTAL.
6 years, 3 months ago (2014-09-01 14:11:36 UTC) #2
Sikugu_
https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode45 cc/layers/painted_scrollbar_layer.cc:45: has_thumb_pre_(false) { can we have some better name here ...
6 years, 3 months ago (2014-09-01 14:46:20 UTC) #4
danakj
Please leave a blank line between your first-line patch title and the description below it. ...
6 years, 3 months ago (2014-09-02 16:23:06 UTC) #5
MuVen
https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode193 cc/layers/painted_scrollbar_layer.cc:193: if ((has_thumb_ != has_thumb_pre_) || has_thumb_) { When "Pin ...
6 years, 3 months ago (2014-09-02 16:42:04 UTC) #6
MuVen
Updated Bug 400136 with clear analysis. PTAL. Thanks,
6 years, 3 months ago (2014-09-02 17:29:47 UTC) #7
danakj
https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode193 cc/layers/painted_scrollbar_layer.cc:193: if ((has_thumb_ != has_thumb_pre_) || has_thumb_) { On 2014/09/02 ...
6 years, 3 months ago (2014-09-02 18:38:56 UTC) #8
MuVen
PTAL. Test case added. https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/20001/cc/layers/painted_scrollbar_layer.cc#newcode193 cc/layers/painted_scrollbar_layer.cc:193: if ((has_thumb_ != has_thumb_pre_) || ...
6 years, 3 months ago (2014-09-03 07:04:39 UTC) #10
danakj
https://codereview.chromium.org/524373003/diff/60001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/60001/cc/layers/painted_scrollbar_layer.cc#newcode193 cc/layers/painted_scrollbar_layer.cc:193: if ((cache_has_thumb_ != has_thumb_) || has_thumb_) { I mean ...
6 years, 3 months ago (2014-09-03 15:38:27 UTC) #11
MuVen
On 2014/09/03 15:38:27, danakj wrote: > https://codereview.chromium.org/524373003/diff/60001/cc/layers/painted_scrollbar_layer.cc > File cc/layers/painted_scrollbar_layer.cc (right): > > https://codereview.chromium.org/524373003/diff/60001/cc/layers/painted_scrollbar_layer.cc#newcode193 > ...
6 years, 3 months ago (2014-09-03 17:00:13 UTC) #12
danakj
https://codereview.chromium.org/524373003/diff/80001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/80001/cc/layers/painted_scrollbar_layer.cc#newcode204 cc/layers/painted_scrollbar_layer.cc:204: if (track_rect_.IsEmpty() || scaled_track_rect.IsEmpty()) This function never destroys the ...
6 years, 3 months ago (2014-09-03 17:20:51 UTC) #13
MuVen
changes done as you have suggested. PTAL. Thanks. https://codereview.chromium.org/524373003/diff/80001/cc/layers/painted_scrollbar_layer.cc File cc/layers/painted_scrollbar_layer.cc (right): https://codereview.chromium.org/524373003/diff/80001/cc/layers/painted_scrollbar_layer.cc#newcode204 cc/layers/painted_scrollbar_layer.cc:204: if ...
6 years, 3 months ago (2014-09-03 18:08:47 UTC) #14
danakj
LGTM
6 years, 3 months ago (2014-09-03 19:12:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sataya.m@samsung.com/524373003/100001
6 years, 3 months ago (2014-09-03 19:17:38 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001) as c3dd07554fd3791e55862ff02bc5ea4040b2fd3b
6 years, 3 months ago (2014-09-03 23:36:15 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:28:26 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/ba7e0499e10b1c65ead54148a7582e0c60be6c6d
Cr-Commit-Position: refs/heads/master@{#293218}

Powered by Google App Engine
This is Rietveld 408576698