
Gathering metrics to refit an overlay forces an expensive reflow of the
document, and the gr-reply-dialog was refitting the overlay on each
keystroke causing cascading typing lag in the UI. With this change, the
refit call is debounced.
Bug: Issue 7461
Change-Id: Ie03b81360c7642ecc0703ff2343c46e5ea5cac80
(cherry picked from commit d85a501c58
)