зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 313173 and bug 312784 -- make sure to rebuild stuff as needed. r=neil, sr=roc
This commit is contained in:
Родитель
295969203b
Коммит
d0ad850b4e
|
@ -285,6 +285,39 @@ nsGridLayout2::GetRowCount(PRInt32& aRowCount)
|
||||||
return NS_OK;
|
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_ADDREF_INHERITED(nsGridLayout2, nsStackLayout)
|
||||||
NS_IMPL_RELEASE_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 BuildRows(nsIBox* aBox, nsGridRow* aRows, PRInt32* aCount);
|
||||||
NS_IMETHOD GetTotalMargin(nsIBox* aBox, nsMargin& aMargin, PRBool aIsHorizontal);
|
NS_IMETHOD GetTotalMargin(nsIBox* aBox, nsMargin& aMargin, PRBool aIsHorizontal);
|
||||||
NS_IMETHOD GetRowCount(PRInt32& aRowCount);
|
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:
|
protected:
|
||||||
|
|
||||||
nsGridLayout2(nsIPresShell* aShell);
|
nsGridLayout2(nsIPresShell* aShell);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче