forked from AuroraMiddleware/gtk
cssdimensionvalue: remove early-out code from transition()
We do this directly in gtk_css_value_transition() now
This commit is contained in:
parent
3091679ffa
commit
8c98fd2e46
@ -249,15 +249,6 @@ gtk_css_value_dimension_transition (GtkCssValue *start,
|
|||||||
guint property_id,
|
guint property_id,
|
||||||
double progress)
|
double progress)
|
||||||
{
|
{
|
||||||
if (progress == 0)
|
|
||||||
return _gtk_css_value_ref (start);
|
|
||||||
|
|
||||||
if (progress == 1)
|
|
||||||
return _gtk_css_value_ref (end);
|
|
||||||
|
|
||||||
if (start == end)
|
|
||||||
return _gtk_css_value_ref (start);
|
|
||||||
|
|
||||||
if (start->unit != end->unit)
|
if (start->unit != end->unit)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user