зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1270956 - Convert CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE assertion into a warning. r=me
This commit is contained in:
Родитель
1bc38c297a
Коммит
bedd733071
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче