|
|
Created:
3 years, 11 months ago by Dan Elphick Modified:
3 years, 11 months ago Reviewers:
majidvp CC:
chromium-reviews, blink-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionReplace unsafe use of requestAnimationFrame and setTimeout in layout test.
Use runAfterLayoutAndPaint instead of requestAnimationFrame and
setTimeout(..., 0) as it's simpler and will continue to work when
setTimeout no longer waits at least 1ms.
BUG=402694
Committed: https://crrev.com/e0a0a27614fda9738ab167ef2dfde92ff7d5b58f
Cr-Commit-Position: refs/heads/master@{#441355}
Patch Set 1 #
Total comments: 2
Patch Set 2 : update comment #Messages
Total messages: 19 (12 generated)
The CQ bit was checked by delphick@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 ========== to ========== Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 ==========
delphick@chromium.org changed reviewers: + majidvp@chromium.org
FYI: https://groups.google.com/a/chromium.org/d/msg/blink-dev/Hn3GxRLXmR0/XP9xcY_g... has a discussion of the correct way to use requestAnimationFrame and setTimeout to execute after a frame is displayed, but runAfterLayoutAndPaint is simpler.
On 2017/01/03 17:40:56, delphick wrote: > FYI: > https://groups.google.com/a/chromium.org/d/msg/blink-dev/Hn3GxRLXmR0/XP9xcY_g... > has a discussion of the correct way to use requestAnimationFrame and setTimeout > to execute after a frame is displayed, but runAfterLayoutAndPaint is simpler. lgtm with nits. nit: Please format the description so that the first line is < 80 lines. Very interesting thread. For the record, there is also [1] which discusses better alternatives to setTimeout(..,0) [1] https://docs.google.com/document/d/1Yl4SnTLBWmY1O99_BTtQvuoffP8YM9HZx2YPkEsad...
https://codereview.chromium.org/2609923002/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html (right): https://codereview.chromium.org/2609923002/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html:42: // Verify we now have a hit rect on the document after waiting a frame. nit: this comment is not longer accurate because we are not waiting for a frame but rather a layout & paint phase. Please update to reflect this.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 ========== to ========== Replace unsafe use of requestAnimationFrame and setTimeout in layout test. Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 ==========
https://codereview.chromium.org/2609923002/diff/1/third_party/WebKit/LayoutTe... File third_party/WebKit/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html (right): https://codereview.chromium.org/2609923002/diff/1/third_party/WebKit/LayoutTe... third_party/WebKit/LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html:42: // Verify we now have a hit rect on the document after waiting a frame. On 2017/01/03 18:22:14, majidvp wrote: > nit: this comment is not longer accurate because we are not waiting for a frame > but rather a layout & paint phase. Please update to reflect this. Done.
The CQ bit was checked by delphick@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from majidvp@chromium.org Link to the patchset: https://codereview.chromium.org/2609923002/#ps20001 (title: "update comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 20001, "attempt_start_ts": 1483521787731840, "parent_rev": "7a4d8ecb105c73d634fab67b3d0e64404eeded44", "commit_rev": "f2b32f19807984329663e1a63d098ba27b171ebc"}
Message was sent while issue was closed.
Description was changed from ========== Replace unsafe use of requestAnimationFrame and setTimeout in layout test. Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 ========== to ========== Replace unsafe use of requestAnimationFrame and setTimeout in layout test. Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 Review-Url: https://codereview.chromium.org/2609923002 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Replace unsafe use of requestAnimationFrame and setTimeout in layout test. Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 Review-Url: https://codereview.chromium.org/2609923002 ========== to ========== Replace unsafe use of requestAnimationFrame and setTimeout in layout test. Use runAfterLayoutAndPaint instead of requestAnimationFrame and setTimeout(..., 0) as it's simpler and will continue to work when setTimeout no longer waits at least 1ms. BUG=402694 Committed: https://crrev.com/e0a0a27614fda9738ab167ef2dfde92ff7d5b58f Cr-Commit-Position: refs/heads/master@{#441355} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/e0a0a27614fda9738ab167ef2dfde92ff7d5b58f Cr-Commit-Position: refs/heads/master@{#441355} |