瀏覽代碼

Move transition/animation update to before style definition update.

Michael Ragazzon 6 年之前
父節點
當前提交
27f54e5bff
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;