Bug 116744 - Animated GIFs don't repaint after TCADA un-suspends painting
Summary: Animated GIFs don't repaint after TCADA un-suspends painting
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-05-24 15:55 PDT by Tim Horton
Modified: 2013-05-24 16:38 PDT (History)
3 users (show)

See Also:


Attachments
patch (4.96 KB, patch)
2013-05-24 15:57 PDT, Tim Horton
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2013-05-24 15:55:14 PDT
<rdar://problem/13973514>
Comment 1 Tim Horton 2013-05-24 15:57:45 PDT
Created attachment 202861 [details]
patch
Comment 2 Simon Fraser (smfr) 2013-05-24 16:23:18 PDT
Comment on attachment 202861 [details]
patch

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

> Source/WebCore/ChangeLog:3
> +        Animated GIFs don't repaint after TCADA un-suspends painting

TCADA wut?

> Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:391
> +    if (m_webPage->windowIsVisible()) {
>          m_webPage->corePage()->resumeScriptedAnimations();
> +        m_webPage->corePage()->mainFrame()->view()->resumeAnimatingImages();
> +    }

Weird that this is in WK2 code. Are all of m_webPage->corePage()->mainFrame()->view() always non-null?
Comment 3 Tim Horton 2013-05-24 16:34:36 PDT
(In reply to comment #2)
> (From update of attachment 202861 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=202861&action=review
> 
> > Source/WebCore/ChangeLog:3
> > +        Animated GIFs don't repaint after TCADA un-suspends painting
> 
> TCADA wut?

I'll fix that.

> > Source/WebKit2/WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:391
> > +    if (m_webPage->windowIsVisible()) {
> >          m_webPage->corePage()->resumeScriptedAnimations();
> > +        m_webPage->corePage()->mainFrame()->view()->resumeAnimatingImages();
> > +    }
> 
> Weird that this is in WK2 code.

A little, but no weirder than resumeScriptedAnimations.

> Are all of m_webPage->corePage()->mainFrame()->view() always non-null?

flushLayers depends on all of them being non-null as well, but other code null-checks frame and frameView. I'm never sure. I don't see any clear guarantee that frame or its view are non-null, so I'll check them.
Comment 4 Tim Horton 2013-05-24 16:38:00 PDT
https://trac.webkit.org/r150666