RESOLVED FIXED 52051
[GTK] Port scrollbar painting to GtkStyleContext
https://bugs.webkit.org/show_bug.cgi?id=52051
Summary [GTK] Port scrollbar painting to GtkStyleContext
Carlos Garcia Campos
Reported 2011-01-07 03:06:53 PST
We should use GtkStyleContext API to paint the scrollbars when using gtk3
Attachments
Use GtkStyleContext API to paint scrollbars (16.44 KB, patch)
2011-01-07 03:12 PST, Carlos Garcia Campos
no flags
Carlos Garcia Campos
Comment 1 2011-01-07 03:12:18 PST
Created attachment 78218 [details] Use GtkStyleContext API to paint scrollbars
WebKit Review Bot
Comment 2 2011-01-07 03:14:32 PST
Attachment 78218 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source/JavaScriptCore/wtf/gobject/GTypedefs.h', u'WebCore/ChangeLog', u'WebCore/platform/gtk/RenderThemeGtk.h', u'WebCore/platform/gtk/RenderThemeGtk3.cpp', u'WebCore/platform/gtk/ScrollbarThemeGtk.cpp', u'WebCore/platform/gtk/ScrollbarThemeGtk.h', u'WebCore/platform/gtk/ScrollbarThemeGtk2.cpp', u'WebCore/platform/gtk/ScrollbarThemeGtk3.cpp']" exit_code: 1 WebCore/platform/gtk/ScrollbarThemeGtk3.cpp:62: Use 0 instead of NULL. [readability/null] [5] WebCore/platform/gtk/ScrollbarThemeGtk3.cpp:166: Use 0 instead of NULL. [readability/null] [5] WebCore/platform/gtk/ScrollbarThemeGtk3.cpp:178: Use 0 instead of NULL. [readability/null] [5] Total errors found: 3 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Martin Robinson
Comment 3 2011-01-07 10:40:37 PST
Comment on attachment 78218 [details] Use GtkStyleContext API to paint scrollbars View in context: https://bugs.webkit.org/attachment.cgi?id=78218&action=review Great. Please fix the two minor issues before landing this. > WebCore/platform/gtk/ScrollbarThemeGtk3.cpp:46 > + m_context = static_cast<RenderThemeGtk*>(RenderTheme::defaultTheme().get())->gtkScrollbarStyle(); You should use a an initialization field here. ScrollbarThemeGtk::ScrollbarThemeGtk() : m_context(static_cast<RenderThemeGtk*>(RenderTheme::defaultTheme().get())->gtkScrollbarStyle()) > WebCore/platform/gtk/ScrollbarThemeGtk3.cpp:53 > + gtk_style_context_get_style(m_context, I think we should ASSERT(m_context) before here.
Carlos Garcia Campos
Comment 4 2011-01-07 11:33:21 PST
WebKit Review Bot
Comment 5 2011-01-07 13:35:55 PST
http://trac.webkit.org/changeset/75259 might have broken GTK Linux 64-bit Debug
Note You need to log in before you can comment on or make changes to this bug.