Browse Source

Move transition/animation update to before style definition update.

Michael Ragazzon 6 năm trước cách đây
mục cha
commit
27f54e5bff
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      Source/Core/Element.cpp

+ 3 - 3
Source/Core/Element.cpp

@@ -214,13 +214,13 @@ void Element::Update(float dp_ratio)
 
 	UpdateStructure();
 
-	style->UpdateDefinition();
-	scroll->Update();
-
 	UpdateTransition();
 	UpdateAnimation();
 	AdvanceAnimations();
 
+	style->UpdateDefinition();
+	scroll->Update();
+
 	if(style->AnyPropertiesDirty())
 	{
 		const ComputedValues* parent_values = nullptr;