From f9b32474b090bf4aa5baa615fa593a7464a94955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 10 Jul 2013 02:06:05 +0200 Subject: [PATCH] st-theme-node: Don't update resources on each paint Up to commit 318283fc705bd9e9, resources were only updated when the allocated size had changed. There is no good reason to change this for theme nodes without box shadows. https://bugzilla.gnome.org/show_bug.cgi?id=703909 --- src/st/st-theme-node-drawing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-theme-node-drawing.c b/src/st/st-theme-node-drawing.c index 438802993..1a2cea316 100644 --- a/src/st/st-theme-node-drawing.c +++ b/src/st/st-theme-node-drawing.c @@ -2397,7 +2397,7 @@ st_theme_node_paint (StThemeNode *node, node->rendered_once = TRUE; } - else + else if (state->alloc_width != width || state->alloc_height != height) st_theme_node_update_resources (state, node, width, height); /* Rough notes about the relationship of borders and backgrounds in CSS3;