About 50% of the time, the URL renders without the "no file selected" placeholder text. Reloading sometimes makes it appear and sometimes makes it disappear.
Created attachment 10610 [details] Use a RenderBlock instead of a RenderFlexibleBox to hold the filename (Fix suggested by Hyatt) This patch fixes the problem by making RenderFileUploadInnerFileBox a subclass of RenderBlock instead of RenderFlexibleBox. Ultimately, we should handle the truncation of the filename in the engine, which would get rid of this problem in a much better way and we wouldn't need to call updateIconAndFilename() from within layout(). See rdar://problem/4736216 for more info.
Created attachment 10611 [details] Same fix, without change to project.pbxproj
Created attachment 10612 [details] For real this time
Comment on attachment 10612 [details] For real this time Need to update some test results. Coming soon.
Created attachment 10635 [details] Remove RenderFileUploadInnerFileBox and draw text ourselves, update layout tests This patch takes a completely different approach (also suggested by Hyatt). This does away with RenderFileUploadInnerFileBox and draws the filename text within paintObject() using drawText().
Comment on attachment 10635 [details] Remove RenderFileUploadInnerFileBox and draw text ourselves, update layout tests I think we still need to set white-space: nowrap on the button. Adam and I discussed this, and he's going to check that out before checking in.
Added back the NOWRAP rule. WebCore changes landed as r16448. LayoutTests changes landed as r16449.