From e78cbe89e6f337f2f1fe40315be88f742b547151 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 26 May 2010 10:11:43 +0100 Subject: Merge WebKit at r60074: Initial merge by git Change-Id: I18a2dc5439e36c928351ea829d8fb4e39b062fc7 --- WebKit/chromium/src/ChromiumBridge.cpp | 53 +++++++++------------------------- 1 file changed, 14 insertions(+), 39 deletions(-) (limited to 'WebKit/chromium/src/ChromiumBridge.cpp') 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(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 -- cgit v1.1