Changeset 76515 in webkit
- Timestamp:
- Jan 24, 2011 6:46:15 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r76514 r76515 1 2011-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 1 15 2011-01-21 Mikhail Naganov <mnaganov@chromium.org> 2 16 -
trunk/Source/WebCore/platform/graphics/qt/ContextShadowQt.cpp
r76260 r76515 58 58 ShadowBuffer::ShadowBuffer(QObject* parent) 59 59 : QObject(parent) 60 , timerId( 0)60 , timerId(-1) 61 61 { 62 62 } … … 90 90 { 91 91 static const double BufferPurgeDelay = 2; // seconds 92 killTimer(timerId); 92 if (timerId >= 0) 93 killTimer(timerId); 93 94 timerId = startTimer(BufferPurgeDelay * 1000); 94 95 }
Note: See TracChangeset
for help on using the changeset viewer.