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

Issue 328023002: Layout overflow from transforms should update frame scrollbars (Closed)

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

Description

Layout overflow from transforms should update frame scrollbars This CL implements frame scrollbar update for the overflow recalc fast path without invoking layout. This fast path first determines whether scrollbars need to be created or removed (in that case, a layout will be needed), and update scrollbars without layout if possible. TEST=fast/transforms/transform-update-frame-overflow.html BUG=354167 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176143

Patch Set 1 #

Patch Set 2 : need to more explicitly prevent scrollbar update #

Total comments: 13

Patch Set 3 : revised #

Patch Set 4 : revised 2 #

Total comments: 1

Patch Set 5 : rebase & revise #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -4 lines) Patch
A LayoutTests/fast/transforms/transform-update-frame-overflow.html View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A LayoutTests/fast/transforms/transform-update-frame-overflow-expected.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 1 chunk +19 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollView.h View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollView.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
trchen
Hello reviewers, This CL completes the transform update fast path, PTAL. Thanks!
6 years, 6 months ago (2014-06-11 00:05:03 UTC) #1
trchen
Uploaded Patch Set 2 which fixes the assertion failure.
6 years, 6 months ago (2014-06-11 02:19:01 UTC) #2
ojan
This looks reasonable to me. Just a bunch of nits. Hopefully some others can also ...
6 years, 6 months ago (2014-06-11 03:04:54 UTC) #3
ojan
https://codereview.chromium.org/328023002/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/328023002/diff/20001/Source/core/frame/FrameView.cpp#newcode653 Source/core/frame/FrameView.cpp:653: setNeedsLayout(); Should this not also call the following? setHasHorizontalScrollbar(shouldHaveHorizontalScrollbar); ...
6 years, 6 months ago (2014-06-11 03:07:24 UTC) #4
trchen
Thanks for reviewing! I also think the scrollbar logic has always been tricky and fragile. ...
6 years, 6 months ago (2014-06-11 05:04:13 UTC) #5
ojan
lgtm Obviously, please address all the comments before committing. https://codereview.chromium.org/328023002/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/328023002/diff/20001/Source/core/frame/FrameView.cpp#newcode644 Source/core/frame/FrameView.cpp:644: ...
6 years, 6 months ago (2014-06-11 05:44:48 UTC) #6
trchen
Thank you! I'll run the bots first. Will commit tomorrow if no objections from other ...
6 years, 6 months ago (2014-06-11 06:01:23 UTC) #7
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 6 months ago (2014-06-11 06:01:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/328023002/80001
6 years, 6 months ago (2014-06-11 06:02:18 UTC) #9
trchen
The CQ bit was unchecked by trchen@chromium.org
6 years, 6 months ago (2014-06-11 06:02:42 UTC) #10
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 6 months ago (2014-06-11 20:40:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/328023002/80001
6 years, 6 months ago (2014-06-11 20:41:57 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-11 21:05:02 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:07:24 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/7474)
6 years, 6 months ago (2014-06-11 21:07:25 UTC) #15
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 6 months ago (2014-06-11 21:53:34 UTC) #16
trchen
The CQ bit was unchecked by trchen@chromium.org
6 years, 6 months ago (2014-06-11 21:53:56 UTC) #17
trchen
Oops, just realize that it still needs owner review for ScrollView. Julien, could you help? ...
6 years, 6 months ago (2014-06-11 21:55:04 UTC) #18
esprehn
lgtm https://codereview.chromium.org/328023002/diff/80001/Source/platform/scroll/ScrollView.h File Source/platform/scroll/ScrollView.h (right): https://codereview.chromium.org/328023002/diff/80001/Source/platform/scroll/ScrollView.h#newcode300 Source/platform/scroll/ScrollView.h:300: explicit InUpdateScrollbarsScope(ScrollView* view) : m_scope(view->m_inUpdateScrollbars, true) { } ...
6 years, 6 months ago (2014-06-13 05:22:22 UTC) #19
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 6 months ago (2014-06-13 22:31:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/328023002/100001
6 years, 6 months ago (2014-06-13 22:32:25 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-14 01:23:50 UTC) #22
Message was sent while issue was closed.
Change committed as 176143

Powered by Google App Engine
This is Rietveld 408576698