Bug 475197. box-shadow should work on file input controls. r+sr=roc

This commit is contained in:
Michael Ventnor
2009-01-30 20:10:25 +13:00
parent 250dd2eead
commit e40e72703e
4 changed files with 61 additions and 0 deletions

View File

@@ -548,6 +548,13 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
const nsRect& aDirtyRect,
const nsDisplayListSet& aLists)
{
// box-shadow
if (GetStyleBorder()->mBoxShadow) {
nsresult rv = aLists.BorderBackground()->AppendNewToTop(new (aBuilder)
nsDisplayBoxShadow(this));
NS_ENSURE_SUCCESS(rv, rv);
}
// Our background is inherited to the text input, and we don't really want to
// paint it or out padding and borders (which we never have anyway, per
// styles in forms.css) -- doing it just makes us look ugly in some cases and