diff options
| author | Steve Block <steveblock@google.com> | 2010-05-26 10:11:43 +0100 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2010-05-27 11:14:42 +0100 |
| commit | e78cbe89e6f337f2f1fe40315be88f742b547151 (patch) | |
| tree | d778000b84a04f24bbad50c7fa66244365e960e9 /WebKit/chromium/src/ChromiumBridge.cpp | |
| parent | 7b582e96e4e909ed7dba1e07153d20fbddaec3f7 (diff) | |
| download | external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.zip external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.gz external_webkit-e78cbe89e6f337f2f1fe40315be88f742b547151.tar.bz2 | |
Merge WebKit at r60074: Initial merge by git
Change-Id: I18a2dc5439e36c928351ea829d8fb4e39b062fc7
Diffstat (limited to 'WebKit/chromium/src/ChromiumBridge.cpp')
| -rw-r--r-- | WebKit/chromium/src/ChromiumBridge.cpp | 53 |
1 files changed, 14 insertions, 39 deletions
diff --git a/WebKit/chromium/src/ChromiumBridge.cpp b/WebKit/chromium/src/ChromiumBridge.cpp index d188016..01e91a6 100644 --- a/WebKit/chromium/src/ChromiumBridge.cpp +++ b/WebKit/chromium/src/ChromiumBridge.cpp @@ -278,86 +278,61 @@ void ChromiumBridge::prefetchDNS(const String& hostname) bool ChromiumBridge::fileExists(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->fileExists(path); - return webKitClient()->fileExists(path); + return webKitClient()->fileSystem()->fileExists(path); } bool ChromiumBridge::deleteFile(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->deleteFile(path); - return webKitClient()->deleteFile(path); + return webKitClient()->fileSystem()->deleteFile(path); } bool ChromiumBridge::deleteEmptyDirectory(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->deleteEmptyDirectory(path); - return webKitClient()->deleteEmptyDirectory(path); + return webKitClient()->fileSystem()->deleteEmptyDirectory(path); } bool ChromiumBridge::getFileSize(const String& path, long long& result) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->getFileSize(path, result); - return webKitClient()->getFileSize(path, result); + return webKitClient()->fileSystem()->getFileSize(path, result); } bool ChromiumBridge::getFileModificationTime(const String& path, time_t& result) { double modificationTime; - if (webKitClient()->fileSystem()) { - if (!webKitClient()->fileSystem()->getFileModificationTime(path, modificationTime)) - return false; - } else { - if (!webKitClient()->getFileModificationTime(path, modificationTime)) - return false; - } + if (!webKitClient()->fileSystem()->getFileModificationTime(path, modificationTime)) + return false; result = static_cast<time_t>(modificationTime); return true; } String ChromiumBridge::directoryName(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->directoryName(path); - return webKitClient()->directoryName(path); + return webKitClient()->fileSystem()->directoryName(path); } String ChromiumBridge::pathByAppendingComponent(const String& path, const String& component) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->pathByAppendingComponent(path, component); - return webKitClient()->pathByAppendingComponent(path, component); + return webKitClient()->fileSystem()->pathByAppendingComponent(path, component); } bool ChromiumBridge::makeAllDirectories(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->makeAllDirectories(path); - return webKitClient()->makeAllDirectories(path); + return webKitClient()->fileSystem()->makeAllDirectories(path); } String ChromiumBridge::getAbsolutePath(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->getAbsolutePath(path); - return webKitClient()->getAbsolutePath(path); + return webKitClient()->fileSystem()->getAbsolutePath(path); } bool ChromiumBridge::isDirectory(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->isDirectory(path); - return webKitClient()->isDirectory(path); + return webKitClient()->fileSystem()->isDirectory(path); } KURL ChromiumBridge::filePathToURL(const String& path) { - if (webKitClient()->fileSystem()) - return webKitClient()->fileSystem()->filePathToURL(path); - return webKitClient()->filePathToURL(path); + return webKitClient()->fileSystem()->filePathToURL(path); } PlatformFileHandle ChromiumBridge::openFile(const String& path, FileOpenMode mode) @@ -680,10 +655,10 @@ void ChromiumBridge::paintTrackbar( } void ChromiumBridge::paintProgressBar( - GraphicsContext* gc, const IntRect& barRect, int valuePart, const IntRect& valueRect) + GraphicsContext* gc, const IntRect& barRect, const IntRect& valueRect, bool determinate, double animatedSeconds) { webKitClient()->themeEngine()->paintProgressBar( - gc->platformContext()->canvas(), barRect, valuePart, valueRect); + gc->platformContext()->canvas(), barRect, valueRect, determinate, animatedSeconds); } #endif |
