mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Make nsIFrame::DisplaySelectionOverlay take an nsDisplayList* instead of nsDisplayListSet&. (Bug 485501) r=roc a2.0=blocking:beta6
This commit is contained in:
parent
9eb3bf0d24
commit
977bd2e2c8
@ -1375,7 +1375,7 @@ nsComboboxControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
}
|
||||
}
|
||||
|
||||
return DisplaySelectionOverlay(aBuilder, aLists);
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
}
|
||||
|
||||
void nsComboboxControlFrame::PaintFocus(nsIRenderingContext& aRenderingContext,
|
||||
|
@ -686,7 +686,7 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
return rv;
|
||||
}
|
||||
|
||||
return DisplaySelectionOverlay(aBuilder, aLists);
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
}
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
|
@ -193,7 +193,7 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// to draw border when selected in editor
|
||||
return DisplaySelectionOverlay(aBuilder, aLists);
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
}
|
||||
|
||||
nscoord
|
||||
|
@ -1011,7 +1011,7 @@ void nsDisplaySelectionOverlay::Paint(nsDisplayListBuilder* aBuilder,
|
||||
|
||||
nsresult
|
||||
nsFrame::DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder,
|
||||
const nsDisplayListSet& aLists,
|
||||
nsDisplayList* aList,
|
||||
PRUint16 aContentType)
|
||||
{
|
||||
//check frame selection state
|
||||
@ -1058,7 +1058,7 @@ nsFrame::DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder,
|
||||
details = next;
|
||||
}
|
||||
|
||||
return aLists.Content()->AppendNewToTop(new (aBuilder)
|
||||
return aList->AppendNewToTop(new (aBuilder)
|
||||
nsDisplaySelectionOverlay(aBuilder, this, selectionValue));
|
||||
}
|
||||
|
||||
|
@ -549,7 +549,7 @@ protected:
|
||||
* which kind of content this is for
|
||||
*/
|
||||
nsresult DisplaySelectionOverlay(nsDisplayListBuilder* aBuilder,
|
||||
const nsDisplayListSet& aLists, PRUint16 aContentType = nsISelectionDisplay::DISPLAY_FRAMES);
|
||||
nsDisplayList* aList, PRUint16 aContentType = nsISelectionDisplay::DISPLAY_FRAMES);
|
||||
|
||||
PRInt16 DisplaySelection(nsPresContext* aPresContext, PRBool isOkToTurnOn = PR_FALSE);
|
||||
|
||||
|
@ -287,7 +287,7 @@ nsHTMLCanvasFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
new (aBuilder) nsDisplayCanvas(aBuilder, this));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return DisplaySelectionOverlay(aBuilder, aLists,
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content(),
|
||||
nsISelectionDisplay::DISPLAY_IMAGES);
|
||||
}
|
||||
|
||||
|
@ -1357,7 +1357,7 @@ nsImageFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
}
|
||||
#endif
|
||||
|
||||
return DisplaySelectionOverlay(aBuilder, aLists,
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content(),
|
||||
nsISelectionDisplay::DISPLAY_IMAGES);
|
||||
}
|
||||
|
||||
|
@ -194,7 +194,7 @@ nsInlineFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
// normally don't have any size, but in Editor we use CSS to display
|
||||
// an image to represent this "hidden" element.
|
||||
if (!mFrames.FirstChild()) {
|
||||
rv = DisplaySelectionOverlay(aBuilder, aLists);
|
||||
rv = DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
@ -1334,7 +1334,7 @@ nsBoxFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// see if we have to draw a selection frame around this container
|
||||
rv = DisplaySelectionOverlay(aBuilder, destination);
|
||||
rv = DisplaySelectionOverlay(aBuilder, destination.Content());
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
if (forceLayer) {
|
||||
|
Loading…
Reference in New Issue
Block a user