Changed nsPresContext::Observe, added code to flush font and reflow in case of charset change,

bug 103282, r=smontagu, sr=attinasi.
This commit is contained in:
nhotta%netscape.com 2001-12-14 23:13:28 +00:00
Родитель 8e1bfdb0a7
Коммит 03427b9aae
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -775,6 +775,10 @@ nsPresContext::Observe(nsISupports* aSubject,
{
if (!nsCRT::strcmp(aTopic, "charset")) {
UpdateCharSet(aData);
if (mDeviceContext) {
mDeviceContext->FlushFontCache();
ClearStyleDataAndReflow();
}
return NS_OK;
}

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

@ -775,6 +775,10 @@ nsPresContext::Observe(nsISupports* aSubject,
{
if (!nsCRT::strcmp(aTopic, "charset")) {
UpdateCharSet(aData);
if (mDeviceContext) {
mDeviceContext->FlushFontCache();
ClearStyleDataAndReflow();
}
return NS_OK;
}