Bug 160609 - marquee with "truespeed" animates at > 60fps, hogging CPU
Summary: marquee with "truespeed" animates at > 60fps, hogging CPU
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-08-05 14:15 PDT by Simon Fraser (smfr)
Modified: 2016-08-05 15:35 PDT (History)
2 users (show)

See Also:


Attachments
Patch (135.53 KB, patch)
2016-08-05 14:22 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2016-08-05 14:15:57 PDT
LayoutTests/fast/html/marquee-scroll.html shows a problem where a marquee like:

<marquee width="50%" behavior="slide" bgcolor="cyan" truespeed="" scrollDelay="0">

triggers animation with a zero-delay timer, which is way faster than 60fps and eats CPU.

It's also notable that the test fails to animate the marquee at all, yet still triggers massive numbers of repaints.
Comment 1 Simon Fraser (smfr) 2016-08-05 14:16:09 PDT
rdar://problem/27722559
Comment 2 Simon Fraser (smfr) 2016-08-05 14:22:13 PDT
Created attachment 285452 [details]
Patch
Comment 3 Dave Hyatt 2016-08-05 14:22:55 PDT
Comment on attachment 285452 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2016-08-05 15:35:36 PDT
Comment on attachment 285452 [details]
Patch

Clearing flags on attachment: 285452

Committed r204197: <http://trac.webkit.org/changeset/204197>
Comment 5 WebKit Commit Bot 2016-08-05 15:35:39 PDT
All reviewed patches have been landed.  Closing bug.