зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1355348 - Convert stylo assert in nsComputedDOMStyle::DoGetStyleContextNoFlush to a warning; r=hiro
This allows us to run SMIL tests that include a combination of additive and non-additive animation. MozReview-Commit-ID: 2uVN184h7Ge --HG-- extra : rebase_source : f6a3dc70e20c09cbfdb8cc3149e2820575866b89
This commit is contained in:
Родитель
93862d0cba
Коммит
f0f2cdbc20
|
@ -558,13 +558,13 @@ nsComputedDOMStyle::DoGetStyleContextNoFlush(Element* aElement,
|
|||
if (aAnimationFlag == eWithoutAnimation) {
|
||||
nsPresContext* presContext = presShell->GetPresContext();
|
||||
MOZ_ASSERT(presContext, "Should have a prescontext if we have a frame");
|
||||
MOZ_ASSERT(presContext->StyleSet()->IsGecko(),
|
||||
"stylo: Need ResolveStyleByRemovingAnimation for stylo");
|
||||
if (presContext && presContext->StyleSet()->IsGecko()) {
|
||||
nsStyleSet* styleSet = presContext->StyleSet()->AsGecko();
|
||||
return styleSet->ResolveStyleByRemovingAnimation(
|
||||
aElement, result, eRestyle_AllHintsWithAnimations);
|
||||
} else {
|
||||
NS_WARNING("stylo: Getting the unanimated style context is not yet"
|
||||
" supported for Servo");
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче