Bug 840902. Part 1: Stop checking the results of various display list methods. r=mattwoodrow
This commit is contained in:
@@ -117,17 +117,14 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
{
|
||||
nsDisplayList onTop;
|
||||
if (IsVisibleForPainting(aBuilder)) {
|
||||
nsresult rv = mRenderer.DisplayButton(aBuilder, aLists.BorderBackground(), &onTop);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
mRenderer.DisplayButton(aBuilder, aLists.BorderBackground(), &onTop);
|
||||
}
|
||||
|
||||
nsDisplayListCollection set;
|
||||
// Do not allow the child subtree to receive events.
|
||||
if (!aBuilder->IsForEventDelivery()) {
|
||||
nsresult rv =
|
||||
BuildDisplayListForChild(aBuilder, mFrames.FirstChild(), aDirtyRect, set,
|
||||
DISPLAY_CHILD_FORCE_PSEUDO_STACKING_CONTEXT);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
BuildDisplayListForChild(aBuilder, mFrames.FirstChild(), aDirtyRect, set,
|
||||
DISPLAY_CHILD_FORCE_PSEUDO_STACKING_CONTEXT);
|
||||
// That should put the display items in set.Content()
|
||||
}
|
||||
|
||||
@@ -143,17 +140,16 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nscoord radii[8];
|
||||
GetPaddingBoxBorderRadii(radii);
|
||||
|
||||
nsresult rv = OverflowClip(aBuilder, set, aLists, rect, radii);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
OverflowClip(aBuilder, set, aLists, rect, radii);
|
||||
} else {
|
||||
set.MoveTo(aLists);
|
||||
}
|
||||
|
||||
nsresult rv = DisplayOutline(aBuilder, aLists);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
DisplayOutline(aBuilder, aLists);
|
||||
|
||||
// to draw border when selected in editor
|
||||
return DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
DisplaySelectionOverlay(aBuilder, aLists.Content());
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nscoord
|
||||
|
||||
Reference in New Issue
Block a user