Fix bug 313173 and bug 312784 -- make sure to rebuild stuff as needed. r=neil, sr=roc

This commit is contained in:
bzbarsky%mit.edu 2005-10-21 17:29:06 +00:00
Родитель 295969203b
Коммит d0ad850b4e
2 изменённых файлов: 41 добавлений и 1 удалений

Просмотреть файл

@ -285,6 +285,39 @@ nsGridLayout2::GetRowCount(PRInt32& aRowCount)
return NS_OK;
}
NS_IMETHODIMP
nsGridLayout2::ChildrenInserted(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aPrevBox, nsIBox* aChildList)
{
mGrid.NeedsRebuild(aState);
return NS_OK;
}
NS_IMETHODIMP
nsGridLayout2::ChildrenAppended(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList)
{
mGrid.NeedsRebuild(aState);
return NS_OK;
}
NS_IMETHODIMP
nsGridLayout2::ChildrenRemoved(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList)
{
mGrid.NeedsRebuild(aState);
return NS_OK;
}
NS_IMETHODIMP
nsGridLayout2::ChildrenSet(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList)
{
mGrid.NeedsRebuild(aState);
return NS_OK;
}
NS_IMPL_ADDREF_INHERITED(nsGridLayout2, nsStackLayout)
NS_IMPL_RELEASE_INHERITED(nsGridLayout2, nsStackLayout)

Просмотреть файл

@ -75,7 +75,14 @@ public:
NS_IMETHOD BuildRows(nsIBox* aBox, nsGridRow* aRows, PRInt32* aCount);
NS_IMETHOD GetTotalMargin(nsIBox* aBox, nsMargin& aMargin, PRBool aIsHorizontal);
NS_IMETHOD GetRowCount(PRInt32& aRowCount);
NS_IMETHOD ChildrenInserted(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aPrevBox, nsIBox* aChildList);
NS_IMETHOD ChildrenAppended(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList);
NS_IMETHOD ChildrenRemoved(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList);
NS_IMETHOD ChildrenSet(nsIBox* aBox, nsBoxLayoutState& aState,
nsIBox* aChildList);
protected:
nsGridLayout2(nsIPresShell* aShell);