Bug 475197. box-shadow should work on file input controls. r+sr=roc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user