WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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
Created
attachment 247887
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug