diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp index 139bf0eb17d0..7a35afe039ab 100644 --- a/widget/gtk/nsWindow.cpp +++ b/widget/gtk/nsWindow.cpp @@ -7091,10 +7091,10 @@ nsWindow::SetProgress(unsigned long progressPercent) return; } - progressPercent = CLAMP(progressPercent, 0, 100); + progressPercent = MIN(progressPercent, 100); set_window_hint_cardinal(GDK_WINDOW_XID(gtk_widget_get_window(mShell)), PROGRESS_HINT, progressPercent); #endif // MOZ_X11 -} \ No newline at end of file +}