mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
gtk: Use some more inline helpers
This commit is contained in:
parent
b766f92026
commit
9423d6261a
@ -38,6 +38,7 @@
|
||||
|
||||
#include "gdk/gdkhslaprivate.h"
|
||||
#include "gsk/gskroundedrectprivate.h"
|
||||
#include "gsk/gskrectprivate.h"
|
||||
|
||||
typedef struct _GtkBorderImage GtkBorderImage;
|
||||
|
||||
@ -678,8 +679,8 @@ gtk_css_style_snapshot_border (GtkCssBoxes *boxes,
|
||||
graphene_simd4f_t alpha_test_vector;
|
||||
|
||||
/* Optimize the most common case of "This widget has no border" */
|
||||
if (graphene_rect_equal (gtk_css_boxes_get_border_rect (boxes),
|
||||
gtk_css_boxes_get_padding_rect (boxes)))
|
||||
if (gsk_rect_equal (gtk_css_boxes_get_border_rect (boxes),
|
||||
gtk_css_boxes_get_padding_rect (boxes)))
|
||||
return;
|
||||
|
||||
colors[0] = *gtk_css_color_value_get_rgba (border->border_top_color ? border->border_top_color : boxes->style->core->color);
|
||||
|
Loading…
Reference in New Issue
Block a user