mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 20:55:39 +00:00
grid fixes.
This commit is contained in:
parent
f87999942a
commit
0db13c201f
@ -30,6 +30,7 @@
|
||||
#include "nsMonumentLayout.h"
|
||||
#include "nsBoxLayoutState.h"
|
||||
#include "nsIBox.h"
|
||||
#include "nsIScrollableFrame.h"
|
||||
#include "nsBox.h"
|
||||
|
||||
//------ nsInfoListNodeImpl ----
|
||||
@ -334,15 +335,27 @@ nsMonumentLayout::GetOtherMonuments(nsIBox* aBox, nsBoxSizeList** aList)
|
||||
NS_IMETHODIMP
|
||||
nsMonumentLayout::GetOtherMonumentsAt(nsIBox* aBox, PRInt32 aIndexOfObelisk, nsBoxSizeList** aList, nsMonumentLayout* aRequestor)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
PRInt32 index = -1;
|
||||
nsIBox* child = nsnull;
|
||||
aBox->GetChildBox(&child);
|
||||
PRInt32 count = 0;
|
||||
while(child)
|
||||
{
|
||||
nsCOMPtr<nsIBox> childBox = child;
|
||||
nsCOMPtr<nsIScrollableFrame> scrollFrame = do_QueryInterface(child, &rv);
|
||||
if (scrollFrame) {
|
||||
nsIFrame* childFrame = nsnull;
|
||||
scrollFrame->GetScrolledFrame(nsnull, childFrame);
|
||||
if (!childFrame)
|
||||
return NS_ERROR_FAILURE;
|
||||
childBox = do_QueryInterface(childFrame);
|
||||
}
|
||||
|
||||
nsIBoxLayout* layout = nsnull;
|
||||
child->GetLayoutManager(&layout);
|
||||
nsresult rv = NS_OK;
|
||||
childBox->GetLayoutManager(&layout);
|
||||
|
||||
// only all monuments
|
||||
nsCOMPtr<nsIMonument> monument = do_QueryInterface(layout, &rv);
|
||||
if (NS_SUCCEEDED(rv) && monument)
|
||||
|
Loading…
Reference in New Issue
Block a user