Changeset 158103 in webkit
- Timestamp:
- Oct 28, 2013 2:29:14 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r158102 r158103 1 2013-10-28 Bastien Nocera <hadess@hadess.net> 2 3 Replace 0 timeouts g_timeout_add() by g_idle_add() 4 https://bugs.webkit.org/show_bug.cgi?id=123260 5 6 Reviewed by Carlos Garcia Campos. 7 8 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...) 9 without the nagging feeling that the wrong API was used. 10 11 * wtf/gtk/MainThreadGtk.cpp: Use g_idle_add() instead 12 of 0-timer. 13 (WTF::scheduleDispatchFunctionsOnMainThread): 14 1 15 2013-10-28 Zan Dobersek <zdobersek@igalia.com> 2 16 -
trunk/Source/WTF/wtf/gtk/MainThreadGtk.cpp
r111778 r158103 47 47 void scheduleDispatchFunctionsOnMainThread() 48 48 { 49 g_ timeout_add(0, timeoutFired, 0);49 g_idle_add_full(G_PRIORITY_DEFAULT, timeoutFired, 0, 0); 50 50 } 51 51 -
trunk/Source/WebCore/ChangeLog
r158102 r158103 1 2013-10-28 Bastien Nocera <hadess@hadess.net> 2 3 Replace 0 timeouts g_timeout_add() by g_idle_add() 4 https://bugs.webkit.org/show_bug.cgi?id=123260 5 6 Reviewed by Carlos Garcia Campos. 7 8 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...) 9 without the nagging feeling that the wrong API was used. 10 11 No new tests, no change in functionality. 12 13 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: Use g_idle_add() instead 14 of 0-timer. 15 (WebCore::MediaPlayerPrivateGStreamer::videoChanged): 16 (WebCore::MediaPlayerPrivateGStreamer::audioChanged): 17 * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: Ditto. 18 (WebCore::MediaPlayerPrivateGStreamerBase::volumeChanged): 19 (WebCore::MediaPlayerPrivateGStreamerBase::muteChanged): 20 * platform/gtk/GtkDragAndDropHelper.cpp: Ditto. 21 (WebCore::GtkDragAndDropHelper::handleDragLeave): 22 1 23 2013-10-28 Zan Dobersek <zdobersek@igalia.com> 2 24 -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
r157834 r158103 628 628 if (m_videoTimerHandler) 629 629 g_source_remove(m_videoTimerHandler); 630 m_videoTimerHandler = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateVideoChangeTimeoutCallback), this);630 m_videoTimerHandler = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateVideoChangeTimeoutCallback), this, 0); 631 631 } 632 632 … … 650 650 if (m_audioTimerHandler) 651 651 g_source_remove(m_audioTimerHandler); 652 m_audioTimerHandler = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateAudioChangeTimeoutCallback), this);652 m_audioTimerHandler = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateAudioChangeTimeoutCallback), this, 0); 653 653 } 654 654 -
trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
r157624 r158103 267 267 if (m_volumeTimerHandler) 268 268 g_source_remove(m_volumeTimerHandler); 269 m_volumeTimerHandler = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateVolumeChangeTimeoutCallback), this);269 m_volumeTimerHandler = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateVolumeChangeTimeoutCallback), this, 0); 270 270 } 271 271 … … 319 319 if (m_muteTimerHandler) 320 320 g_source_remove(m_muteTimerHandler); 321 m_muteTimerHandler = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateMuteChangeTimeoutCallback), this);321 m_muteTimerHandler = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(mediaPlayerPrivateMuteChangeTimeoutCallback), this, 0); 322 322 } 323 323 -
trunk/Source/WebCore/platform/gtk/GtkDragAndDropHelper.cpp
r157058 r158103 114 114 data->context->exitedCallback = exitedCallback; 115 115 data->glue = this; 116 g_ timeout_add(0, reinterpret_cast<GSourceFunc>(handleDragLeaveLaterCallback), data);116 g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(handleDragLeaveLaterCallback), data, 0); 117 117 } 118 118 -
trunk/Source/WebKit/gtk/ChangeLog
r157711 r158103 1 2013-10-28 Bastien Nocera <hadess@hadess.net> 2 3 Replace 0 timeouts g_timeout_add() by g_idle_add() 4 https://bugs.webkit.org/show_bug.cgi?id=123260 5 6 Reviewed by Carlos Garcia Campos. 7 8 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...) 9 without the nagging feeling that the wrong API was used. 10 11 * WebCoreSupport/ChromeClientGtk.cpp: Use g_idle_add() instead 12 of 0-timer. 13 (WebKit::ChromeClient::closeWindowSoon): 14 (WebKit::ChromeClient::widgetSizeChanged): 15 * WebCoreSupport/GtkAdjustmentWatcher.cpp: Ditto. 16 (WebKit::GtkAdjustmentWatcher::updateAdjustmentsFromScrollbarsLater): 17 * webkit/webkitwebview.cpp: Ditto. 18 (webkit_web_view_get_subresources): 19 1 20 2013-10-21 Zan Dobersek <zdobersek@igalia.com> 2 21 -
trunk/Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp
r157534 r158103 336 336 // Instead of firing the close-web-view signal now, fire it after the caller finishes. 337 337 // This seems to match the Mac/Windows port behavior. 338 m_closeSoonTimer = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(emitCloseWebViewSignalLater), m_webView);338 m_closeSoonTimer = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(emitCloseWebViewSignalLater), m_webView, 0); 339 339 } 340 340 … … 520 520 // resize is on, thus we use g_timeout_add here to force a higher timeout priority. 521 521 if (!m_repaintSoonSourceId) 522 m_repaintSoonSourceId = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(repaintEverythingSoonTimeout), this);522 m_repaintSoonSourceId = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(repaintEverythingSoonTimeout), this, 0); 523 523 } 524 524 -
trunk/Source/WebKit/gtk/WebCoreSupport/GtkAdjustmentWatcher.cpp
r156543 r158103 91 91 // time of invocation they are not updated to reflect the scroll yet. We set a short timeout 92 92 // here, which means that they will be updated as soon as WebKit returns to the main loop. 93 m_updateAdjustmentCallbackId = g_ timeout_add(0, reinterpret_cast<GSourceFunc>(updateAdjustmentCallback),94 const_cast<void*>(static_cast<const void*>(this)));93 m_updateAdjustmentCallbackId = g_idle_add_full(G_PRIORITY_DEFAULT, reinterpret_cast<GSourceFunc>(updateAdjustmentCallback), 94 const_cast<void*>(static_cast<const void*>(this)), 0); 95 95 } 96 96 -
trunk/Tools/ChangeLog
r158002 r158103 1 2013-10-28 Bastien Nocera <hadess@hadess.net> 2 3 Replace 0 timeouts g_timeout_add() by g_idle_add() 4 https://bugs.webkit.org/show_bug.cgi?id=123260 5 6 Reviewed by Carlos Garcia Campos. 7 8 A zero timeout should be equivalent to using g_idle_add_full(G_PRIORITY_DEFAULT, ...) 9 without the nagging feeling that the wrong API was used. 10 11 * DumpRenderTree/gtk/DumpRenderTree.cpp: Use g_idle_add() instead 12 of 0-timer. 13 (topLoadingFrameLoadFinished): 14 * DumpRenderTree/gtk/EventSender.cpp: Ditto. 15 (scheduleAsynchronousClickCallback): 16 (scheduleAsynchronousKeyDownCallback): 17 1 18 2013-10-25 Anton Obzhirov <a.obzhirov@samsung.com> 2 19 -
trunk/Tools/DumpRenderTree/gtk/DumpRenderTree.cpp
r156683 r158103 1122 1122 1123 1123 if (WorkQueue::shared()->count()) 1124 g_ timeout_add(0, processWork, 0);1124 g_idle_add_full(G_PRIORITY_DEFAULT, processWork, 0, 0); 1125 1125 else 1126 1126 dump(); -
trunk/Tools/DumpRenderTree/gtk/EventSender.cpp
r152718 r158103 256 256 static JSValueRef scheduleAsynchronousClickCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 257 257 { 258 g_ timeout_add(0, sendClick, 0);258 g_idle_add_full(G_PRIORITY_DEFAULT, sendClick, 0, 0); 259 259 return JSValueMakeUndefined(context); 260 260 } … … 907 907 GdkEvent* pressEvent = createKeyPressEvent(context, argumentCount, arguments, exception); 908 908 if (pressEvent) 909 g_ timeout_add(0, sendAsynchronousKeyDown, static_cast<gpointer>(pressEvent));909 g_idle_add_full(G_PRIORITY_DEFAULT, sendAsynchronousKeyDown, static_cast<gpointer>(pressEvent), 0); 910 910 911 911 return JSValueMakeUndefined(context);
Note: See TracChangeset
for help on using the changeset viewer.