From 243f5c06ead43edbf3fcd461bcd9c06c6cddf01c Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Mon, 12 Sep 2005 15:37:30 +0000 Subject: [PATCH] Weaken assertions I added yesterday to fix orange on balsa. b=307939 --- layout/style/nsStyleSet.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layout/style/nsStyleSet.cpp b/layout/style/nsStyleSet.cpp index 15dbf283c56..d6148174ab5 100644 --- a/layout/style/nsStyleSet.cpp +++ b/layout/style/nsStyleSet.cpp @@ -682,8 +682,14 @@ nsStyleSet::ProbePseudoStyleFor(nsIContent* aParentContent, NS_ASSERTION(aParentContent && aParentContent->IsContentOfType(nsIContent::eELEMENT), "aParentContent must be element"); - NS_ASSERTION(nsCSSPseudoElements::IsPseudoElement(aPseudoTag), - "aPseudoTag must be a pseudo-element"); + //NS_ASSERTION(nsCSSPseudoElements::IsPseudoElement(aPseudoTag), + // "aPseudoTag must be a pseudo-element"); + NS_ASSERTION(aParentContent || + nsCSSAnonBoxes::IsAnonBox(aPseudoTag), + "null content must correspond to anonymous box"); + NS_ASSERTION(nsCSSAnonBoxes::IsAnonBox(aPseudoTag) || + nsCSSPseudoElements::IsPseudoElement(aPseudoTag), + "aPseudoTag must be pseudo-element or anonymous box"); if (aPseudoTag && presContext) { if (mRuleProcessors[eAgentSheet] ||