mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-19 07:26:26 +00:00
Bug 52285 Kill compiler warnings in layout/xul
patch by mozilla-bugs@nogin.org r=timeless sr=dbaron
This commit is contained in:
parent
b6b14bf40e
commit
89b152a580
@ -363,7 +363,6 @@ nsGrid::BuildRows(nsIBox* aBox, PRBool aRowCount, nsGridRow** aRows, PRBool aIsH
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create the array
|
// create the array
|
||||||
PRInt32 count = 0;
|
|
||||||
nsGridRow* row;
|
nsGridRow* row;
|
||||||
|
|
||||||
// only create new rows if we have to. Reuse old rows.
|
// only create new rows if we have to. Reuse old rows.
|
||||||
|
@ -78,7 +78,6 @@ NS_IMETHODIMP
|
|||||||
nsGridRowLeafFrame::GetBorderAndPadding(nsMargin& aBorderAndPadding)
|
nsGridRowLeafFrame::GetBorderAndPadding(nsMargin& aBorderAndPadding)
|
||||||
{
|
{
|
||||||
// if our columns have made our padding larger add it in.
|
// if our columns have made our padding larger add it in.
|
||||||
nsMargin borderPadding(0,0,0,0);
|
|
||||||
nsresult rv = nsBoxFrame::GetBorderAndPadding(aBorderAndPadding);
|
nsresult rv = nsBoxFrame::GetBorderAndPadding(aBorderAndPadding);
|
||||||
|
|
||||||
nsCOMPtr<nsIBoxLayout> layout;
|
nsCOMPtr<nsIBoxLayout> layout;
|
||||||
|
@ -99,7 +99,7 @@ nsBox::ListBox(nsAutoString& aResult)
|
|||||||
GetBoxName(name);
|
GetBoxName(name);
|
||||||
|
|
||||||
char addr[100];
|
char addr[100];
|
||||||
sprintf(addr, "[@%p] ", frame);
|
sprintf(addr, "[@%p] ", NS_STATIC_CAST(void*, frame));
|
||||||
|
|
||||||
aResult.AppendWithConversion(addr);
|
aResult.AppendWithConversion(addr);
|
||||||
aResult.Append(name);
|
aResult.Append(name);
|
||||||
@ -664,7 +664,6 @@ nsBox::GetBorder(nsMargin& aMargin)
|
|||||||
(const nsStyleStruct*&) disp);
|
(const nsStyleStruct*&) disp);
|
||||||
if (disp->mAppearance && gTheme) {
|
if (disp->mAppearance && gTheme) {
|
||||||
// Go to the theme for the border.
|
// Go to the theme for the border.
|
||||||
nsSize size;
|
|
||||||
nsCOMPtr<nsIContent> content;
|
nsCOMPtr<nsIContent> content;
|
||||||
frame->GetContent(getter_AddRefs(content));
|
frame->GetContent(getter_AddRefs(content));
|
||||||
if (content) {
|
if (content) {
|
||||||
|
@ -645,7 +645,7 @@ nsBoxToBlockAdaptor::DoLayout(nsBoxLayoutState& aState)
|
|||||||
nsIPresContext* presContext = aState.GetPresContext();
|
nsIPresContext* presContext = aState.GetPresContext();
|
||||||
nsReflowStatus status = NS_FRAME_COMPLETE;
|
nsReflowStatus status = NS_FRAME_COMPLETE;
|
||||||
nsHTMLReflowMetrics desiredSize(nsnull);
|
nsHTMLReflowMetrics desiredSize(nsnull);
|
||||||
nsresult rv;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
if (reflowState) {
|
if (reflowState) {
|
||||||
|
|
||||||
|
@ -282,8 +282,7 @@ nsImageBoxFrame::AttributeChanged(nsIPresContext* aPresContext,
|
|||||||
Redraw(state);
|
Redraw(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return rv;
|
||||||
return NS_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nsImageBoxFrame::nsImageBoxFrame(nsIPresShell* aShell):nsLeafBoxFrame(aShell), mIntrinsicSize(0,0),
|
nsImageBoxFrame::nsImageBoxFrame(nsIPresShell* aShell):nsLeafBoxFrame(aShell), mIntrinsicSize(0,0),
|
||||||
|
@ -2140,7 +2140,7 @@ nsMenuPopupFrame::AttributeChanged(nsIPresContext* aPresContext,
|
|||||||
if (aAttribute == nsXULAtoms::left || aAttribute == nsXULAtoms::top)
|
if (aAttribute == nsXULAtoms::left || aAttribute == nsXULAtoms::top)
|
||||||
MoveToAttributePosition();
|
MoveToAttributePosition();
|
||||||
|
|
||||||
return NS_OK;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -628,8 +628,7 @@ nsScrollBoxFrame::Paint(nsIPresContext* aPresContext,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Paint our children
|
// Paint our children
|
||||||
nsresult rv = nsBoxFrame::Paint(aPresContext, aRenderingContext, aDirtyRect,
|
nsBoxFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
|
||||||
aWhichLayer);
|
|
||||||
|
|
||||||
// Call nsFrame::Paint to draw selection border when appropriate
|
// Call nsFrame::Paint to draw selection border when appropriate
|
||||||
return nsFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
|
return nsFrame::Paint(aPresContext, aRenderingContext, aDirtyRect, aWhichLayer);
|
||||||
|
@ -817,7 +817,6 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||||||
nsIBox* childBox = nsnull;
|
nsIBox* childBox = nsnull;
|
||||||
mParentBox->GetChildBox(&childBox);
|
mParentBox->GetChildBox(&childBox);
|
||||||
|
|
||||||
PRBool skip = PR_FALSE;
|
|
||||||
while (nsnull != childBox)
|
while (nsnull != childBox)
|
||||||
{
|
{
|
||||||
nsIFrame* childFrame = nsnull;
|
nsIFrame* childFrame = nsnull;
|
||||||
|
@ -264,8 +264,6 @@ nsStackLayout::Layout(nsIBox* aBox, nsBoxLayoutState& aState)
|
|||||||
nsRect clientRect;
|
nsRect clientRect;
|
||||||
aBox->GetClientRect(clientRect);
|
aBox->GetClientRect(clientRect);
|
||||||
|
|
||||||
nsRect childRect;
|
|
||||||
|
|
||||||
PRBool grow;
|
PRBool grow;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
@ -437,8 +437,6 @@ SetTitletipLabel(nsITreeBoxObject* aTreeBox, nsIContent* aTooltip,
|
|||||||
nsresult
|
nsresult
|
||||||
nsXULTooltipListener::LaunchTooltip(nsIContent* aTarget, PRInt32 aX, PRInt32 aY)
|
nsXULTooltipListener::LaunchTooltip(nsIContent* aTarget, PRInt32 aX, PRInt32 aY)
|
||||||
{
|
{
|
||||||
nsresult rv = NS_OK;
|
|
||||||
|
|
||||||
if (!mCurrentTooltip)
|
if (!mCurrentTooltip)
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user