From 9f79cf8a60d81b99044d703927c7c7fb7875be9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 14 Nov 2018 01:55:06 +0100 Subject: [PATCH] Revert "clutter: Avoid redundant margin changes" This reverts commit 59acb38951381c196eb47e0a5d568a13feb442ad. --- clutter/clutter/clutter-actor.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index f4f5db5c4..3580ac1fd 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -18434,10 +18434,6 @@ clutter_actor_set_margin_top (ClutterActor *self, g_return_if_fail (margin >= 0.f); info = _clutter_actor_get_layout_info_or_defaults (self); - - if (info->margin.top == margin) - return; - _clutter_actor_create_transition (self, obj_props[PROP_MARGIN_TOP], info->margin.top, margin); @@ -18482,10 +18478,6 @@ clutter_actor_set_margin_bottom (ClutterActor *self, g_return_if_fail (margin >= 0.f); info = _clutter_actor_get_layout_info_or_defaults (self); - - if (info->margin.bottom == margin) - return; - _clutter_actor_create_transition (self, obj_props[PROP_MARGIN_BOTTOM], info->margin.bottom, margin); @@ -18530,10 +18522,6 @@ clutter_actor_set_margin_left (ClutterActor *self, g_return_if_fail (margin >= 0.f); info = _clutter_actor_get_layout_info_or_defaults (self); - - if (info->margin.left == margin) - return; - _clutter_actor_create_transition (self, obj_props[PROP_MARGIN_LEFT], info->margin.left, margin); @@ -18578,10 +18566,6 @@ clutter_actor_set_margin_right (ClutterActor *self, g_return_if_fail (margin >= 0.f); info = _clutter_actor_get_layout_info_or_defaults (self); - - if (info->margin.right == margin) - return; - _clutter_actor_create_transition (self, obj_props[PROP_MARGIN_RIGHT], info->margin.right, margin);