Bug 1270956 - Convert CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE assertion into a warning. r=me

This commit is contained in:
Bobby Holley 2016-05-04 17:59:10 -07:00
Родитель 1bc38c297a
Коммит bedd733071
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -150,8 +150,9 @@ ServoStyleSet::ResolvePseudoElementStyle(Element* aParentElement,
nsStyleContext* aParentContext,
Element* aPseudoElement)
{
MOZ_ASSERT(!aPseudoElement,
"stylo: We don't support CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE yet");
if (aPseudoElement) {
NS_ERROR("stylo: We don't support CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE yet");
}
MOZ_ASSERT(aParentContext);
MOZ_ASSERT(aType < CSSPseudoElementType::Count);
nsIAtom* pseudoTag = nsCSSPseudoElements::GetPseudoAtom(aType);
@ -361,8 +362,9 @@ ServoStyleSet::ProbePseudoElementStyle(Element* aParentElement,
TreeMatchContext& aTreeMatchContext,
Element* aPseudoElement)
{
MOZ_ASSERT(!aPseudoElement,
"stylo: We don't support CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE yet");
if (aPseudoElement) {
NS_ERROR("stylo: We don't support CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE yet");
}
return ProbePseudoElementStyle(aParentElement, aType, aParentContext);
}