mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 931706 - Changing contentViewer.authorStyleDisabled should send a notification r=bz
From 38ce091c13f08060c76e0dd8821cbe62fc3aa0c1 Mon Sep 17 00:00:00 2001
This commit is contained in:
parent
2090ace474
commit
caf0e5474d
@ -1077,6 +1077,14 @@ nsIPresShell::SetAuthorStyleDisabled(bool aStyleDisabled)
|
||||
if (aStyleDisabled != mStyleSet->GetAuthorStyleDisabled()) {
|
||||
mStyleSet->SetAuthorStyleDisabled(aStyleDisabled);
|
||||
ReconstructStyleData();
|
||||
|
||||
nsCOMPtr<nsIObserverService> observerService =
|
||||
mozilla::services::GetObserverService();
|
||||
if (observerService) {
|
||||
observerService->NotifyObservers(mDocument,
|
||||
"author-style-disabled-changed",
|
||||
nullptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user