cssstyleproperty: Mark all animatable properties

Only the ones that can be animated are marked of course. So more work is
needed.
This is important for
  transition-property: all;
because it'll just animate all the properties that can be.
This commit is contained in:
Benjamin Otte 2012-04-02 09:16:08 +02:00
parent ed45a3c2f0
commit a8efb784d7

View File

@ -1295,7 +1295,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("color", gtk_css_style_property_register ("color",
GTK_CSS_PROPERTY_COLOR, GTK_CSS_PROPERTY_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
GTK_STYLE_PROPERTY_INHERIT, GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_property_compute, color_property_compute,
@ -1307,7 +1307,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("font-size", gtk_css_style_property_register ("font-size",
GTK_CSS_PROPERTY_FONT_SIZE, GTK_CSS_PROPERTY_FONT_SIZE,
G_TYPE_DOUBLE, G_TYPE_DOUBLE,
GTK_STYLE_PROPERTY_INHERIT, GTK_STYLE_PROPERTY_INHERIT | GTK_STYLE_PROPERTY_ANIMATED,
font_size_parse, font_size_parse,
NULL, NULL,
font_size_compute, font_size_compute,
@ -1322,7 +1322,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("background-color", gtk_css_style_property_register ("background-color",
GTK_CSS_PROPERTY_BACKGROUND_COLOR, GTK_CSS_PROPERTY_BACKGROUND_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1417,7 +1417,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-top", gtk_css_style_property_register ("margin-top",
GTK_CSS_PROPERTY_MARGIN_TOP, GTK_CSS_PROPERTY_MARGIN_TOP,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_margin, parse_margin,
NULL, NULL,
compute_margin, compute_margin,
@ -1428,7 +1428,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-left", gtk_css_style_property_register ("margin-left",
GTK_CSS_PROPERTY_MARGIN_LEFT, GTK_CSS_PROPERTY_MARGIN_LEFT,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_margin, parse_margin,
NULL, NULL,
compute_margin, compute_margin,
@ -1439,7 +1439,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-bottom", gtk_css_style_property_register ("margin-bottom",
GTK_CSS_PROPERTY_MARGIN_BOTTOM, GTK_CSS_PROPERTY_MARGIN_BOTTOM,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_margin, parse_margin,
NULL, NULL,
compute_margin, compute_margin,
@ -1450,7 +1450,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("margin-right", gtk_css_style_property_register ("margin-right",
GTK_CSS_PROPERTY_MARGIN_RIGHT, GTK_CSS_PROPERTY_MARGIN_RIGHT,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_margin, parse_margin,
NULL, NULL,
compute_margin, compute_margin,
@ -1461,7 +1461,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-top", gtk_css_style_property_register ("padding-top",
GTK_CSS_PROPERTY_PADDING_TOP, GTK_CSS_PROPERTY_PADDING_TOP,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_padding, parse_padding,
NULL, NULL,
compute_padding, compute_padding,
@ -1472,7 +1472,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-left", gtk_css_style_property_register ("padding-left",
GTK_CSS_PROPERTY_PADDING_LEFT, GTK_CSS_PROPERTY_PADDING_LEFT,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_padding, parse_padding,
NULL, NULL,
compute_padding, compute_padding,
@ -1483,7 +1483,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-bottom", gtk_css_style_property_register ("padding-bottom",
GTK_CSS_PROPERTY_PADDING_BOTTOM, GTK_CSS_PROPERTY_PADDING_BOTTOM,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_padding, parse_padding,
NULL, NULL,
compute_padding, compute_padding,
@ -1494,7 +1494,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("padding-right", gtk_css_style_property_register ("padding-right",
GTK_CSS_PROPERTY_PADDING_RIGHT, GTK_CSS_PROPERTY_PADDING_RIGHT,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_padding, parse_padding,
NULL, NULL,
compute_padding, compute_padding,
@ -1519,7 +1519,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-top-width", gtk_css_style_property_register ("border-top-width",
GTK_CSS_PROPERTY_BORDER_TOP_WIDTH, GTK_CSS_PROPERTY_BORDER_TOP_WIDTH,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width, parse_border_width,
NULL, NULL,
compute_border_width, compute_border_width,
@ -1541,7 +1541,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-left-width", gtk_css_style_property_register ("border-left-width",
GTK_CSS_PROPERTY_BORDER_LEFT_WIDTH, GTK_CSS_PROPERTY_BORDER_LEFT_WIDTH,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width, parse_border_width,
NULL, NULL,
compute_border_width, compute_border_width,
@ -1563,7 +1563,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-bottom-width", gtk_css_style_property_register ("border-bottom-width",
GTK_CSS_PROPERTY_BORDER_BOTTOM_WIDTH, GTK_CSS_PROPERTY_BORDER_BOTTOM_WIDTH,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width, parse_border_width,
NULL, NULL,
compute_border_width, compute_border_width,
@ -1585,7 +1585,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-right-width", gtk_css_style_property_register ("border-right-width",
GTK_CSS_PROPERTY_BORDER_RIGHT_WIDTH, GTK_CSS_PROPERTY_BORDER_RIGHT_WIDTH,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width, parse_border_width,
NULL, NULL,
compute_border_width, compute_border_width,
@ -1653,7 +1653,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("outline-width", gtk_css_style_property_register ("outline-width",
GTK_CSS_PROPERTY_OUTLINE_WIDTH, GTK_CSS_PROPERTY_OUTLINE_WIDTH,
G_TYPE_INT, G_TYPE_INT,
0, GTK_STYLE_PROPERTY_ANIMATED,
parse_border_width, parse_border_width,
NULL, NULL,
compute_border_width, compute_border_width,
@ -1721,7 +1721,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-top-color", gtk_css_style_property_register ("border-top-color",
GTK_CSS_PROPERTY_BORDER_TOP_COLOR, GTK_CSS_PROPERTY_BORDER_TOP_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1734,7 +1734,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-right-color", gtk_css_style_property_register ("border-right-color",
GTK_CSS_PROPERTY_BORDER_RIGHT_COLOR, GTK_CSS_PROPERTY_BORDER_RIGHT_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1747,7 +1747,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-bottom-color", gtk_css_style_property_register ("border-bottom-color",
GTK_CSS_PROPERTY_BORDER_BOTTOM_COLOR, GTK_CSS_PROPERTY_BORDER_BOTTOM_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1760,7 +1760,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-left-color", gtk_css_style_property_register ("border-left-color",
GTK_CSS_PROPERTY_BORDER_LEFT_COLOR, GTK_CSS_PROPERTY_BORDER_LEFT_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1773,7 +1773,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("outline-color", gtk_css_style_property_register ("outline-color",
GTK_CSS_PROPERTY_OUTLINE_COLOR, GTK_CSS_PROPERTY_OUTLINE_COLOR,
GDK_TYPE_RGBA, GDK_TYPE_RGBA,
0, GTK_STYLE_PROPERTY_ANIMATED,
color_parse, color_parse,
NULL, NULL,
color_compute, color_compute,
@ -1800,7 +1800,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("background-image", gtk_css_style_property_register ("background-image",
GTK_CSS_PROPERTY_BACKGROUND_IMAGE, GTK_CSS_PROPERTY_BACKGROUND_IMAGE,
CAIRO_GOBJECT_TYPE_PATTERN, CAIRO_GOBJECT_TYPE_PATTERN,
0, GTK_STYLE_PROPERTY_ANIMATED,
css_image_value_parse, css_image_value_parse,
NULL, NULL,
css_image_value_compute, css_image_value_compute,
@ -1812,7 +1812,7 @@ _gtk_css_style_property_init_properties (void)
gtk_css_style_property_register ("border-image-source", gtk_css_style_property_register ("border-image-source",
GTK_CSS_PROPERTY_BORDER_IMAGE_SOURCE, GTK_CSS_PROPERTY_BORDER_IMAGE_SOURCE,
CAIRO_GOBJECT_TYPE_PATTERN, CAIRO_GOBJECT_TYPE_PATTERN,
0, GTK_STYLE_PROPERTY_ANIMATED,
css_image_value_parse, css_image_value_parse,
NULL, NULL,
css_image_value_compute, css_image_value_compute,