mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 09:19:28 +00:00
Fix bug 313173 and bug 312784 -- make sure to rebuild stuff as needed. r=neil, sr=roc
This commit is contained in:
parent
295969203b
commit
d0ad850b4e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user