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:
Brian Birtles 2017-04-26 13:00:12 +09:00
Родитель 93862d0cba
Коммит f0f2cdbc20
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
}
}