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
parent 8e1bfdb0a7
commit 03427b9aae
2 changed files with 8 additions and 0 deletions

View File

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

View File

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