mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
When the PresShell is notified that a styleshet's state has changed, it now notifies the StyleSet so it can rebuild the rule processors. Part of fix for b=38026 that I missed checking in before (r=karnaze)
This commit is contained in:
parent
4f7a6834d9
commit
d349e5258a
@ -3239,6 +3239,15 @@ PresShell::StyleSheetDisabledStateChanged(nsIDocument *aDocument,
|
|||||||
nsIStyleSheet* aStyleSheet,
|
nsIStyleSheet* aStyleSheet,
|
||||||
PRBool aDisabled)
|
PRBool aDisabled)
|
||||||
{
|
{
|
||||||
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
|
// first notify the style set that a sheet's state has changed
|
||||||
|
if (mStyleSet) {
|
||||||
|
rv = mStyleSet->NotifyStyleSheetStateChanged(aDisabled ? PR_FALSE : PR_TRUE);
|
||||||
|
}
|
||||||
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
|
// rebuild the frame-world
|
||||||
return ReconstructFrames();
|
return ReconstructFrames();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3239,6 +3239,15 @@ PresShell::StyleSheetDisabledStateChanged(nsIDocument *aDocument,
|
|||||||
nsIStyleSheet* aStyleSheet,
|
nsIStyleSheet* aStyleSheet,
|
||||||
PRBool aDisabled)
|
PRBool aDisabled)
|
||||||
{
|
{
|
||||||
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
|
// first notify the style set that a sheet's state has changed
|
||||||
|
if (mStyleSet) {
|
||||||
|
rv = mStyleSet->NotifyStyleSheetStateChanged(aDisabled ? PR_FALSE : PR_TRUE);
|
||||||
|
}
|
||||||
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
|
// rebuild the frame-world
|
||||||
return ReconstructFrames();
|
return ReconstructFrames();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user