nsPresContext.cpp : added to comment to presContext::GetLookAndFeel to inform others that
that method has been depricated. nsTextFrame.cpp : changed an assert to a warning, didnt need to be an assert. r: mjudge@netscape.com git-svn-id: svn://10.0.0.236/trunk@75532 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
4f634fec92
commit
d503a47c59
@ -448,7 +448,10 @@ nsPresContext::SetImageAnimationMode(nsImageAnimation aMode)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
/* This function has now been depricated. It is no longer necesary to
|
||||
* hold on to presContext just to get a nsLookAndFeel. nsLookAndFeel is
|
||||
* now a service provided by ServiceManager.
|
||||
*/
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::GetLookAndFeel(nsILookAndFeel** aLookAndFeel)
|
||||
{
|
||||
|
||||
@ -448,7 +448,10 @@ nsPresContext::SetImageAnimationMode(nsImageAnimation aMode)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
/* This function has now been depricated. It is no longer necesary to
|
||||
* hold on to presContext just to get a nsLookAndFeel. nsLookAndFeel is
|
||||
* now a service provided by ServiceManager.
|
||||
*/
|
||||
NS_IMETHODIMP
|
||||
nsPresContext::GetLookAndFeel(nsILookAndFeel** aLookAndFeel)
|
||||
{
|
||||
|
||||
@ -1307,7 +1307,8 @@ nsTextFrame::PrepareUnicodeText(nsTextTransformer& aTX,
|
||||
}
|
||||
}
|
||||
n -= contentLen;
|
||||
NS_ASSERTION(n >= 0, "whoops");
|
||||
if(n<0)
|
||||
NS_WARNING("mContentLength is < FragmentLength");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1307,7 +1307,8 @@ nsTextFrame::PrepareUnicodeText(nsTextTransformer& aTX,
|
||||
}
|
||||
}
|
||||
n -= contentLen;
|
||||
NS_ASSERTION(n >= 0, "whoops");
|
||||
if(n<0)
|
||||
NS_WARNING("mContentLength is < FragmentLength");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user