added content state changed

git-svn-id: svn://10.0.0.236/trunk@22333 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-02-27 07:15:09 +00:00
parent 99235ba41d
commit 46ee5bae96
24 changed files with 357 additions and 14 deletions

View File

@@ -205,6 +205,8 @@ public:
NS_IMETHOD ContentChanged(nsIDocument *aDocument,
nsIContent* aContent,
nsISupports* aSubContent);
NS_IMETHOD ContentStateChanged(nsIDocument* aDocument,
nsIContent* aContent);
NS_IMETHOD AttributeChanged(nsIDocument *aDocument,
nsIContent* aContent,
nsIAtom* aAttribute,
@@ -1482,6 +1484,22 @@ PresShell::ContentChanged(nsIDocument *aDocument,
return rv;
}
NS_IMETHODIMP
PresShell::ContentStateChanged(nsIDocument* aDocument,
nsIContent* aContent)
{
NS_PRECONDITION(nsnull != mRootFrame, "null root frame");
EnterReflowLock();
nsresult rv = mStyleSet->ContentStateChanged(mPresContext, aContent);
ExitReflowLock();
if (mSelection)
mSelection->ResetSelection(this, mRootFrame);
return rv;
}
NS_IMETHODIMP
PresShell::AttributeChanged(nsIDocument *aDocument,
nsIContent* aContent,