From 694566ce25988e2f04ac61458a19d340ab4274e3 Mon Sep 17 00:00:00 2001 From: "peterl%netscape.com" Date: Sat, 27 Feb 1999 07:11:04 +0000 Subject: [PATCH] added content state changed removed ua sheet from dump style git-svn-id: svn://10.0.0.236/trunk@22324 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsStyleSet.cpp | 14 ++++++++++++-- mozilla/layout/base/src/nsStyleSet.cpp | 14 ++++++++++++-- mozilla/layout/style/nsStyleSet.cpp | 14 ++++++++++++-- 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/mozilla/content/base/src/nsStyleSet.cpp b/mozilla/content/base/src/nsStyleSet.cpp index 48eb0f78e3d..31c92428adc 100644 --- a/mozilla/content/base/src/nsStyleSet.cpp +++ b/mozilla/content/base/src/nsStyleSet.cpp @@ -113,6 +113,8 @@ public: NS_IMETHOD ContentChanged(nsIPresContext* aPresContext, nsIContent* aContent, nsISupports* aSubContent); + NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent); NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext, nsIContent* aChild, nsIAtom* aAttribute, @@ -780,6 +782,14 @@ StyleSetImpl::ContentChanged(nsIPresContext* aPresContext, aContent, aSubContent); } +NS_IMETHODIMP +StyleSetImpl::ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent) +{ + return mFrameConstructor->ContentStateChanged(aPresContext, aContent); +} + + NS_IMETHODIMP StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext, nsIContent* aContent, @@ -848,9 +858,9 @@ void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets) void StyleSetImpl::List(FILE* out, PRInt32 aIndent) { - List(out, aIndent, mOverrideSheets); +// List(out, aIndent, mOverrideSheets); List(out, aIndent, mDocSheets); - List(out, aIndent, mBackstopSheets); +// List(out, aIndent, mBackstopSheets); } void StyleSetImpl::ListContexts(nsIStyleContext* aRootContext, FILE* out, PRInt32 aIndent) diff --git a/mozilla/layout/base/src/nsStyleSet.cpp b/mozilla/layout/base/src/nsStyleSet.cpp index 48eb0f78e3d..31c92428adc 100644 --- a/mozilla/layout/base/src/nsStyleSet.cpp +++ b/mozilla/layout/base/src/nsStyleSet.cpp @@ -113,6 +113,8 @@ public: NS_IMETHOD ContentChanged(nsIPresContext* aPresContext, nsIContent* aContent, nsISupports* aSubContent); + NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent); NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext, nsIContent* aChild, nsIAtom* aAttribute, @@ -780,6 +782,14 @@ StyleSetImpl::ContentChanged(nsIPresContext* aPresContext, aContent, aSubContent); } +NS_IMETHODIMP +StyleSetImpl::ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent) +{ + return mFrameConstructor->ContentStateChanged(aPresContext, aContent); +} + + NS_IMETHODIMP StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext, nsIContent* aContent, @@ -848,9 +858,9 @@ void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets) void StyleSetImpl::List(FILE* out, PRInt32 aIndent) { - List(out, aIndent, mOverrideSheets); +// List(out, aIndent, mOverrideSheets); List(out, aIndent, mDocSheets); - List(out, aIndent, mBackstopSheets); +// List(out, aIndent, mBackstopSheets); } void StyleSetImpl::ListContexts(nsIStyleContext* aRootContext, FILE* out, PRInt32 aIndent) diff --git a/mozilla/layout/style/nsStyleSet.cpp b/mozilla/layout/style/nsStyleSet.cpp index 48eb0f78e3d..31c92428adc 100644 --- a/mozilla/layout/style/nsStyleSet.cpp +++ b/mozilla/layout/style/nsStyleSet.cpp @@ -113,6 +113,8 @@ public: NS_IMETHOD ContentChanged(nsIPresContext* aPresContext, nsIContent* aContent, nsISupports* aSubContent); + NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent); NS_IMETHOD AttributeChanged(nsIPresContext* aPresContext, nsIContent* aChild, nsIAtom* aAttribute, @@ -780,6 +782,14 @@ StyleSetImpl::ContentChanged(nsIPresContext* aPresContext, aContent, aSubContent); } +NS_IMETHODIMP +StyleSetImpl::ContentStateChanged(nsIPresContext* aPresContext, + nsIContent* aContent) +{ + return mFrameConstructor->ContentStateChanged(aPresContext, aContent); +} + + NS_IMETHODIMP StyleSetImpl::AttributeChanged(nsIPresContext* aPresContext, nsIContent* aContent, @@ -848,9 +858,9 @@ void StyleSetImpl::List(FILE* out, PRInt32 aIndent, nsISupportsArray* aSheets) void StyleSetImpl::List(FILE* out, PRInt32 aIndent) { - List(out, aIndent, mOverrideSheets); +// List(out, aIndent, mOverrideSheets); List(out, aIndent, mDocSheets); - List(out, aIndent, mBackstopSheets); +// List(out, aIndent, mBackstopSheets); } void StyleSetImpl::ListContexts(nsIStyleContext* aRootContext, FILE* out, PRInt32 aIndent)