Bug 140142 - Only throttle DOM timers if they change CSS properties that cannot cause non-descendant elements to become visible
Summary: Only throttle DOM timers if they change CSS properties that cannot cause non-...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-06 13:02 PST by Chris Dumez
Modified: 2015-01-13 19:35 PST (History)
6 users (show)

See Also:


Attachments
Patch (8.65 KB, patch)
2015-01-06 13:49 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (1.39 KB, patch)
2015-01-13 16:48 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2015-01-06 13:02:42 PST
Only throttle DOM timers if they change CSS properties that cannot cause non-descendant elements to become visible. For example, a DOM timer may change the height of an element that is outside the viewport. However, changing its height may causes elements inside the viewport to move. As such, we should NOT throttle such DOM timer.
Comment 1 Chris Dumez 2015-01-06 13:49:40 PST
Created attachment 244093 [details]
Patch
Comment 2 WebKit Commit Bot 2015-01-06 18:08:24 PST
Comment on attachment 244093 [details]
Patch

Clearing flags on attachment: 244093

Committed r178014: <http://trac.webkit.org/changeset/178014>
Comment 3 WebKit Commit Bot 2015-01-06 18:08:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Daniel Bates 2015-01-13 16:45:49 PST
Comment on attachment 244093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=244093&action=review

> LayoutTests/fast/dom/timer-height-change-no-throttling.html:31
> +    setTimeout(scrollElementIntoView, 0);

Did you mean to include this line? If so, scrollElementIntoView needs to be defined.
Comment 5 Chris Dumez 2015-01-13 16:46:46 PST
Comment on attachment 244093 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=244093&action=review

>> LayoutTests/fast/dom/timer-height-change-no-throttling.html:31
>> +    setTimeout(scrollElementIntoView, 0);
> 
> Did you mean to include this line? If so, scrollElementIntoView needs to be defined.

No, this line needs to go away.
Comment 6 Chris Dumez 2015-01-13 16:48:35 PST
Reopening to attach new patch.
Comment 7 Chris Dumez 2015-01-13 16:48:38 PST
Created attachment 244563 [details]
Patch
Comment 8 WebKit Commit Bot 2015-01-13 19:35:47 PST
Comment on attachment 244563 [details]
Patch

Clearing flags on attachment: 244563

Committed r178403: <http://trac.webkit.org/changeset/178403>
Comment 9 WebKit Commit Bot 2015-01-13 19:35:53 PST
All reviewed patches have been landed.  Closing bug.