DescriptionRefactor 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 #
Messages
Total messages: 12 (0 generated)
|