Bug 180832

Summary: [Web Animations] Use is<> when possible
Product: WebKit Reporter: Antoine Quint <graouts>
Component: New BugsAssignee: Antoine Quint <graouts>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch dino: review+

Description Antoine Quint 2017-12-14 13:08:49 PST
[Web Animations] Use is<> when possible
Comment 1 Antoine Quint 2017-12-14 13:09:24 PST
Created attachment 329389 [details]
Patch
Comment 2 Dean Jackson 2017-12-14 13:10:41 PST
Comment on attachment 329389 [details]
Patch

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

> Source/WebCore/animation/WebAnimation.cpp:748
> -        downcast<KeyframeEffect>(*m_effect).startOrStopAccelerated();
> +    if (is<KeyframeEffect>(m_effect))
> +        downcast<KeyframeEffect>(*m_effect).updateAcceleratedPlayState();

Did you intend to make this change?
Comment 3 Antoine Quint 2017-12-14 13:14:10 PST
(In reply to Dean Jackson from comment #2)
> Comment on attachment 329389 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=329389&action=review
> 
> > Source/WebCore/animation/WebAnimation.cpp:748
> > -        downcast<KeyframeEffect>(*m_effect).startOrStopAccelerated();
> > +    if (is<KeyframeEffect>(m_effect))
> > +        downcast<KeyframeEffect>(*m_effect).updateAcceleratedPlayState();
> 
> Did you intend to make this change?

Not with the method change name, will fix in commit.
Comment 4 Antoine Quint 2017-12-14 14:15:33 PST
Committed r225929: <https://trac.webkit.org/changeset/225929>
Comment 5 Radar WebKit Bug Importer 2017-12-14 14:16:47 PST
<rdar://problem/36058088>