зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
f99b846942
Коммит
fed5192eba
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче