Bug 216132

Summary: Make AudioParam.cancelScheduledValues() standards compliant
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric.carlson, ews-watchlist, ggaren, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 212611    
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2020-09-03 11:10:44 PDT
Make AudioParam.cancelScheduledValues() standards compliant.
Comment 1 Chris Dumez 2020-09-03 11:16:35 PDT
Created attachment 407895 [details]
Patch
Comment 2 Geoffrey Garen 2020-09-03 13:04:30 PDT
Comment on attachment 407895 [details]
Patch

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

r=me

> Source/WebCore/Modules/webaudio/AudioParamTimeline.cpp:165
> +        if (eventTime >= cancelTime || ((m_events[i].type() == ParamEvent::SetValueCurve)
> +            && eventTime <= cancelTime && (eventTime + m_events[i].duration() > cancelTime))) {

This condition clause might read more easily as a helper lambda called as "isAfter(m_events[I], cancelTime)".
Comment 3 Chris Dumez 2020-09-03 14:30:08 PDT
Created attachment 407912 [details]
Patch
Comment 4 Chris Dumez 2020-09-03 14:42:49 PDT
Comment on attachment 407912 [details]
Patch

Clearing flags on attachment: 407912

Committed r266558: <https://trac.webkit.org/changeset/266558>
Comment 5 Chris Dumez 2020-09-03 14:42:52 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2020-09-03 14:43:13 PDT
<rdar://problem/68302775>