Remove nsIFrame::ContentStateChanged. b=207822 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2003-06-01 20:18:53 +00:00
parent 61083ede85
commit 1bc80bcc0c
8 changed files with 2 additions and 66 deletions

View File

@ -10325,10 +10325,6 @@ nsCSSFrameConstructor::ContentStatesChanged(nsIPresContext* aPresContext,
result = RecreateFramesForContent(aPresContext, aContent1);
changeList.Clear();
} else {
if (frameChange & ~(nsChangeHint_AttrChange | nsChangeHint_Aural)) {
// let primary frame deal with it
result = primaryFrame1->ContentStateChanged(aPresContext, aContent1, frameChange);
}
ProcessRestyledFrames(changeList, aPresContext);
}
}
@ -10357,11 +10353,7 @@ nsCSSFrameConstructor::ContentStatesChanged(nsIPresContext* aPresContext,
result = RecreateFramesForContent(aPresContext, aContent2);
changeList.Clear();
} else {
if (frameChange & ~(nsChangeHint_AttrChange | nsChangeHint_Aural)) {
// let primary frame deal with it
result = primaryFrame2->ContentStateChanged(aPresContext, aContent2, frameChange);
}
// then process any children that need it
// process any children that need it
ProcessRestyledFrames(changeList, aPresContext);
}
}

View File

@ -861,19 +861,6 @@ public:
PRInt32 aModType,
PRInt32 aHint) = 0;
/**
* This call is invoked when the value of a content object's state
* is changed.
* The first frame that maps that content is asked to deal
* with the change by doing whatever is appropriate.
*
* @param aChild the content object
* @param aHint the level of change that has already been dealt with
*/
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint) = 0;
/**
* Return how your frame can be split.
*/

View File

@ -2355,14 +2355,6 @@ nsFrame::AttributeChanged(nsIPresContext* aPresContext,
return NS_OK;
}
NS_IMETHODIMP
nsFrame::ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint)
{
return NS_OK;
}
// Flow member functions
NS_IMETHODIMP nsFrame::IsSplittable(nsSplittableType& aIsSplittable) const

View File

@ -234,9 +234,6 @@ public:
nsIAtom* aAttribute,
PRInt32 aModType,
PRInt32 aHint);
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint);
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;
NS_IMETHOD GetPrevInFlow(nsIFrame** aPrevInFlow) const;
NS_IMETHOD SetPrevInFlow(nsIFrame*);

View File

@ -861,19 +861,6 @@ public:
PRInt32 aModType,
PRInt32 aHint) = 0;
/**
* This call is invoked when the value of a content object's state
* is changed.
* The first frame that maps that content is asked to deal
* with the change by doing whatever is appropriate.
*
* @param aChild the content object
* @param aHint the level of change that has already been dealt with
*/
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint) = 0;
/**
* Return how your frame can be split.
*/

View File

@ -2355,14 +2355,6 @@ nsFrame::AttributeChanged(nsIPresContext* aPresContext,
return NS_OK;
}
NS_IMETHODIMP
nsFrame::ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint)
{
return NS_OK;
}
// Flow member functions
NS_IMETHODIMP nsFrame::IsSplittable(nsSplittableType& aIsSplittable) const

View File

@ -234,9 +234,6 @@ public:
nsIAtom* aAttribute,
PRInt32 aModType,
PRInt32 aHint);
NS_IMETHOD ContentStateChanged(nsIPresContext* aPresContext,
nsIContent* aChild,
PRInt32 aHint);
NS_IMETHOD IsSplittable(nsSplittableType& aIsSplittable) const;
NS_IMETHOD GetPrevInFlow(nsIFrame** aPrevInFlow) const;
NS_IMETHOD SetPrevInFlow(nsIFrame*);

View File

@ -10325,10 +10325,6 @@ nsCSSFrameConstructor::ContentStatesChanged(nsIPresContext* aPresContext,
result = RecreateFramesForContent(aPresContext, aContent1);
changeList.Clear();
} else {
if (frameChange & ~(nsChangeHint_AttrChange | nsChangeHint_Aural)) {
// let primary frame deal with it
result = primaryFrame1->ContentStateChanged(aPresContext, aContent1, frameChange);
}
ProcessRestyledFrames(changeList, aPresContext);
}
}
@ -10357,11 +10353,7 @@ nsCSSFrameConstructor::ContentStatesChanged(nsIPresContext* aPresContext,
result = RecreateFramesForContent(aPresContext, aContent2);
changeList.Clear();
} else {
if (frameChange & ~(nsChangeHint_AttrChange | nsChangeHint_Aural)) {
// let primary frame deal with it
result = primaryFrame2->ContentStateChanged(aPresContext, aContent2, frameChange);
}
// then process any children that need it
// process any children that need it
ProcessRestyledFrames(changeList, aPresContext);
}
}