RESOLVED FIXED 142140
Document::recalcStyle() shouldn't call viewportContentsChanged() if there is a pending layout
https://bugs.webkit.org/show_bug.cgi?id=142140
Summary Document::recalcStyle() shouldn't call viewportContentsChanged() if there is ...
Simon Fraser (smfr)
Reported 2015-02-28 16:33:59 PST
It's wasteful for viewportContentsChanged() to be called from recalcStyle() if a layout is pending, because that's going to move things around, and then we'll call viewportContentsChanged() again.
Attachments
Patch (2.32 KB, patch)
2015-03-04 13:18 PST, Chris Dumez
no flags
Simon Fraser (smfr)
Comment 1 2015-02-28 16:34:58 PST
It's actually positively bad, because resumePausedImageAnimationsIfNeeded() does repaints which assume the render tree is in a valid state.
Chris Dumez
Comment 2 2015-03-04 11:50:55 PST
I am busy with other things right now but I'll try to get to it asap. If someone else want to volunteer to make the change before then, feel free to reassign though.
Chris Dumez
Comment 3 2015-03-04 13:18:42 PST
WebKit Commit Bot
Comment 4 2015-03-05 20:38:42 PST
Comment on attachment 247887 [details] Patch Clearing flags on attachment: 247887 Committed r181133: <http://trac.webkit.org/changeset/181133>
WebKit Commit Bot
Comment 5 2015-03-05 20:38:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.