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

Issue 314583008: Refactor ScrollView::updateScrollbars() (Closed)

Created:
6 years, 6 months ago by trchen
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr
Visibility:
Public.

Description

Refactor ScrollView::updateScrollbars() This CL splits ScrollView::updateScrollbars() into 3 independent helper functions, namely: computeScrollbarExistence() computes whether scrollbars are needed given the current ScrollView state. adjustScrollbarExistence() creates/removes scrollbars and invoke appropriate callbacks to update layout (if applicable). updateScrollbarGeometry() positions the scrollbars and pushes the scroll extents. Also we no longer do update scrollbar passes in recursion. Instead we do it in a loop and early exits if updateScrollbars() is re-entered. No tests as there should be no behavior difference. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175852

Patch Set 1 #

Total comments: 10

Patch Set 2 : revised #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -106 lines) Patch
M Source/platform/scroll/ScrollView.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
M Source/platform/scroll/ScrollView.cpp View 1 6 chunks +101 lines, -103 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
trchen
Hello James, Do you have a few minutes to look at this CL? This CL ...
6 years, 6 months ago (2014-06-03 22:59:41 UTC) #1
jamesr
I think somebody who has been working in this area lately should review - I ...
6 years, 6 months ago (2014-06-03 23:28:59 UTC) #2
trchen
Hello Eric, Do you have a few minutes to look at this CL? Thanks!
6 years, 6 months ago (2014-06-03 23:56:24 UTC) #3
eseidel
Julien is probably your best reviewer,but if he hasn't taken care of this by tomorrow ...
6 years, 6 months ago (2014-06-03 23:59:26 UTC) #4
Julien - ping for review
https://codereview.chromium.org/314583008/diff/1/Source/platform/scroll/ScrollView.cpp File Source/platform/scroll/ScrollView.cpp (left): https://codereview.chromium.org/314583008/diff/1/Source/platform/scroll/ScrollView.cpp#oldcode395 Source/platform/scroll/ScrollView.cpp:395: ScrollableArea::setScrollOrigin(IntPoint(scrollOrigin().x(), scrollOrigin().y() - m_horizontalScrollbar->height())); Don't we need to keep ...
6 years, 6 months ago (2014-06-05 21:10:04 UTC) #5
trchen
Thanks for reviewing! I'll upload a corrected CL soon. https://codereview.chromium.org/314583008/diff/1/Source/platform/scroll/ScrollView.cpp File Source/platform/scroll/ScrollView.cpp (left): https://codereview.chromium.org/314583008/diff/1/Source/platform/scroll/ScrollView.cpp#oldcode395 Source/platform/scroll/ScrollView.cpp:395: ...
6 years, 6 months ago (2014-06-05 23:55:27 UTC) #6
trchen
Patch Set 2 uploaded.
6 years, 6 months ago (2014-06-06 00:10:16 UTC) #7
trchen
Ping?
6 years, 6 months ago (2014-06-09 22:28:51 UTC) #8
Julien - ping for review
lgtm
6 years, 6 months ago (2014-06-10 02:45:38 UTC) #9
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 6 months ago (2014-06-10 03:00:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/314583008/20001
6 years, 6 months ago (2014-06-10 03:00:58 UTC) #11
commit-bot: I haz the power
6 years, 6 months ago (2014-06-10 04:07:37 UTC) #12
Message was sent while issue was closed.
Change committed as 175852

Powered by Google App Engine
This is Rietveld 408576698