Closed Bug 1589288 Opened 5 years ago Closed 5 years ago

[wpt-sync] Sync PR 19747 - autofoucs: Change the timing of 'flush autofocus candidates'

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 19747 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/19747
Details from upstream follow.

Kent Tamura <tkent@chromium.org> wrote:

autofoucs: Change the timing of 'flush autofocus candidates'

  • ScriptedAnimationController kicks Document::FlushAutofocusCandidates
    Now ScriptedAnimationController takes into account of existence of
    autofocus candidates.

  • Document::FlushAutofocusCandidates needs to call
    UpdateStyleAndLayoutTree() for each of candidates.
    IsFocusable() needs up-to-date style. UpdateStyleAndLayoutTree() was
    unnecessary because FlushAutofocusCandidates() was called after
    layout.

Bug: 1015275
Change-Id: I06dcb9b3cd2564d35fba3f893e7ce4b8736c91bf

Reviewed-on: https://chromium-review.googlesource.com/1863067
WPT-Export-Revision: 250b40e737bff0c00696fe1baa9da8cf55d2ab56

PR 19747 applied with additional changes from upstream: 466c1de3860a2d017b2c8153d43249659a85fff1
Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/8b35844f4d62
[wpt PR 19747] - autofocus: Change the timing of 'flush autofocus candidates', a=testonly
https://hg.mozilla.org/integration/mozilla-inbound/rev/509ef7f44281
[wpt PR 19747] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.