| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Gets rid of the need to do
if (ANIMATED_STYLE() &&
animated_style_is_static(ANIMATED_STYLE(style))
|
| |
|
|
|
|
|
|
| |
This way, we can remove it as a separate argument from
gtk_css_value_compute() and allow computation to only depend on one
thing: the style provider.
|
|
|
|
|
| |
compute_dependencies() is only used internally by GtkCssStaticStyle,
so there's no need to have it elsewhere.
|
|
|
|
| |
It now always returns a new instance.
|
|
|
|
| |
This makes GtkCssAnimatedStyle immutable.
|
|
|
|
| |
This is another step towards making CssStyles immutable.
|
|
|
|
|
|
|
| |
... when no animation exists.
This makes the function name kinda wrong, but I'm not sure what else to
call it.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Instead of keeping an animated style everywhere, we replace it with the
static style when nothing gets animated.
Apart from making the code cleaner, this gets rid of a bunch of animated
style values that do nothing but wrap a static style.
|
|
|
|
|
|
|
| |
... to build_properties.
There is always one available, so we can insist on that one.
This simplifies a bunch of code.
|
|
|
|
|
|
|
|
| |
For now, this is only an implementation detail of the animated style.
The idea is to use GtkCssStaticStyle as the result of CSS queries and
then put a GtkCssAnimatedStyle on top that manages the animations. The
neat thing about this is that you can cache the static values.
|
|
GtkCssStyle is the base class to be used for all types of styles that do
exist.
GtkCssAnimatedStyle is the only implementation so far, that is exactly a
copy/paste of the old GtkCssStyle code.
|