[gtk+/wip/css-tree] css: Fix up position with region tree matching
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/css-tree] css: Fix up position with region tree matching
- Date: Thu, 29 Nov 2012 21:24:05 +0000 (UTC)
commit d9357402ed9742d7f5127af110bbf0d42d7829e1
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]