mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
make empty trees with rows=n size properly. a=ben
This commit is contained in:
parent
176da11932
commit
83cb346e32
@ -357,6 +357,15 @@ nsXULTreeOuterGroupFrame::Init(nsIPresContext* aPresContext, nsIContent* aConten
|
||||
nsCOMPtr<nsIScrollbarFrame> scrollbarFrame(do_QueryInterface(verticalScrollbar));
|
||||
scrollbarFrame->SetScrollbarMediator(this);
|
||||
|
||||
nsBoxLayoutState boxLayoutState(aPresContext);
|
||||
|
||||
const nsStyleFont* font = (const nsStyleFont*)aContext->GetStyleData(eStyleStruct_Font);
|
||||
nsCOMPtr<nsIDeviceContext> dc;
|
||||
aPresContext->GetDeviceContext(getter_AddRefs(dc));
|
||||
nsCOMPtr<nsIFontMetrics> fm;
|
||||
dc->GetMetricsFor(font->mFont, *getter_AddRefs(fm));
|
||||
fm->GetHeight(mRowHeight);
|
||||
|
||||
// Our frame's lifetime is bounded by the lifetime of the content model, so we're guaranteed
|
||||
// that the content node won't go away on us. As a result, our listener can't go away before the
|
||||
// frame is deleted. Since the content node holds owning references to our drag capturer, which
|
||||
|
Loading…
Reference in New Issue
Block a user