diff options
Diffstat (limited to 'WebCore/platform/android/FileChooserAndroid.cpp')
-rw-r--r-- | WebCore/platform/android/FileChooserAndroid.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/WebCore/platform/android/FileChooserAndroid.cpp b/WebCore/platform/android/FileChooserAndroid.cpp index 004b653..2c75373 100644 --- a/WebCore/platform/android/FileChooserAndroid.cpp +++ b/WebCore/platform/android/FileChooserAndroid.cpp @@ -32,8 +32,8 @@ namespace WebCore { String FileChooser::basenameForWidth(const Font& font, int width) const { - // FIXME: This could be a lot faster, but assuming the data will not often be - // much longer than the provided width, this may be fast enough. + // FIXME: This could be a lot faster, but assuming the data will not + // often be much longer than the provided width, this may be fast enough. String output = m_filenames[0].copy(); while (font.width(TextRun(output.impl())) > width && output.length() > 4) { output = output.replace(output.length() - 4, 4, String("...")); @@ -41,13 +41,19 @@ String FileChooser::basenameForWidth(const Font& font, int width) const return output; } - // The following two strings are used for File Upload form control, ie // <input type="file">. The first is the text that appears on the button // that when pressed, the user can browse for and select a file. The // second string is rendered on the screen when no file has been selected. -String fileButtonChooseFileLabel() { return String("Uploads Disabled"); } -String fileButtonNoFileSelectedLabel() { return String("No file selected"); } +String fileButtonChooseFileLabel() +{ + return String("Uploads Disabled"); +} + +String fileButtonNoFileSelectedLabel() +{ + return String("No file selected"); +} -} // WebCore +} // namesapce WebCore |