Bug 138138, attempting to fix smoketest/topcrasher again. Patch from jst, r=varga@utcru.sk, sr=heikki, a=lpham.
git-svn-id: svn://10.0.0.236/trunk@119831 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
93d75dde6f
commit
7695b6b43e
@ -156,7 +156,7 @@ nsBoxObject::SetDocument(nsIDocument* aDocument)
|
||||
NS_IMETHODIMP
|
||||
nsBoxObject::InvalidatePresentationStuff()
|
||||
{
|
||||
// Nothing to do here, subclasses might care though...
|
||||
mPresShell = nsnull;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
@ -260,7 +260,9 @@ nsListBoxObject::GetListBoxBody()
|
||||
NS_IMETHODIMP
|
||||
nsListBoxObject::InvalidatePresentationStuff()
|
||||
{
|
||||
return SetPropertyAsSupports(NS_LITERAL_STRING("listboxbody").get(), nsnull);
|
||||
SetPropertyAsSupports(NS_LITERAL_STRING("listboxbody").get(), nsnull);
|
||||
|
||||
return nsBoxObject::InvalidatePresentationStuff();
|
||||
}
|
||||
|
||||
// Creation Routine ///////////////////////////////////////////////////////////////////////
|
||||
|
||||
@ -61,6 +61,7 @@ public:
|
||||
//NS_PIBOXOBJECT interfaces
|
||||
NS_IMETHOD Init(nsIContent* aContent, nsIPresShell* aPresShell);
|
||||
NS_IMETHOD SetDocument(nsIDocument* aDocument);
|
||||
NS_IMETHOD InvalidatePresentationStuff();
|
||||
|
||||
nsITreeBoxObject* mTreeBody;
|
||||
};
|
||||
@ -88,6 +89,15 @@ nsTreeBoxObject::SetDocument(nsIDocument* aDocument)
|
||||
return nsBoxObject::SetDocument(aDocument);
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsTreeBoxObject::InvalidatePresentationStuff()
|
||||
{
|
||||
SetPropertyAsSupports(NS_LITERAL_STRING("treebody").get(), nsnull);
|
||||
SetPropertyAsSupports(NS_LITERAL_STRING("view").get(), nsnull);
|
||||
|
||||
return nsBoxObject::InvalidatePresentationStuff();
|
||||
}
|
||||
|
||||
nsTreeBoxObject::nsTreeBoxObject()
|
||||
:mTreeBody(nsnull)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user