After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 647929 - Don't use "border-radius: 3" by default
Don't use "border-radius: 3" by default
Status: RESOLVED FIXED
Product: gnome-themes-standard
Classification: Core
Component: Adwaita GTK3 theme
git master
Other Windows
: Normal normal
: ---
Assigned To: gnome-themes-standard-maint
gnome-themes-standard-maint
Depends on:
Blocks:
 
 
Reported: 2011-04-16 11:28 UTC by Benjamin Otte (Company)
Modified: 2011-04-26 18:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benjamin Otte (Company) 2011-04-16 11:28:36 UTC
border-radius influences the way backgrounds are drawn.
If a border-radius is set, a rounded rectangle is drawn for every gtk_render_background(). This causes two problems:
1) What we draw is not what we see. We draw rounded rectangles even for GtkWindow, but a GdkWindow does not have rounded rectangles. This is not visible because the windows of windowed widgets get cleared to the background color by default. It can lead to subtle bugs though, like for example when applications decide to disable double-buffering which will cause the background to not be auto-cleared anymore.
2) It's a performance issue. Cairo needs to spend a lot of time computing rounded rectangles when it could just draw a normal rectangle.
Comment 1 Cosimo Cecchi 2011-04-26 18:47:45 UTC
I fixed this in master now. Though removing it doesn't seem to break anything significant at first sight, I want to test it a bit more before pushing it to gnome-3-0 too; I'll try to do this before 3.0.2.