[gtk+/wip/css: 144/154] themingengine: Remove an optimization



commit 16aebcdfe60c5f79665151855e52b1e9953afc40
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jan 6 20:33:00 2012 +0100

    themingengine: Remove an optimization
    
    We optimize the case later on, so no need to do it here.

 gtk/gtkthemingengine.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 754fe8c..f448d45 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1543,7 +1543,6 @@ gtk_theming_engine_render_frame (GtkThemingEngine *engine,
                                  gdouble           height)
 {
   GtkStateFlags flags;
-  GtkBorderStyle border_style;
   GtkJunctionSides junction;
   GtkBorderImage border_image;
   GtkBorder border;
@@ -1552,14 +1551,10 @@ gtk_theming_engine_render_frame (GtkThemingEngine *engine,
   junction = gtk_theming_engine_get_junction_sides (engine);
   gtk_theming_engine_get_border (engine, flags, &border);
 
-  gtk_theming_engine_get (engine, flags,
-			  "border-style", &border_style,
-			  NULL);
-
   if (_gtk_border_image_init (&border_image, engine))
     _gtk_border_image_render (&border_image, &border,
                               cr, x, y, width, height);
-  else if (border_style != GTK_BORDER_STYLE_NONE)
+  else
     render_frame_internal (engine, cr,
                            x, y, width, height,
                            0, junction);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]