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:
anthonyd%netscape.com 2000-08-03 22:30:47 +00:00
Родитель f99b846942
Коммит fed5192eba
4 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -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");
}
}