mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-29 03:44:37 +00:00
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:
parent
8e1bfdb0a7
commit
03427b9aae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user