added assertion to resolve style

This commit is contained in:
peterl%netscape.com 1999-05-26 23:44:56 +00:00
parent a2c1b25e77
commit dee7ea6722
3 changed files with 6 additions and 0 deletions

View File

@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
{
nsIStyleContext* result = nsnull;
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
// want to check parent frame's context for cached child context first
if ((nsnull != aParentContext) && (nsnull != aContent)) {
//XXX Disabled this for the dom, as per peter's note

View File

@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
{
nsIStyleContext* result = nsnull;
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
// want to check parent frame's context for cached child context first
if ((nsnull != aParentContext) && (nsnull != aContent)) {
//XXX Disabled this for the dom, as per peter's note

View File

@ -533,6 +533,8 @@ nsIStyleContext* StyleSetImpl::ResolveStyleFor(nsIPresContext* aPresContext,
{
nsIStyleContext* result = nsnull;
NS_ASSERTION(aContent, "must have content"); // XXX ??? is this true?
// want to check parent frame's context for cached child context first
if ((nsnull != aParentContext) && (nsnull != aContent)) {
//XXX Disabled this for the dom, as per peter's note