mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 229730 change NS_IF_ADDREF to NS_ADDREF in nsNativeScrollbarFrame::FindScrollbar
r=dbaron sr=dbaron
This commit is contained in:
parent
1fa5fad677
commit
1e62f705df
@ -159,7 +159,7 @@ nsNativeScrollbarFrame::FindScrollbar(nsIFrame* start, nsIFrame** outFrame,
|
||||
if (currContent && currContent->Tag() == nsXULAtoms::scrollbar) {
|
||||
*outContent = currContent;
|
||||
*outFrame = start;
|
||||
NS_IF_ADDREF(*outContent);
|
||||
NS_ADDREF(*outContent);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
@ -262,9 +262,9 @@ nsNativeScrollbarFrame::GetPrefSize(nsBoxLayoutState& aState, nsSize& aSize)
|
||||
native->GetNarrowSize(&narrowDimension);
|
||||
|
||||
if ( IsVertical() )
|
||||
aSize.width = narrowDimension * p2t;
|
||||
aSize.width = nscoord(narrowDimension * p2t);
|
||||
else
|
||||
aSize.height = narrowDimension * p2t;
|
||||
aSize.height = nscoord(narrowDimension * p2t);
|
||||
|
||||
// By now, we have both the content node for the scrollbar and the associated
|
||||
// scrollbar mediator (for outliner, if applicable). Hook up the scrollbar to
|
||||
|
Loading…
Reference in New Issue
Block a user