summaryrefslogtreecommitdiff
path: root/gtk/gtkcssselectorprivate.h
Commit message (Collapse)AuthorAgeFilesLines
* css: Do get_change directly on the tree without matching firstAlexander Larsson2012-12-101-0/+2
| | | | | | Rather than first collecting matches and then getting the change for them we do the change collection directly on the tree. This is about twice as fast.
* css: Add const to _gtk_css_selector_tree_match_all argAlexander Larsson2012-11-301-1/+1
|
* css: Implement ruleset_get_change() with the treeAlexander Larsson2012-11-301-6/+7
| | | | | We traverse the tree on the matches instead of using the linear selectors.
* css: Use the tree to print css selectorsAlexander Larsson2012-11-301-4/+5
|
* css: Track the tree selector matchesAlexander Larsson2012-11-301-0/+1
|
* css: Add GtkCssSelectorTree creation and matchingAlexander Larsson2012-11-301-0/+14
| | | | | | | | | | | From a set of GtkCssSelectors and the rulesets they match to we create a large decision tree that lets us efficitently match against all the rules and return the set of matched rulesets. The tree is created such that at each level we pick the initial rule[1] in all the considered selectors for that level and use put the one that is in most selectors in the node. All selectors matching that are put in the previous part of the tree.
* styleprovider: Remove (broken) implementations of get_styleBenjamin Otte2012-11-241-2/+0
| | | | | The implementations were broken and get_style() is deprecated and documented to return NULL now.
* css: Add selector change typesBenjamin Otte2012-04-171-2/+1
| | | | | This allows querying selectors for which changes would change their "matchingness".
* css: Make the style provider take a matcher as an input argumentBenjamin Otte2012-04-171-2/+2
|
* gtk: Get gtkwidgetpath.h includes out of the public headersBenjamin Otte2012-03-191-1/+1
| | | | and include them in the C files instead.
* selector: Introduce gtk_css_selector_previous()Benjamin Otte2012-03-021-1/+1
|
* css: Move selector parsing code into a custom functionBenjamin Otte2012-03-021-12/+2
|
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* css: Change prototype of _gtk_css_selector_matches()Benjamin Otte2012-01-091-1/+1
| | | | | | Passing the length of the widget path that is relevant is not necessary anymore, it was only useful for inheritance. Instead, we now pass the state flags and let the selector do the state matching for us.
* css: Constify path argument to _css_selector_matches()Benjamin Otte2011-05-271-1/+1
| | | | | It should have been const all the time, but I assumed widgetpath code wasn't properly const. PEBKAC.
* css: Make _gtk_css_selector_matches() take a path lengthBenjamin Otte2011-05-181-1/+2
| | | | This will be necessary when handling inherit.
* css: Rewrite selectorsBenjamin Otte2011-05-181-0/+57
Selectors now go into their own C file. The new selectors are modeled a lot closer to the CSS spec. In particular the specificity computation matches CSS 2.1 exactly. For details about the why, see also: http://mail.gnome.org/archives/gtk-devel-list/2011-May/msg00061.html https://bugzilla.gnome.org/show_bug.cgi?id=649798