Changeset 76515 in webkit


Ignore:
Timestamp:
Jan 24, 2011 6:46:15 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2011-01-24 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Fix warnings about unregistering an invalid timer
https://bugs.webkit.org/show_bug.cgi?id=53006

The ShadowBuffer's purge timer ID was initialized with 0 which lead
to us calling QObject::killTimer(0), causing some qWarnings.

  • platform/graphics/qt/ContextShadowQt.cpp: (WebCore::ShadowBuffer::ShadowBuffer): (WebCore::ShadowBuffer::schedulePurge):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r76514 r76515  
     12011-01-24  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Fix warnings about unregistering an invalid timer
     6        https://bugs.webkit.org/show_bug.cgi?id=53006
     7
     8        The ShadowBuffer's purge timer ID was initialized with 0 which lead
     9        to us calling QObject::killTimer(0), causing some qWarnings.
     10
     11        * platform/graphics/qt/ContextShadowQt.cpp:
     12        (WebCore::ShadowBuffer::ShadowBuffer):
     13        (WebCore::ShadowBuffer::schedulePurge):
     14
    1152011-01-21  Mikhail Naganov  <mnaganov@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/qt/ContextShadowQt.cpp

    r76260 r76515  
    5858ShadowBuffer::ShadowBuffer(QObject* parent)
    5959    : QObject(parent)
    60     , timerId(0)
     60    , timerId(-1)
    6161{
    6262}
     
    9090{
    9191    static const double BufferPurgeDelay = 2; // seconds
    92     killTimer(timerId);
     92    if (timerId >= 0)
     93        killTimer(timerId);
    9394    timerId = startTimer(BufferPurgeDelay * 1000);
    9495}
Note: See TracChangeset for help on using the changeset viewer.