Bug 476308. Box-shadows for buttons should not capture events. r+sr=roc

This commit is contained in:
Michael Ventnor
2009-02-05 21:22:02 +13:00
parent d6a347a7ed
commit ed83d0a500
5 changed files with 43 additions and 21 deletions

View File

@@ -182,7 +182,11 @@ nsHTMLButtonControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
{
nsDisplayList onTop;
if (IsVisibleForPainting(aBuilder)) {
nsresult rv = mRenderer.DisplayButton(aBuilder, aLists.BorderBackground(), &onTop);
nsresult rv = aLists.BorderBackground()->AppendNewToTop(new (aBuilder)
nsDisplayBoxShadow(this));
NS_ENSURE_SUCCESS(rv, rv);
rv = mRenderer.DisplayButton(aBuilder, aLists.BorderBackground(), &onTop);
NS_ENSURE_SUCCESS(rv, rv);
}