Guest User

Untitled

a guest
Jul 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.68 KB | None | 0 0
  1. diff --git a/WebCore/WebCore.pri b/WebCore/WebCore.pri
  2. index 5043188..adcf3dd 100644
  3. --- a/WebCore/WebCore.pri
  4. +++ b/WebCore/WebCore.pri
  5. @@ -172,6 +172,7 @@ IDL_BINDINGS += \
  6. fileapi/FileEntry.idl \
  7. fileapi/FileEntrySync.idl \
  8. fileapi/FileError.idl \
  9. + fileapi/FileException.idl \
  10. fileapi/FileList.idl \
  11. fileapi/FileReader.idl \
  12. fileapi/FileSystemCallback.idl \
  13. diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
  14. index 54207b7..560e2be 100644
  15. --- a/WebCore/WebCore.pro
  16. +++ b/WebCore/WebCore.pro
  17. @@ -2,15 +2,19 @@
  18. CONFIG += building-libs
  19. CONFIG += depend_includepath
  20.  
  21. -v8:exists($$[QT_INSTALL_PREFIX]/src/3rdparty/v8/include/v8.h) {
  22. +V8_DIR = "$$[QT_INSTALL_PREFIX]/src/3rdparty/v8"
  23. +
  24. +v8:exists($${V8_DIR}/include/v8.h) {
  25. message(Using V8 with QtScript)
  26. QT += script
  27. - INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/v8/include
  28. + INCLUDEPATH += $${V8_DIR}/include
  29.  
  30. DEFINES *= V8_BINDING=1
  31. DEFINES += WTF_CHANGES=1
  32. DEFINES *= WTF_USE_V8=1
  33. DEFINES += USING_V8_SHARED
  34. +
  35. + linux-*:LIBS += -lv8
  36. }
  37.  
  38. symbian: {
  39. diff --git a/WebCore/bindings/scripts/CodeGeneratorV8.pm b/WebCore/bindings/scripts/CodeGeneratorV8.pm
  40. index 922da15..44580ca 100644
  41. --- a/WebCore/bindings/scripts/CodeGeneratorV8.pm
  42. +++ b/WebCore/bindings/scripts/CodeGeneratorV8.pm
  43. @@ -40,6 +40,7 @@ my @implFixedHeader = ();
  44. my @implContent = ();
  45. my @implContentDecls = ();
  46. my %implIncludes = ();
  47. +my %headerInclues = ();
  48.  
  49. my @allParents = ();
  50.  
  51. @@ -205,8 +206,11 @@ sub GetSVGPropertyTypes
  52. $implIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
  53. } elsif ($svgNativeType =~ /SVGTransformListPropertyTearOff/) {
  54. $svgListPropertyType = $svgWrappedNativeType;
  55. - $implIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
  56. - $implIncludes{"SVGTransformListPropertyTearOff.h"} = 1;
  57. + $headerIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
  58. + $headerIncludes{"SVGTransformListPropertyTearOff.h"} = 1;
  59. + } elsif ($svgNativeType =~ /SVGPathSegListPropertyTearOff/) {
  60. + $svgListPropertyType = $svgWrappedNativeType;
  61. + $headerIncludes{"SVGPathSegListPropertyTearOff.h"} = 1;
  62. }
  63.  
  64. if ($svgPropertyType) {
  65. @@ -234,7 +238,6 @@ sub GenerateHeader
  66. # - Add default header template
  67. push(@headerContent, GenerateHeaderContentHeader($dataNode));
  68.  
  69. - my %headerInclues = ();
  70. $headerIncludes{"wtf/text/StringHash.h"} = 1;
  71. $headerIncludes{"WrapperTypeInfo.h"} = 1;
  72. $headerIncludes{"V8DOMWrapper.h"} = 1;
  73. @@ -250,7 +253,7 @@ sub GenerateHeader
  74.  
  75. push(@headerContent, "#include <v8.h>\n");
  76. push(@headerContent, "#include <wtf/HashMap.h>\n");
  77. -
  78. +
  79. push(@headerContent, "\nnamespace WebCore {\n");
  80. push(@headerContent, "\ntemplate<typename PropertyType> class SVGPropertyTearOff;\n") if $svgPropertyType;
  81. if ($svgNativeType) {
  82. diff --git a/WebCore/bindings/v8/ScriptControllerQt.cpp b/WebCore/bindings/v8/ScriptControllerQt.cpp
  83. index 246921e..11bcb01 100644
  84. --- a/WebCore/bindings/v8/ScriptControllerQt.cpp
  85. +++ b/WebCore/bindings/v8/ScriptControllerQt.cpp
  86. @@ -40,7 +40,7 @@ QScriptEngine* ScriptController::qtScriptEngine()
  87. v8::Context::Scope scope(v8Context);
  88. if (v8Context.IsEmpty())
  89. return 0;
  90. - m_qtScriptEngine = new QScriptEngine(QScriptEngine::AdoptCurrentContext);
  91. + m_qtScriptEngine = new QScriptEngine;
  92. }
  93. return m_qtScriptEngine.get();
  94. }
  95. diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp
  96. index b26882b..3eeacec 100644
  97. --- a/WebCore/bindings/v8/V8GCController.cpp
  98. +++ b/WebCore/bindings/v8/V8GCController.cpp
  99. @@ -444,7 +444,7 @@ void V8GCController::gcEpilogue()
  100.  
  101. void V8GCController::checkMemoryUsage()
  102. {
  103. -#if PLATFORM(CHROMIUM)
  104. +#if PLATFORM(CHROMIUM) || PLATFORM(QT) && !OS(SYMBIAN)
  105. // These values are appropriate for Chromium only.
  106. const int lowUsageMB = 256; // If memory usage is below this threshold, do not bother forcing GC.
  107. const int highUsageMB = 1024; // If memory usage is above this threshold, force GC more aggresively.
  108. diff --git a/WebCore/inspector/CodeGeneratorInspector.pm b/WebCore/inspector/CodeGeneratorInspector.pm
  109. index 8a3654d..177ca3b 100644
  110. --- a/WebCore/inspector/CodeGeneratorInspector.pm
  111. +++ b/WebCore/inspector/CodeGeneratorInspector.pm
  112. @@ -669,6 +669,7 @@ sub generateSource
  113. push(@sourceContent, "\n#include \"config.h\"");
  114. push(@sourceContent, "#include \"$className.h\"");
  115. push(@sourceContent, "#include <wtf/text/StringConcatenate.h>");
  116. + push(@sourceContent, "#include <wtf/text/CString.h>");
  117. push(@sourceContent, "");
  118. push(@sourceContent, "#if ENABLE(INSPECTOR)");
  119. push(@sourceContent, "");
  120. diff --git a/WebCore/loader/ResourceLoadScheduler.cpp b/WebCore/loader/ResourceLoadScheduler.cpp
  121. index 65d766b..7c50dc1 100644
  122. --- a/WebCore/loader/ResourceLoadScheduler.cpp
  123. +++ b/WebCore/loader/ResourceLoadScheduler.cpp
  124. @@ -35,6 +35,7 @@
  125. #include "ResourceLoader.h"
  126. #include "ResourceRequest.h"
  127. #include "SubresourceLoader.h"
  128. +#include <wtf/text/CString.h>
  129.  
  130. #define REQUEST_MANAGEMENT_ENABLED 1
  131.  
  132. diff --git a/WebCore/loader/cache/MemoryCache.cpp b/WebCore/loader/cache/MemoryCache.cpp
  133. index 79dfc03..fc6682a 100644
  134. --- a/WebCore/loader/cache/MemoryCache.cpp
  135. +++ b/WebCore/loader/cache/MemoryCache.cpp
  136. @@ -39,6 +39,7 @@
  137. #include "SecurityOrigin.h"
  138. #include <stdio.h>
  139. #include <wtf/CurrentTime.h>
  140. +#include <wtf/text/CString.h>
  141.  
  142. using namespace std;
  143.  
  144. diff --git a/WebCore/loader/loader.cpp b/WebCore/loader/loader.cpp
  145. index af4d7c7..1f2ced3 100644
  146. --- a/WebCore/loader/loader.cpp
  147. +++ b/WebCore/loader/loader.cpp
  148. @@ -39,6 +39,7 @@
  149. #include "SharedBuffer.h"
  150. #include <wtf/Assertions.h>
  151. #include <wtf/Vector.h>
  152. +#include <wtf/text/CString.h>
  153.  
  154. namespace WebCore {
Add Comment
Please, Sign In to add comment