WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
52836
[GTK] Move scrollbar rendering out of gtk2drawing.c
https://bugs.webkit.org/show_bug.cgi?id=52836
Summary
[GTK] Move scrollbar rendering out of gtk2drawing.c
Martin Robinson
Reported
2011-01-20 13:01:24 PST
This bug tracks moving scrollbar rendering out of gtk2drawing.c. This is the final piece of the Mozilla theme drawing code that we use, so we can remove these files completely once this bug is resolved.
Attachments
Patch
(20.16 KB, patch)
2011-01-20 13:26 PST
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Patch
(20.15 KB, patch)
2011-01-21 14:00 PST
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2011-01-20 13:26:13 PST
Created
attachment 79644
[details]
Patch
Martin Robinson
Comment 2
2011-01-20 15:28:37 PST
Comment on
attachment 79644
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79644&action=review
> Source/WebCore/platform/gtk/ScrollbarThemeGtk2.cpp:58 > + "slider_width", &m_thumbFatness, > + "trough_border", &m_troughBorderWidth,
I will change the underscores here to dashes before landing.
Eric Seidel (no email)
Comment 3
2011-01-21 02:57:49 PST
would be nice to see the gtk ews results.
Martin Robinson
Comment 4
2011-01-21 09:06:48 PST
(In reply to
comment #3
)
> would be nice to see the gtk ews results.
I can repost it after the blocking bug has landed.
Martin Robinson
Comment 5
2011-01-21 14:00:19 PST
Created
attachment 79787
[details]
Patch
WebKit Review Bot
Comment 6
2011-01-21 14:02:07 PST
Attachment 79787
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/gtk/ScrollbarThemeGtk2.cpp:62: Use 0 instead of NULL. [readability/null] [5] Source/WebCore/platform/gtk/ScrollbarThemeGtk2.cpp:198: Use 0 instead of NULL. [readability/null] [5] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Gustavo Noronha (kov)
Comment 7
2011-02-07 10:46:15 PST
Comment on
attachment 79787
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=79787&action=review
> Source/WebCore/platform/gtk/ScrollbarThemeGtk2.cpp:112 > + // properly the theme may draw not draw the thumb borders properly.
s/draw not/not/, right?
> Source/WebCore/platform/gtk/ScrollbarThemeGtk2.cpp:186 > + gfloat arrowScaling;
Xan does not approve of using g* types when they're just typedefs of the standard C ones.
> Source/WebCore/platform/gtk/WidgetRenderingContext.cpp:155 > +void WidgetRenderingContext::gtkPaintBox(const IntRect& rect, GtkWidget* widget, GtkStateType stateType, GtkShadowType shadowType, const gchar* detail, bool adjustAllocation)
Would it hurt to remove the bool and always perform the allocation? I mean, except for the (negligible?) extra work? It might make this more future-proof, and we can toss this additional argument.
Martin Robinson
Comment 8
2011-02-08 11:15:47 PST
Committed
r77960
: <
http://trac.webkit.org/changeset/77960
>
Martin Robinson
Comment 9
2011-02-08 11:16:45 PST
Comment on
attachment 79787
[details]
Patch Thanks for the review! Landed with your suggestions.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug