From fae3f2c95b744f212b8b6503e89b43a4c71fbf92 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Mon, 6 Feb 2006 22:27:58 +0000 Subject: [PATCH] Add comment as promised; still bug 326019. git-svn-id: svn://10.0.0.236/trunk@189053 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/forms/nsFileControlFrame.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mozilla/layout/forms/nsFileControlFrame.cpp b/mozilla/layout/forms/nsFileControlFrame.cpp index 3bb454bab58..d658a88315c 100644 --- a/mozilla/layout/forms/nsFileControlFrame.cpp +++ b/mozilla/layout/forms/nsFileControlFrame.cpp @@ -603,6 +603,10 @@ nsFileControlFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder, const nsRect& aDirtyRect, const nsDisplayListSet& aLists) { + // 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 + // has no effect in others. nsDisplayListCollection tempList; nsresult rv = nsAreaFrame::BuildDisplayList(aBuilder, aDirtyRect, tempList); if (NS_FAILED(rv))