[gtk+/wip/cssnode3: 51/81] csspathnode: Call gtk_style_context_validate()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cssnode3: 51/81] csspathnode: Call gtk_style_context_validate()
- Date: Sat, 28 Feb 2015 23:14:00 +0000 (UTC)
commit a43d01b8dfcca0539890d0f5846589585cfa1600
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 13 22:00:06 2015 +0100
csspathnode: Call gtk_style_context_validate()
Don't call gtk_style_context_invalidate(), that function does too much
work.
gtk/gtkcsspathnode.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcsspathnode.c b/gtk/gtkcsspathnode.c
index 8f838fc..1fc702e 100644
--- a/gtk/gtkcsspathnode.c
+++ b/gtk/gtkcsspathnode.c
@@ -18,6 +18,7 @@
#include "config.h"
#include "gtkcsspathnodeprivate.h"
+#include "gtkcssstylepropertyprivate.h"
#include "gtkprivate.h"
#include "gtkstylecontextprivate.h"
@@ -41,9 +42,16 @@ gtk_css_path_node_invalidate (GtkCssNode *node)
if (path_node->context)
{
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- gtk_style_context_invalidate (path_node->context);
- G_GNUC_END_IGNORE_DEPRECATIONS;
+ GtkBitmask *changes;
+
+ changes = _gtk_bitmask_new ();
+ changes = _gtk_bitmask_invert_range (changes,
+ 0,
+ _gtk_css_style_property_get_n_properties ());
+
+ gtk_style_context_validate (path_node->context, changes);
+
+ _gtk_bitmask_free (changes);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]