mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Added ContentChanged() member function
This commit is contained in:
parent
d328fd0462
commit
b3c5708bd1
@ -316,6 +316,20 @@ public:
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInParent) = 0;
|
||||
|
||||
/**
|
||||
* This call is invoked when content is changed in the content tree.
|
||||
* The first frame that maps that content is asked to deal with the
|
||||
* change by generating an incremental reflow command which will be
|
||||
* to reflow the frame tree.
|
||||
*
|
||||
* @param aIndexInParent the index in the content container where
|
||||
* the new content was deleted.
|
||||
*/
|
||||
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent) = 0;
|
||||
|
||||
/**
|
||||
* Return the reflow metrics for this frame. If the frame is a
|
||||
* container then the values for ascent and descent are computed
|
||||
|
@ -716,6 +716,14 @@ NS_METHOD nsFrame::ContentDeleted(nsIPresShell* aShell,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsFrame::ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsFrame::GetReflowMetrics(nsIPresContext* aPresContext,
|
||||
nsReflowMetrics& aMetrics)
|
||||
{
|
||||
|
@ -122,6 +122,10 @@ public:
|
||||
nsIContent* aContainer,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInParent);
|
||||
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent);
|
||||
|
||||
NS_IMETHOD GetReflowMetrics(nsIPresContext* aPresContext,
|
||||
nsReflowMetrics& aMetrics);
|
||||
|
@ -316,6 +316,20 @@ public:
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInParent) = 0;
|
||||
|
||||
/**
|
||||
* This call is invoked when content is changed in the content tree.
|
||||
* The first frame that maps that content is asked to deal with the
|
||||
* change by generating an incremental reflow command which will be
|
||||
* to reflow the frame tree.
|
||||
*
|
||||
* @param aIndexInParent the index in the content container where
|
||||
* the new content was deleted.
|
||||
*/
|
||||
NS_IMETHOD ContentChanged(nsIPresShell* aShell,
|
||||
nsIPresContext* aPresContext,
|
||||
nsIContent* aChild,
|
||||
nsISupports* aSubContent) = 0;
|
||||
|
||||
/**
|
||||
* Return the reflow metrics for this frame. If the frame is a
|
||||
* container then the values for ascent and descent are computed
|
||||
|
Loading…
Reference in New Issue
Block a user