Changeset 24014 in webkit


Ignore:
Timestamp:
Jul 5, 2007 6:43:44 AM (17 years ago)
Author:
bdash
Message:

2007-07-05 Alp Toker <alp.toker@collabora.co.uk>

Reviewed by Mark Rowe.

http://bugs.webkit.org/show_bug.cgi?id=14513
Cairo animated GIF support is broken

Implement ImageSource::frameIsCompleteAtIndex() to enable animated GIFs.

  • platform/graphics/cairo/ImageSourceCairo.cpp: (WebCore::ImageSource::frameIsCompleteAtIndex):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24005 r24014  
     12007-07-05  Alp Toker  <alp.toker@collabora.co.uk>
     2
     3        Reviewed by Mark Rowe.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=14513
     6        Cairo animated GIF support is broken
     7
     8        Implement ImageSource::frameIsCompleteAtIndex() to enable animated GIFs.
     9
     10        * platform/graphics/cairo/ImageSourceCairo.cpp:
     11        (WebCore::ImageSource::frameIsCompleteAtIndex):
     12
    1132007-07-04  Matt Perry  <mpComplete@gmail.com>
    214
  • trunk/WebCore/platform/graphics/cairo/ImageSourceCairo.cpp

    r20417 r24014  
    11/*
    22 * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
     3 * Copyright (C) 2007 Alp Toker <alp.toker@collabora.co.uk>
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    164165}
    165166
    166 bool ImageSource::frameIsCompleteAtIndex(size_t)
    167 {
    168     // FIXME: write me. Returning false makes the animation not run
    169     return false;
     167bool ImageSource::frameIsCompleteAtIndex(size_t index)
     168{
     169    if (!m_decoder)
     170        return false;
     171
     172    RGBA32Buffer* buffer = m_decoder->frameBufferAtIndex(index);
     173    return buffer && buffer->status() == RGBA32Buffer::FrameComplete;
    170174}
    171175
Note: See TracChangeset for help on using the changeset viewer.