mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-18 20:54:27 -04:00
!2319 Remove 1.0 animation interface to rosen
Merge pull request !2319 from ZhaoXiaoyu/master
This commit is contained in:
@@ -828,10 +828,6 @@ const RefPtr<PageTransitionComponent>& DOMNode::BuildTransitionComponent()
|
||||
pageTransitionStyle.transitionEnterOption.SetCurve(Curves::FRICTION);
|
||||
pageTransitionStyle.transitionExitOption.SetCurve(Curves::FRICTION);
|
||||
}
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
pageTransitionStyle.transitionEnterOption.SetAllowRunningAsynchronously(true);
|
||||
pageTransitionStyle.transitionExitOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
transitionComponent_->SetContentTransitionOption(
|
||||
pageTransitionStyle.transitionEnterOption, pageTransitionStyle.transitionExitOption);
|
||||
}
|
||||
@@ -1644,9 +1640,6 @@ void DOMNode::UpdateTweenComponent()
|
||||
propTransitionComponent_ = AceType::MakeRefPtr<TransitionComponent>(TRANSITION_COMPONENT_PREFIX
|
||||
+ std::to_string(nodeId_), tag_);
|
||||
}
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
propTransitionOption_.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
propTransitionComponent_->SetTransitionOption(propTransitionOption_);
|
||||
transitionStyleUpdated_ = false;
|
||||
}
|
||||
@@ -1688,9 +1681,6 @@ void DOMNode::UpdateTweenComponent()
|
||||
if (!tweenComponent_) {
|
||||
tweenComponent_ = AceType::MakeRefPtr<TweenComponent>(COMPONENT_PREFIX + std::to_string(nodeId_), tag_);
|
||||
}
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
animationStyle.tweenOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
tweenComponent_->SetTweenOption(animationStyle.tweenOption);
|
||||
tweenComponent_->UpdateAnimationName(animationName_);
|
||||
tweenComponent_->SetAnimationOperation(animationStyle.animationOperation);
|
||||
@@ -1711,9 +1701,6 @@ void DOMNode::UpdateTweenComponent()
|
||||
"FrontendShared" + std::to_string(nodeId_), tag_, shareId_);
|
||||
auto& sharedTransitionStyle = static_cast<CommonShareTransitionStyle&>(
|
||||
declaration_->GetStyle(StyleTag::COMMON_SHARE_TRANSITION_STYLE));
|
||||
if (SystemProperties::GetRosenBackendEnabled() && sharedTransitionStyle.IsValid()) {
|
||||
sharedTransitionStyle.sharedTransitionOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
if (sharedTransitionStyle.IsValid()) {
|
||||
sharedTransitionComponent_->SetOption(sharedTransitionStyle.sharedTransitionOption);
|
||||
sharedTransitionComponent_->SetEffect(sharedTransitionStyle.sharedEffect);
|
||||
|
||||
@@ -435,9 +435,6 @@ void JsiAnimationBridge::JsCreateAnimation(const RefPtr<JsAcePage>& page, const
|
||||
tweenOption.SetDelay(iterDelay->second);
|
||||
}
|
||||
tweenOption.SetIteration(iterations);
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
tweenOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
|
||||
auto domDocument = page->GetDomDocument();
|
||||
if (!domDocument) {
|
||||
|
||||
@@ -316,9 +316,6 @@ void AnimationBridge::JsCreateAnimation(const RefPtr<JsAcePage>& page, const std
|
||||
tweenOption.SetDelay(iterDelay->second);
|
||||
}
|
||||
tweenOption.SetIteration(iterations);
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
tweenOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
if (page == nullptr) {
|
||||
LOGE("JsCreateAnimation failed, Page is null.");
|
||||
return;
|
||||
|
||||
@@ -455,9 +455,6 @@ void V8AnimationBridge::JsCreateAnimation(const RefPtr<JsAcePage>& page, const s
|
||||
tweenOption.SetDelay(iterDelay->second);
|
||||
}
|
||||
tweenOption.SetIteration(iterations);
|
||||
if (SystemProperties::GetRosenBackendEnabled()) {
|
||||
tweenOption.SetAllowRunningAsynchronously(true);
|
||||
}
|
||||
if (!page) {
|
||||
LOGE("JsCreateAnimation failed, Page is null.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user