NEW 125398
Don't recalc all styles when adding @keyframes, @import and @page
https://bugs.webkit.org/show_bug.cgi?id=125398
Summary Don't recalc all styles when adding @keyframes, @import and @page
Ryosuke Niwa
Reported 2013-12-07 13:33:01 PST
Consider merging https://chromium.googlesource.com/chromium/blink/+/bd8fbc63697a3ac187ee70e7a39ae1c5e039062c This applies to @import and @page rules as well. There are probably other rule types which we could be smarter about, but @keyframes is most common. I wish I had a good way to test this. I considered writing an inspector-timeline test, or adding a "style recalc count" to settings.internals. I think long-term we should consider exposing recalc information as part of window.performance? But for now there doesn't seem to be a nice way to test this change. Elliott and I discovered when writing/reviewing this that adding @keyframes after an animation is first created has no effect in WebKit/Blink. It should! I've filed: http://crbug.com/307760
Attachments
Note You need to log in before you can comment on or make changes to this bug.