WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
125282
Fire resize events with requestAnimationFrame timing
https://bugs.webkit.org/show_bug.cgi?id=125282
Summary
Fire resize events with requestAnimationFrame timing
Ryosuke Niwa
Reported
2013-12-04 23:31:07 PST
Consider merging
https://chromium.googlesource.com/chromium/blink/+/06d7a82b8c341d928f65799d106d4443aca0fd72
Instead of spamming resize events when there are repeated layouts that cause iframes to resize we can delay the event until raf timing so that we only need to fire at most one per 16ms. This should reduce the number of resize events dramatically on a page that is causing synchronous layouts in JS that are making iframes change size.
Attachments
Add attachment
proposed patch, testcase, etc.
Simon Fraser (smfr)
Comment 1
2013-12-05 08:52:25 PST
Sounds good in theory, but I'm not sure we want to overhead of a CVDisplayLink (which drives rAF) just to fire resize events?
Antti Koivisto
Comment 2
2013-12-05 11:17:05 PST
Yeah, seems like a good idea.
Simon Fraser (smfr)
Comment 3
2020-07-27 20:24:45 PDT
We fire resize events from runResizeSteps() via Page::updateRendering() now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug