[gtk+] css: Fix up position with region tree matching
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] css: Fix up position with region tree matching
- Date: Fri, 30 Nov 2012 13:56:34 +0000 (UTC)
commit 0ede06d229f5d8b0ebdbd5b36a731736bea9dd5d
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 29 14:25:53 2012 +0100
css: Fix up position with region tree matching
This was using the wrong result in case of a match (results from
the position, not the region. Also, the descendant checks were
wrong.
gtk/gtkcssselector.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index 6d767b2..0beb87f 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -993,14 +993,13 @@ gtk_css_selector_pseudoclass_position_tree_match_for_region (const GtkCssSelecto
if (!_gtk_css_matcher_has_region (matcher, prev->selector.data, selector_flags))
return;
- gtk_css_selector_tree_found_match (tree, res);
+ gtk_css_selector_tree_found_match (prev, res);
for (prev2 = prev->previous; prev2 != NULL; prev2 = prev2->siblings)
{
if (prev2->selector.class == >K_CSS_SELECTOR_DESCENDANT)
gtk_css_selector_tree_match (prev2->previous, matcher, res);
- else
- gtk_css_selector_tree_match (prev2, matcher, res);
+ gtk_css_selector_tree_match (prev2, matcher, res);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]