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

Issue 2105523002: Don't set shownRatio in main thread top controls on animated state change. (Closed)

Created:
4 years, 5 months ago by bokan
Modified:
4 years, 5 months ago
Reviewers:
majidvp
CC:
chromium-reviews, blink-reviews, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't set shownRatio in main thread top controls on animated state change. In r399036 I made the main thread set the shown ratio as soon as a state change came in so that the updated window height would be available to script immediately. This causes problems when the state change is animated since the compositor thread will try to animate to the state and it'll fight with the commited value coming from the main thread. This CL simply disables the main thread behavior when the state change should be animated, relying on the compositor to drive the animation. BUG=623183 Committed: https://crrev.com/849f8df4aa51c333cd14286b51673acc90e9b862 Cr-Commit-Position: refs/heads/master@{#402867}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed Feedback #

Total comments: 2

Patch Set 3 : Mirror CC #

Patch Set 4 : Improved test a bit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -6 lines) Patch
M third_party/WebKit/Source/core/frame/TopControls.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/TopControls.cpp View 1 2 1 chunk +19 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/TopControlsTest.cpp View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2105523002/1
4 years, 5 months ago (2016-06-27 22:12:56 UTC) #2
bokan
Majid, ptal.
4 years, 5 months ago (2016-06-27 22:13:03 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 01:37:20 UTC) #7
majidvp
Your CL description refers to the wrong commit. I think you meant r399036. https://codereview.chromium.org/2105523002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File ...
4 years, 5 months ago (2016-06-28 19:52:20 UTC) #8
bokan
https://codereview.chromium.org/2105523002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2105523002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode1842 third_party/WebKit/Source/web/WebViewImpl.cpp:1842: topControls().setShownRatio(0.f); On 2016/06/28 19:52:20, majidvp wrote: > Maybe it ...
4 years, 5 months ago (2016-06-28 23:15:33 UTC) #10
bokan
On 2016/06/28 19:52:20, majidvp wrote: > Your CL description refers to the wrong commit. I ...
4 years, 5 months ago (2016-06-28 23:15:46 UTC) #11
majidvp
https://codereview.chromium.org/2105523002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp File third_party/WebKit/Source/core/frame/TopControls.cpp (right): https://codereview.chromium.org/2105523002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp#newcode109 third_party/WebKit/Source/core/frame/TopControls.cpp:109: switch (current) { Sorry to go back and forth ...
4 years, 5 months ago (2016-06-29 13:56:09 UTC) #12
bokan
https://codereview.chromium.org/2105523002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp File third_party/WebKit/Source/core/frame/TopControls.cpp (right): https://codereview.chromium.org/2105523002/diff/20001/third_party/WebKit/Source/core/frame/TopControls.cpp#newcode109 third_party/WebKit/Source/core/frame/TopControls.cpp:109: switch (current) { On 2016/06/29 13:56:09, majidvp wrote: > ...
4 years, 5 months ago (2016-06-29 16:23:01 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2105523002/60001
4 years, 5 months ago (2016-06-29 16:23:44 UTC) #15
majidvp
On 2016/06/29 16:23:44, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 5 months ago (2016-06-29 16:50:58 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 17:42:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2105523002/60001
4 years, 5 months ago (2016-06-29 17:46:14 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 17:57:54 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 17:58:19 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 17:59:19 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/849f8df4aa51c333cd14286b51673acc90e9b862
Cr-Commit-Position: refs/heads/master@{#402867}

Powered by Google App Engine
This is Rietveld 408576698