Guest User

Untitled

a guest
Nov 17th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. diff --git a/Source/WebCore/platform/qt/RenderThemeQt.cpp b/Source/WebCore/platform/qt/RenderThemeQt.cpp
  2. index 8846ee7..1de8153 100644
  3. --- a/Source/WebCore/platform/qt/RenderThemeQt.cpp
  4. +++ b/Source/WebCore/platform/qt/RenderThemeQt.cpp
  5. @@ -867,7 +867,7 @@ String RenderThemeQt::fileListNameForWidth(const FileList* fileList, const Font&
  6. int n = fileList->length();
  7. string = QCoreApplication::translate("QWebPage", "%n file(s)",
  8. "number of chosen file",
  9. - QCoreApplication::DefaultCodec, n);
  10. + n);
  11. }
  12.  
  13. return string;
  14. diff --git a/Source/WebCore/platform/qt/SharedTimerQt.cpp b/Source/WebCore/platform/qt/SharedTimerQt.cpp
  15. index cebfea6..aaca428 100644
  16. --- a/Source/WebCore/platform/qt/SharedTimerQt.cpp
  17. +++ b/Source/WebCore/platform/qt/SharedTimerQt.cpp
  18. @@ -33,7 +33,7 @@
  19. #include <QBasicTimer>
  20. #include <QCoreApplication>
  21. #include <QDebug>
  22. -#include <QWeakPointer>
  23. +#include <QPointer>
  24. #include <wtf/CurrentTime.h>
  25.  
  26. namespace WebCore {
  27. @@ -83,7 +83,7 @@ void SharedTimerQt::destroy()
  28.  
  29. SharedTimerQt* SharedTimerQt::inst()
  30. {
  31. - static QWeakPointer<SharedTimerQt> timer;
  32. + static QPointer<SharedTimerQt> timer;
  33. if (!timer) {
  34. timer = new SharedTimerQt();
  35. timer.data()->connect(QCoreApplication::instance(), SIGNAL(aboutToQuit()), SLOT(destroy()));
  36. diff --git a/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp b/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
  37. index 8684f1c..b206692 100644
  38. --- a/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
  39. +++ b/Source/WebKit2/WebProcess/WebCoreSupport/qt/WebErrorsQt.cpp
  40. @@ -43,7 +43,7 @@ namespace WebKit {
  41. ResourceError cancelledError(const ResourceRequest& request)
  42. {
  43. ResourceError error = ResourceError("QtNetwork", QNetworkReply::OperationCanceledError, request.url().string(),
  44. - QCoreApplication::translate("QWebFrame", "Request cancelled", 0, QCoreApplication::UnicodeUTF8));
  45. + QCoreApplication::translate("QWebFrame", "Request cancelled", 0));
  46. error.setIsCancellation(true);
  47. return error;
  48. }
  49. @@ -51,37 +51,37 @@ ResourceError cancelledError(const ResourceRequest& request)
  50. ResourceError blockedError(const ResourceRequest& request)
  51. {
  52. return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotUseRestrictedPort, request.url().string(),
  53. - QCoreApplication::translate("QWebFrame", "Request blocked", 0, QCoreApplication::UnicodeUTF8));
  54. + QCoreApplication::translate("QWebFrame", "Request blocked", 0));
  55. }
  56.  
  57. ResourceError cannotShowURLError(const ResourceRequest& request)
  58. {
  59. return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotShowURL, request.url().string(),
  60. - QCoreApplication::translate("QWebFrame", "Cannot show URL", 0, QCoreApplication::UnicodeUTF8));
  61. + QCoreApplication::translate("QWebFrame", "Cannot show URL", 0));
  62. }
  63.  
  64. ResourceError interruptedForPolicyChangeError(const ResourceRequest& request)
  65. {
  66. return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeFrameLoadInterruptedByPolicyChange, request.url().string(),
  67. - QCoreApplication::translate("QWebFrame", "Frame load interrupted by policy change", 0, QCoreApplication::UnicodeUTF8));
  68. + QCoreApplication::translate("QWebFrame", "Frame load interrupted by policy change", 0));
  69. }
  70.  
  71. ResourceError cannotShowMIMETypeError(const ResourceResponse& response)
  72. {
  73. return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodeCannotShowMIMEType, response.url().string(),
  74. - QCoreApplication::translate("QWebFrame", "Cannot show mimetype", 0, QCoreApplication::UnicodeUTF8));
  75. + QCoreApplication::translate("QWebFrame", "Cannot show mimetype", 0));
  76. }
  77.  
  78. ResourceError fileDoesNotExistError(const ResourceResponse& response)
  79. {
  80. return ResourceError("QtNetwork", QNetworkReply::ContentNotFoundError, response.url().string(),
  81. - QCoreApplication::translate("QWebFrame", "File does not exist", 0, QCoreApplication::UnicodeUTF8));
  82. + QCoreApplication::translate("QWebFrame", "File does not exist", 0));
  83. }
  84.  
  85. ResourceError pluginWillHandleLoadError(const ResourceResponse& response)
  86. {
  87. return ResourceError(WebError::webKitErrorDomain(), kWKErrorCodePlugInWillHandleLoad, response.url().string(),
  88. - QCoreApplication::translate("QWebFrame", "Loading is handled by the media engine", 0, QCoreApplication::UnicodeUTF8));
  89. + QCoreApplication::translate("QWebFrame", "Loading is handled by the media engine", 0));
  90. }
  91.  
  92. } // namespace WebKit
  93. diff --git a/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp b/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
  94. index 02a90ec..cfd2c1a 100644
  95. --- a/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
  96. +++ b/Source/WebKit2/WebProcess/qt/WebProcessQt.cpp
  97. @@ -98,7 +98,7 @@ void WebProcess::platformSetCacheModel(CacheModel cacheModel)
  98. // The Mac port of WebKit2 uses a fudge factor of 1000 here to account for misalignment, however,
  99. // that tends to overestimate the memory quite a bit (1 byte misalignment ~ 48 MiB misestimation).
  100. // We use 1024 * 1023 for now to keep the estimation error down to +/- ~1 MiB.
  101. - uint64_t freeVolumeSpace = WebCore::getVolumeFreeSizeForPath(diskCache->cacheDirectory().toAscii().constData()) / 1024 / 1023;
  102. + uint64_t freeVolumeSpace = WebCore::getVolumeFreeSizeForPath(diskCache->cacheDirectory().toLocal8Bit().constData()) / 1024 / 1023;
  103.  
  104. // The following variables are initialised to 0 because WebProcess::calculateCacheSizes might not
  105. // set them in some rare cases.
Add Comment
Please, Sign In to add comment