parent
0d029998f5
commit
7816e88f62
@ -0,0 +1,27 @@
|
||||
From bef192680ca3c78493c064d7b4a21b79afa92c3e Mon Sep 17 00:00:00 2001
|
||||
From: Helio Chissini de Castro <helio@kde.org>
|
||||
Date: Wed, 31 May 2017 10:41:10 +0200
|
||||
Subject: [PATCH] qtwebengine-opensource-src-5.9.0-webrtc-neon-detect
|
||||
|
||||
---
|
||||
src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn | 4 +---
|
||||
1 file changed, 1 insertion(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn b/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn
|
||||
index 8bed25e27..b0cc2a5e3 100644
|
||||
--- a/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn
|
||||
+++ b/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn
|
||||
@@ -93,9 +93,7 @@ rtc_static_library("system_wrappers") {
|
||||
if (is_linux) {
|
||||
defines += [ "WEBRTC_THREAD_RR" ]
|
||||
|
||||
- if (!build_with_chromium) {
|
||||
- deps += [ ":cpu_features_linux" ]
|
||||
- }
|
||||
+ deps += [ ":cpu_features_linux" ]
|
||||
|
||||
libs += [ "rt" ]
|
||||
}
|
||||
--
|
||||
2.13.0
|
||||
|
@ -0,0 +1,54 @@
|
||||
From 60434d58353db516e795e12817e1953700f9e5e4 Mon Sep 17 00:00:00 2001
|
||||
From: Helio Chissini de Castro <helio@kde.org>
|
||||
Date: Wed, 31 May 2017 10:46:36 +0200
|
||||
Subject: [PATCH] qtwebengine-opensource-src-5.9.0-system-nspr-prtime
|
||||
|
||||
---
|
||||
src/3rdparty/chromium/base/BUILD.gn | 2 --
|
||||
src/3rdparty/chromium/base/time/pr_time_unittest.cc | 2 +-
|
||||
src/3rdparty/chromium/base/time/time.cc | 2 +-
|
||||
3 files changed, 2 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/src/3rdparty/chromium/base/BUILD.gn b/src/3rdparty/chromium/base/BUILD.gn
|
||||
index f2672cba7..66f2be1ff 100644
|
||||
--- a/src/3rdparty/chromium/base/BUILD.gn
|
||||
+++ b/src/3rdparty/chromium/base/BUILD.gn
|
||||
@@ -833,8 +833,6 @@ component("base") {
|
||||
"third_party/dmg_fp/g_fmt.cc",
|
||||
"third_party/icu/icu_utf.cc",
|
||||
"third_party/icu/icu_utf.h",
|
||||
- "third_party/nspr/prtime.cc",
|
||||
- "third_party/nspr/prtime.h",
|
||||
"third_party/superfasthash/superfasthash.c",
|
||||
"threading/non_thread_safe.h",
|
||||
"threading/non_thread_safe_impl.cc",
|
||||
diff --git a/src/3rdparty/chromium/base/time/pr_time_unittest.cc b/src/3rdparty/chromium/base/time/pr_time_unittest.cc
|
||||
index 3f1a348ae..8f1a11e51 100644
|
||||
--- a/src/3rdparty/chromium/base/time/pr_time_unittest.cc
|
||||
+++ b/src/3rdparty/chromium/base/time/pr_time_unittest.cc
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
-#include "base/third_party/nspr/prtime.h"
|
||||
+#include <nspr4/prtime.h>
|
||||
#include "base/time/time.h"
|
||||
#include "build/build_config.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
diff --git a/src/3rdparty/chromium/base/time/time.cc b/src/3rdparty/chromium/base/time/time.cc
|
||||
index 4e942015f..29fde71dd 100644
|
||||
--- a/src/3rdparty/chromium/base/time/time.cc
|
||||
+++ b/src/3rdparty/chromium/base/time/time.cc
|
||||
@@ -13,8 +13,8 @@
|
||||
#include "base/lazy_instance.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/macros.h"
|
||||
+#include <nspr4/prtime.h>
|
||||
#include "base/strings/stringprintf.h"
|
||||
-#include "base/third_party/nspr/prtime.h"
|
||||
#include "build/build_config.h"
|
||||
|
||||
namespace base {
|
||||
--
|
||||
2.13.0
|
||||
|
@ -0,0 +1,552 @@
|
||||
From 63abd7883643841941505c82d42589d8d6814478 Mon Sep 17 00:00:00 2001
|
||||
From: Helio Chissini de Castro <helio@kde.org>
|
||||
Date: Wed, 31 May 2017 11:16:12 +0200
|
||||
Subject: [PATCH] qtwebengine-opensource-src-5.9.0-system-icu-utf
|
||||
|
||||
---
|
||||
src/3rdparty/chromium/base/BUILD.gn | 2 --
|
||||
src/3rdparty/chromium/base/files/file_path.cc | 6 ++---
|
||||
src/3rdparty/chromium/base/json/json_parser.cc | 28 ++++++++++----------
|
||||
src/3rdparty/chromium/base/json/string_escape.cc | 2 +-
|
||||
src/3rdparty/chromium/base/strings/pattern.cc | 9 +++----
|
||||
src/3rdparty/chromium/base/strings/string_split.cc | 2 +-
|
||||
src/3rdparty/chromium/base/strings/string_util.cc | 10 ++++----
|
||||
.../base/strings/utf_string_conversion_utils.cc | 28 ++++++++++----------
|
||||
.../chromium/base/third_party/icu/icu_utf.cc | 30 +++++++++++-----------
|
||||
.../browser/devtools/devtools_io_context.cc | 4 +--
|
||||
.../chromium/net/cert/internal/parse_name.cc | 6 ++---
|
||||
.../chromium/ui/base/ime/input_method_chromeos.cc | 2 +-
|
||||
src/3rdparty/chromium/ui/gfx/utf16_indexing.cc | 4 +--
|
||||
13 files changed, 65 insertions(+), 68 deletions(-)
|
||||
|
||||
diff --git a/src/3rdparty/chromium/base/BUILD.gn b/src/3rdparty/chromium/base/BUILD.gn
|
||||
index 66f2be1ff..51faf08ad 100644
|
||||
--- a/src/3rdparty/chromium/base/BUILD.gn
|
||||
+++ b/src/3rdparty/chromium/base/BUILD.gn
|
||||
@@ -831,8 +831,6 @@ component("base") {
|
||||
"third_party/dmg_fp/dmg_fp.h",
|
||||
"third_party/dmg_fp/dtoa_wrapper.cc",
|
||||
"third_party/dmg_fp/g_fmt.cc",
|
||||
- "third_party/icu/icu_utf.cc",
|
||||
- "third_party/icu/icu_utf.h",
|
||||
"third_party/superfasthash/superfasthash.c",
|
||||
"threading/non_thread_safe.h",
|
||||
"threading/non_thread_safe_impl.cc",
|
||||
diff --git a/src/3rdparty/chromium/base/files/file_path.cc b/src/3rdparty/chromium/base/files/file_path.cc
|
||||
index cff862ae1..b17b46e5f 100644
|
||||
--- a/src/3rdparty/chromium/base/files/file_path.cc
|
||||
+++ b/src/3rdparty/chromium/base/files/file_path.cc
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#endif
|
||||
|
||||
#if defined(OS_WIN)
|
||||
@@ -1156,9 +1156,9 @@ inline int HFSReadNextNonIgnorableCodepoint(const char* string,
|
||||
int* index) {
|
||||
int codepoint = 0;
|
||||
while (*index < length && codepoint == 0) {
|
||||
- // CBU8_NEXT returns a value < 0 in error cases. For purposes of string
|
||||
+ // U8_NEXT returns a value < 0 in error cases. For purposes of string
|
||||
// comparison, we just use that value and flag it with DCHECK.
|
||||
- CBU8_NEXT(string, *index, length, codepoint);
|
||||
+ U8_NEXT(string, *index, length, codepoint);
|
||||
DCHECK_GT(codepoint, 0);
|
||||
if (codepoint > 0) {
|
||||
// Check if there is a subtable for this upper byte.
|
||||
diff --git a/src/3rdparty/chromium/base/json/json_parser.cc b/src/3rdparty/chromium/base/json/json_parser.cc
|
||||
index cd427da9e..82ff9773c 100644
|
||||
--- a/src/3rdparty/chromium/base/json/json_parser.cc
|
||||
+++ b/src/3rdparty/chromium/base/json/json_parser.cc
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "base/values.h"
|
||||
|
||||
namespace base {
|
||||
@@ -630,21 +630,21 @@ bool JSONParser::ConsumeStringRaw(StringBuilder* out) {
|
||||
|
||||
while (CanConsume(1)) {
|
||||
int start_index = index_;
|
||||
- pos_ = start_pos_ + index_; // CBU8_NEXT is postcrement.
|
||||
- CBU8_NEXT(start_pos_, index_, length, next_char);
|
||||
+ pos_ = start_pos_ + index_; // U8_NEXT is postcrement.
|
||||
+ U8_NEXT(start_pos_, index_, length, next_char);
|
||||
if (next_char < 0 || !IsValidCharacter(next_char)) {
|
||||
if ((options_ & JSON_REPLACE_INVALID_CHARACTERS) == 0) {
|
||||
ReportError(JSONReader::JSON_UNSUPPORTED_ENCODING, 1);
|
||||
return false;
|
||||
}
|
||||
- CBU8_NEXT(start_pos_, start_index, length, next_char);
|
||||
+ U8_NEXT(start_pos_, start_index, length, next_char);
|
||||
string.Convert();
|
||||
string.AppendString(kUnicodeReplacementString);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (next_char == '"') {
|
||||
- --index_; // Rewind by one because of CBU8_NEXT.
|
||||
+ --index_; // Rewind by one because of U8_NEXT.
|
||||
out->Swap(&string);
|
||||
return true;
|
||||
}
|
||||
@@ -774,10 +774,10 @@ bool JSONParser::DecodeUTF16(std::string* dest_string) {
|
||||
|
||||
// If this is a high surrogate, consume the next code unit to get the
|
||||
// low surrogate.
|
||||
- if (CBU16_IS_SURROGATE(code_unit16_high)) {
|
||||
+ if (U16_IS_SURROGATE(code_unit16_high)) {
|
||||
// Make sure this is the high surrogate. If not, it's an encoding
|
||||
// error.
|
||||
- if (!CBU16_IS_SURROGATE_LEAD(code_unit16_high))
|
||||
+ if (!U16_IS_SURROGATE_LEAD(code_unit16_high))
|
||||
return false;
|
||||
|
||||
// Make sure that the token has more characters to consume the
|
||||
@@ -794,24 +794,24 @@ bool JSONParser::DecodeUTF16(std::string* dest_string) {
|
||||
|
||||
NextNChars(3);
|
||||
|
||||
- if (!CBU16_IS_TRAIL(code_unit16_low)) {
|
||||
+ if (!U16_IS_TRAIL(code_unit16_low)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t code_point =
|
||||
- CBU16_GET_SUPPLEMENTARY(code_unit16_high, code_unit16_low);
|
||||
+ U16_GET_SUPPLEMENTARY(code_unit16_high, code_unit16_low);
|
||||
if (!IsValidCharacter(code_point))
|
||||
return false;
|
||||
|
||||
offset = 0;
|
||||
- CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
|
||||
+ U8_APPEND_UNSAFE(code_unit8, offset, code_point);
|
||||
} else {
|
||||
// Not a surrogate.
|
||||
- DCHECK(CBU16_IS_SINGLE(code_unit16_high));
|
||||
+ DCHECK(U16_IS_SINGLE(code_unit16_high));
|
||||
if (!IsValidCharacter(code_unit16_high))
|
||||
return false;
|
||||
|
||||
- CBU8_APPEND_UNSAFE(code_unit8, offset, code_unit16_high);
|
||||
+ U8_APPEND_UNSAFE(code_unit8, offset, code_unit16_high);
|
||||
}
|
||||
|
||||
dest_string->append(code_unit8);
|
||||
@@ -828,9 +828,9 @@ void JSONParser::DecodeUTF8(const int32_t& point, StringBuilder* dest) {
|
||||
} else {
|
||||
char utf8_units[4] = { 0 };
|
||||
int offset = 0;
|
||||
- CBU8_APPEND_UNSAFE(utf8_units, offset, point);
|
||||
+ U8_APPEND_UNSAFE(utf8_units, offset, point);
|
||||
dest->Convert();
|
||||
- // CBU8_APPEND_UNSAFE can overwrite up to 4 bytes, so utf8_units may not be
|
||||
+ // U8_APPEND_UNSAFE can overwrite up to 4 bytes, so utf8_units may not be
|
||||
// zero terminated at this point. |offset| contains the correct length.
|
||||
dest->AppendString(std::string(utf8_units, offset));
|
||||
}
|
||||
diff --git a/src/3rdparty/chromium/base/json/string_escape.cc b/src/3rdparty/chromium/base/json/string_escape.cc
|
||||
index f67fa93bf..907b80a73 100644
|
||||
--- a/src/3rdparty/chromium/base/json/string_escape.cc
|
||||
+++ b/src/3rdparty/chromium/base/json/string_escape.cc
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
diff --git a/src/3rdparty/chromium/base/strings/pattern.cc b/src/3rdparty/chromium/base/strings/pattern.cc
|
||||
index af30aab86..7df8f7255 100644
|
||||
--- a/src/3rdparty/chromium/base/strings/pattern.cc
|
||||
+++ b/src/3rdparty/chromium/base/strings/pattern.cc
|
||||
@@ -3,8 +3,7 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "base/strings/pattern.h"
|
||||
-
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
@@ -39,7 +38,7 @@ static void EatSameChars(const CHAR** pattern, const CHAR* pattern_end,
|
||||
const CHAR* string_next = *string;
|
||||
base_icu::UChar32 pattern_char = next(&pattern_next, pattern_end);
|
||||
if (pattern_char == next(&string_next, string_end) &&
|
||||
- pattern_char != CBU_SENTINEL) {
|
||||
+ pattern_char != U_SENTINEL) {
|
||||
*pattern = pattern_next;
|
||||
*string = string_next;
|
||||
} else {
|
||||
@@ -136,7 +135,7 @@ struct NextCharUTF8 {
|
||||
base_icu::UChar32 operator()(const char** p, const char* end) {
|
||||
base_icu::UChar32 c;
|
||||
int offset = 0;
|
||||
- CBU8_NEXT(*p, offset, end - *p, c);
|
||||
+ U8_NEXT(*p, offset, end - *p, c);
|
||||
*p += offset;
|
||||
return c;
|
||||
}
|
||||
@@ -146,7 +145,7 @@ struct NextCharUTF16 {
|
||||
base_icu::UChar32 operator()(const char16** p, const char16* end) {
|
||||
base_icu::UChar32 c;
|
||||
int offset = 0;
|
||||
- CBU16_NEXT(*p, offset, end - *p, c);
|
||||
+ U16_NEXT(*p, offset, end - *p, c);
|
||||
*p += offset;
|
||||
return c;
|
||||
}
|
||||
diff --git a/src/3rdparty/chromium/base/strings/string_split.cc b/src/3rdparty/chromium/base/strings/string_split.cc
|
||||
index a8180b24d..ac771a0f0 100644
|
||||
--- a/src/3rdparty/chromium/base/strings/string_split.cc
|
||||
+++ b/src/3rdparty/chromium/base/strings/string_split.cc
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/strings/string_util.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
diff --git a/src/3rdparty/chromium/base/strings/string_util.cc b/src/3rdparty/chromium/base/strings/string_util.cc
|
||||
index cb668ed7f..542f12819 100644
|
||||
--- a/src/3rdparty/chromium/base/strings/string_util.cc
|
||||
+++ b/src/3rdparty/chromium/base/strings/string_util.cc
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "build/build_config.h"
|
||||
|
||||
namespace base {
|
||||
@@ -357,19 +357,19 @@ void TruncateUTF8ToByteSize(const std::string& input,
|
||||
}
|
||||
DCHECK_LE(byte_size,
|
||||
static_cast<uint32_t>(std::numeric_limits<int32_t>::max()));
|
||||
- // Note: This cast is necessary because CBU8_NEXT uses int32_ts.
|
||||
+ // Note: This cast is necessary because U8_NEXT uses int32_ts.
|
||||
int32_t truncation_length = static_cast<int32_t>(byte_size);
|
||||
int32_t char_index = truncation_length - 1;
|
||||
const char* data = input.data();
|
||||
|
||||
- // Using CBU8, we will move backwards from the truncation point
|
||||
+ // Using U8, we will move backwards from the truncation point
|
||||
// to the beginning of the string looking for a valid UTF8
|
||||
// character. Once a full UTF8 character is found, we will
|
||||
// truncate the string to the end of that character.
|
||||
while (char_index >= 0) {
|
||||
int32_t prev = char_index;
|
||||
base_icu::UChar32 code_point = 0;
|
||||
- CBU8_NEXT(data, char_index, truncation_length, code_point);
|
||||
+ U8_NEXT(data, char_index, truncation_length, code_point);
|
||||
if (!IsValidCharacter(code_point) ||
|
||||
!IsValidCodepoint(code_point)) {
|
||||
char_index = prev - 1;
|
||||
@@ -522,7 +522,7 @@ bool IsStringUTF8(const StringPiece& str) {
|
||||
|
||||
while (char_index < src_len) {
|
||||
int32_t code_point;
|
||||
- CBU8_NEXT(src, char_index, src_len, code_point);
|
||||
+ U8_NEXT(src, char_index, src_len, code_point);
|
||||
if (!IsValidCharacter(code_point))
|
||||
return false;
|
||||
}
|
||||
diff --git a/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc b/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc
|
||||
index 3101a6028..7f7d84b3c 100644
|
||||
--- a/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc
|
||||
+++ b/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
@@ -18,7 +18,7 @@ bool ReadUnicodeCharacter(const char* src,
|
||||
// use a signed type for code_point. But this function returns false
|
||||
// on error anyway, so code_point_out is unsigned.
|
||||
int32_t code_point;
|
||||
- CBU8_NEXT(src, *char_index, src_len, code_point);
|
||||
+ U8_NEXT(src, *char_index, src_len, code_point);
|
||||
*code_point_out = static_cast<uint32_t>(code_point);
|
||||
|
||||
// The ICU macro above moves to the next char, we want to point to the last
|
||||
@@ -33,16 +33,16 @@ bool ReadUnicodeCharacter(const char16* src,
|
||||
int32_t src_len,
|
||||
int32_t* char_index,
|
||||
uint32_t* code_point) {
|
||||
- if (CBU16_IS_SURROGATE(src[*char_index])) {
|
||||
- if (!CBU16_IS_SURROGATE_LEAD(src[*char_index]) ||
|
||||
+ if (U16_IS_SURROGATE(src[*char_index])) {
|
||||
+ if (!U16_IS_SURROGATE_LEAD(src[*char_index]) ||
|
||||
*char_index + 1 >= src_len ||
|
||||
- !CBU16_IS_TRAIL(src[*char_index + 1])) {
|
||||
+ !U16_IS_TRAIL(src[*char_index + 1])) {
|
||||
// Invalid surrogate pair.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Valid surrogate pair.
|
||||
- *code_point = CBU16_GET_SUPPLEMENTARY(src[*char_index],
|
||||
+ *code_point = U16_GET_SUPPLEMENTARY(src[*char_index],
|
||||
src[*char_index + 1]);
|
||||
(*char_index)++;
|
||||
} else {
|
||||
@@ -76,30 +76,30 @@ size_t WriteUnicodeCharacter(uint32_t code_point, std::string* output) {
|
||||
}
|
||||
|
||||
|
||||
- // CBU8_APPEND_UNSAFE can append up to 4 bytes.
|
||||
+ // U8_APPEND_UNSAFE can append up to 4 bytes.
|
||||
size_t char_offset = output->length();
|
||||
size_t original_char_offset = char_offset;
|
||||
- output->resize(char_offset + CBU8_MAX_LENGTH);
|
||||
+ output->resize(char_offset + U8_MAX_LENGTH);
|
||||
|
||||
- CBU8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
+ U8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
|
||||
- // CBU8_APPEND_UNSAFE will advance our pointer past the inserted character, so
|
||||
+ // U8_APPEND_UNSAFE will advance our pointer past the inserted character, so
|
||||
// it will represent the new length of the string.
|
||||
output->resize(char_offset);
|
||||
return char_offset - original_char_offset;
|
||||
}
|
||||
|
||||
size_t WriteUnicodeCharacter(uint32_t code_point, string16* output) {
|
||||
- if (CBU16_LENGTH(code_point) == 1) {
|
||||
+ if (U16_LENGTH(code_point) == 1) {
|
||||
// Thie code point is in the Basic Multilingual Plane (BMP).
|
||||
output->push_back(static_cast<char16>(code_point));
|
||||
return 1;
|
||||
}
|
||||
// Non-BMP characters use a double-character encoding.
|
||||
size_t char_offset = output->length();
|
||||
- output->resize(char_offset + CBU16_MAX_LENGTH);
|
||||
- CBU16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
- return CBU16_MAX_LENGTH;
|
||||
+ output->resize(char_offset + U16_MAX_LENGTH);
|
||||
+ U16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
+ return U16_MAX_LENGTH;
|
||||
}
|
||||
|
||||
// Generalized Unicode converter -----------------------------------------------
|
||||
diff --git a/src/3rdparty/chromium/base/third_party/icu/icu_utf.cc b/src/3rdparty/chromium/base/third_party/icu/icu_utf.cc
|
||||
index 2b67c5d9c..7ca6a6e0f 100644
|
||||
--- a/src/3rdparty/chromium/base/third_party/icu/icu_utf.cc
|
||||
+++ b/src/3rdparty/chromium/base/third_party/icu/icu_utf.cc
|
||||
@@ -17,7 +17,7 @@
|
||||
* that would otherwise be too long as macros.
|
||||
*/
|
||||
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base_icu {
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace base_icu {
|
||||
*
|
||||
* @deprecated ICU 2.4. Obsolete, see utf_old.h.
|
||||
*/
|
||||
-#define CBUTF8_ERROR_VALUE_1 0x15
|
||||
+#define UTF8_ERROR_VALUE_1 0x15
|
||||
|
||||
/**
|
||||
* See documentation on UTF8_ERROR_VALUE_1 for details.
|
||||
*
|
||||
* @deprecated ICU 2.4. Obsolete, see utf_old.h.
|
||||
*/
|
||||
-#define CBUTF8_ERROR_VALUE_2 0x9f
|
||||
+#define UTF8_ERROR_VALUE_2 0x9f
|
||||
|
||||
|
||||
/**
|
||||
@@ -51,7 +51,7 @@ namespace base_icu {
|
||||
*
|
||||
* @deprecated ICU 2.4. Obsolete, see utf_old.h.
|
||||
*/
|
||||
-#define CBUTF_ERROR_VALUE 0xffff
|
||||
+#define UTF_ERROR_VALUE 0xffff
|
||||
|
||||
/*
|
||||
* This table could be replaced on many machines by
|
||||
@@ -103,7 +103,7 @@ utf8_minLegal[4]={ 0, 0x80, 0x800, 0x10000 };
|
||||
|
||||
static const UChar32
|
||||
utf8_errorValue[6]={
|
||||
- CBUTF8_ERROR_VALUE_1, CBUTF8_ERROR_VALUE_2, CBUTF_ERROR_VALUE, 0x10ffff,
|
||||
+ UTF8_ERROR_VALUE_1, UTF8_ERROR_VALUE_2, UTF_ERROR_VALUE, 0x10ffff,
|
||||
0x3ffffff, 0x7fffffff
|
||||
};
|
||||
|
||||
@@ -135,11 +135,11 @@ UChar32 utf8_nextCharSafeBody(const uint8_t* s,
|
||||
UChar32 c,
|
||||
UBool strict) {
|
||||
int32_t i = *pi;
|
||||
- uint8_t count = CBU8_COUNT_TRAIL_BYTES(c);
|
||||
+ uint8_t count = U8_COUNT_TRAIL_BYTES(c);
|
||||
if((i)+count<=(length)) {
|
||||
uint8_t trail, illegal = 0;
|
||||
|
||||
- CBU8_MASK_LEAD_BYTE((c), count);
|
||||
+ U8_MASK_LEAD_BYTE((c), count);
|
||||
/* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
|
||||
switch(count) {
|
||||
/* each branch falls through to the next one */
|
||||
@@ -169,9 +169,9 @@ UChar32 utf8_nextCharSafeBody(const uint8_t* s,
|
||||
break;
|
||||
case 0:
|
||||
if(strict>=0) {
|
||||
- return CBUTF8_ERROR_VALUE_1;
|
||||
+ return UTF8_ERROR_VALUE_1;
|
||||
} else {
|
||||
- return CBU_SENTINEL;
|
||||
+ return U_SENTINEL;
|
||||
}
|
||||
/* no default branch to optimize switch() - all values are covered */
|
||||
}
|
||||
@@ -189,21 +189,21 @@ UChar32 utf8_nextCharSafeBody(const uint8_t* s,
|
||||
|
||||
/* correct sequence - all trail bytes have (b7..b6)==(10)? */
|
||||
/* illegal is also set if count>=4 */
|
||||
- if(illegal || (c)<utf8_minLegal[count] || (CBU_IS_SURROGATE(c) && strict!=-2)) {
|
||||
+ if(illegal || (c)<utf8_minLegal[count] || (U_IS_SURROGATE(c) && strict!=-2)) {
|
||||
/* error handling */
|
||||
uint8_t errorCount = count;
|
||||
/* don't go beyond this sequence */
|
||||
i=*pi;
|
||||
- while(count>0 && CBU8_IS_TRAIL(s[i])) {
|
||||
+ while(count>0 && U8_IS_TRAIL(s[i])) {
|
||||
++(i);
|
||||
--count;
|
||||
}
|
||||
if(strict>=0) {
|
||||
c=utf8_errorValue[errorCount-count];
|
||||
} else {
|
||||
- c=CBU_SENTINEL;
|
||||
+ c=U_SENTINEL;
|
||||
}
|
||||
- } else if((strict)>0 && CBU_IS_UNICODE_NONCHAR(c)) {
|
||||
+ } else if((strict)>0 && U_IS_UNICODE_NONCHAR(c)) {
|
||||
/* strict: forbid non-characters like U+fffe */
|
||||
c=utf8_errorValue[count];
|
||||
}
|
||||
@@ -211,13 +211,13 @@ UChar32 utf8_nextCharSafeBody(const uint8_t* s,
|
||||
/* error handling */
|
||||
int32_t i0 = i;
|
||||
/* don't just set (i)=(length) in case there is an illegal sequence */
|
||||
- while((i)<(length) && CBU8_IS_TRAIL(s[i])) {
|
||||
+ while((i)<(length) && U8_IS_TRAIL(s[i])) {
|
||||
++(i);
|
||||
}
|
||||
if(strict>=0) {
|
||||
c=utf8_errorValue[i-i0];
|
||||
} else {
|
||||
- c=CBU_SENTINEL;
|
||||
+ c=U_SENTINEL;
|
||||
}
|
||||
}
|
||||
*pi=i;
|
||||
diff --git a/src/3rdparty/chromium/content/browser/devtools/devtools_io_context.cc b/src/3rdparty/chromium/content/browser/devtools/devtools_io_context.cc
|
||||
index 55f65f8c3..a7d616115 100644
|
||||
--- a/src/3rdparty/chromium/content/browser/devtools/devtools_io_context.cc
|
||||
+++ b/src/3rdparty/chromium/content/browser/devtools/devtools_io_context.cc
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "base/files/file_util.h"
|
||||
#include "base/strings/string_number_conversions.h"
|
||||
#include "base/strings/string_util.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "content/public/browser/browser_thread.h"
|
||||
|
||||
namespace content {
|
||||
@@ -87,7 +87,7 @@ void Stream::ReadOnFileThread(off_t position, size_t max_size,
|
||||
} else {
|
||||
// Provided client has requested sufficient large block, make their
|
||||
// life easier by not truncating in the middle of a UTF-8 character.
|
||||
- if (size_got > 6 && !CBU8_IS_SINGLE(buffer[size_got - 1])) {
|
||||
+ if (size_got > 6 && !U8_IS_SINGLE(buffer[size_got - 1])) {
|
||||
base::TruncateUTF8ToByteSize(buffer, size_got, &buffer);
|
||||
size_got = buffer.size();
|
||||
} else {
|
||||
diff --git a/src/3rdparty/chromium/net/cert/internal/parse_name.cc b/src/3rdparty/chromium/net/cert/internal/parse_name.cc
|
||||
index bb9b64051..5eaeb52d0 100644
|
||||
--- a/src/3rdparty/chromium/net/cert/internal/parse_name.cc
|
||||
+++ b/src/3rdparty/chromium/net/cert/internal/parse_name.cc
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/sys_byteorder.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace net {
|
||||
|
||||
@@ -35,7 +35,7 @@ bool ConvertBmpStringValue(const der::Input& in, std::string* out) {
|
||||
|
||||
// BMPString only supports codepoints in the Basic Multilingual Plane;
|
||||
// surrogates are not allowed.
|
||||
- if (CBU_IS_SURROGATE(c))
|
||||
+ if (U_IS_SURROGATE(c))
|
||||
return false;
|
||||
}
|
||||
return base::UTF16ToUTF8(in_16bit.data(), in_16bit.size(), out);
|
||||
@@ -55,7 +55,7 @@ bool ConvertUniversalStringValue(const der::Input& in, std::string* out) {
|
||||
for (const uint32_t c : in_32bit) {
|
||||
// UniversalString is UCS-4 in big-endian order.
|
||||
uint32_t codepoint = base::NetToHost32(c);
|
||||
- if (!CBU_IS_UNICODE_CHAR(codepoint))
|
||||
+ if (!U_IS_UNICODE_CHAR(codepoint))
|
||||
return false;
|
||||
|
||||
base::WriteUnicodeCharacter(codepoint, out);
|
||||
diff --git a/src/3rdparty/chromium/ui/base/ime/input_method_chromeos.cc b/src/3rdparty/chromium/ui/base/ime/input_method_chromeos.cc
|
||||
index a8ac9028f..8fa5d2a64 100644
|
||||
--- a/src/3rdparty/chromium/ui/base/ime/input_method_chromeos.cc
|
||||
+++ b/src/3rdparty/chromium/ui/base/ime/input_method_chromeos.cc
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "base/strings/string_util.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
#include "base/sys_info.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "ui/base/ime/chromeos/ime_keyboard.h"
|
||||
#include "ui/base/ime/chromeos/input_method_manager.h"
|
||||
#include "ui/base/ime/composition_text.h"
|
||||
diff --git a/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc b/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc
|
||||
index c7f38de0d..08a0ff5fb 100644
|
||||
--- a/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc
|
||||
+++ b/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc
|
||||
@@ -5,13 +5,13 @@
|
||||
#include "ui/gfx/utf16_indexing.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace gfx {
|
||||
|
||||
bool IsValidCodePointIndex(const base::string16& s, size_t index) {
|
||||
return index == 0 || index == s.length() ||
|
||||
- !(CBU16_IS_TRAIL(s[index]) && CBU16_IS_LEAD(s[index - 1]));
|
||||
+ !(U16_IS_TRAIL(s[index]) && U16_IS_LEAD(s[index - 1]));
|
||||
}
|
||||
|
||||
ptrdiff_t UTF16IndexToOffset(const base::string16& s, size_t base, size_t pos) {
|
||||
--
|
||||
2.13.0
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
||||
From a7885b823a2d3fc853f532fb5ae3a43a3e9967c0 Mon Sep 17 00:00:00 2001
|
||||
From: Helio Chissini de Castro <helio@kde.org>
|
||||
Date: Wed, 31 May 2017 15:13:15 +0200
|
||||
Subject: [PATCH] qtwebengine-opensource-src-5.9.0-linux-pri
|
||||
|
||||
---
|
||||
src/core/config/linux.pri | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
|
||||
index 24951cd07..c28e3b312 100644
|
||||
--- a/src/core/config/linux.pri
|
||||
+++ b/src/core/config/linux.pri
|
||||
@@ -147,4 +147,16 @@ host_build {
|
||||
use?(system_icu): gn_args += use_system_icu=true icu_use_data_file=false
|
||||
use?(system_ffmpeg): gn_args += use_system_ffmpeg=true
|
||||
#use?(system_protobuf): gn_args += use_system_protobuf=true
|
||||
+
|
||||
+ # some more system packages, that are not checked for for some reason
|
||||
+ gn_args += use_system_re2=true
|
||||
+
|
||||
+ # yasm is only used on x86, and passing use_system_yasm makes the build fail on
|
||||
+ # other architectures (e.g., ARM), so make it conditional on the architecture
|
||||
+ contains(QT_ARCH, "x86_64")|contains(QT_ARCH, "i386") {
|
||||
+ gn_args += use_system_yasm=true
|
||||
+ }
|
||||
+
|
||||
+ #link libpci instead of dlopening it, our Qt packaging depends on it anyway
|
||||
+ gn_args += linux_link_libpci=true
|
||||
}
|
||||
--
|
||||
2.13.0
|
||||
|
@ -1,12 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.6.0-beta/tools/qmake/mkspecs/features/functions.prf qtwebengine-opensource-src-5.6.0-beta-fix-extractcflag/tools/qmake/mkspecs/features/functions.prf
|
||||
--- qtwebengine-opensource-src-5.6.0-beta/tools/qmake/mkspecs/features/functions.prf 2015-12-14 16:27:24.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.6.0-beta-fix-extractcflag/tools/qmake/mkspecs/features/functions.prf 2016-01-10 18:15:23.942032985 +0100
|
||||
@@ -87,7 +87,7 @@
|
||||
}
|
||||
|
||||
defineReplace(extractCFlag) {
|
||||
- CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS
|
||||
+ CFLAGS = $$QMAKE_CC $$QMAKE_CFLAGS $$QMAKE_CFLAGS_RELEASE
|
||||
OPTION = $$find(CFLAGS, $$1)
|
||||
OPTION = $$split(OPTION, =)
|
||||
return ($$member(OPTION, 1))
|
@ -1,26 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.7.0/src/core/config/linux.pri qtwebengine-opensource-src-5.7.0-linux-pri/src/core/config/linux.pri
|
||||
--- qtwebengine-opensource-src-5.7.0/src/core/config/linux.pri 2016-06-07 06:20:06.000000000 +0200
|
||||
+++ qtwebengine-opensource-src-5.7.0-linux-pri/src/core/config/linux.pri 2016-07-17 22:18:17.312471202 +0200
|
||||
@@ -46,3 +46,22 @@
|
||||
use?(system_icu): GYP_CONFIG += use_system_icu=1 icu_use_data_file_flag=0
|
||||
use?(system_ffmpeg): GYP_CONFIG += use_system_ffmpeg=1
|
||||
use?(system_protobuf): GYP_CONFIG += use_system_protobuf=1
|
||||
+
|
||||
+# some more system packages, that are not checked for for some reason
|
||||
+GYP_CONFIG += use_system_re2=1
|
||||
+
|
||||
+# yasm is only used on x86, and passing use_system_yasm makes the build fail on
|
||||
+# other architectures (e.g., ARM), so make it conditional on the architecture
|
||||
+contains(QT_ARCH, "x86_64")|contains(QT_ARCH, "i386") {
|
||||
+ GYP_CONFIG += use_system_yasm=1
|
||||
+}
|
||||
+
|
||||
+# link libpci instead of dlopening it, our Qt packaging depends on it anyway
|
||||
+GYP_CONFIG += linux_link_libpci=1
|
||||
+
|
||||
+# run the unbundling script Chromium provides
|
||||
+CHROMIUM_SRC_DIR = "$$QTWEBENGINE_ROOT/$$getChromiumSrcDir()"
|
||||
+R_G_F_PY = "$$CHROMIUM_SRC_DIR/build/linux/unbundle/replace_gyp_files.py"
|
||||
+R_G_F_PY_ARGS = "-D use_system_re2=1"
|
||||
+log("Running python $$R_G_F_PY $$R_G_F_PY_ARGS$${EOL}")
|
||||
+!system("python $$R_G_F_PY $$R_G_F_PY_ARGS"): error("-- unbundling failed")
|
@ -1,15 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.7.1/src/3rdparty/chromium/skia/skia_library.gypi qtwebengine-opensource-src-5.7.1-skia-neon/src/3rdparty/chromium/skia/skia_library.gypi
|
||||
--- qtwebengine-opensource-src-5.7.1/src/3rdparty/chromium/skia/skia_library.gypi 2016-11-07 15:46:18.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.7.1-skia-neon/src/3rdparty/chromium/skia/skia_library.gypi 2016-12-04 14:34:12.531877529 +0100
|
||||
@@ -159,6 +159,11 @@
|
||||
'../build/android/ndk.gyp:cpu_features',
|
||||
],
|
||||
}],
|
||||
+ [ 'OS != "android" and target_arch == "arm"', {
|
||||
+ 'sources': [
|
||||
+ '../third_party/skia/src/core/SkUtilsArm.cpp',
|
||||
+ ],
|
||||
+ }],
|
||||
[ 'desktop_linux == 1 or chromeos == 1 or qt_os=="embedded_linux"', {
|
||||
'dependencies': [
|
||||
'../build/linux/system.gyp:fontconfig',
|
@ -1,40 +0,0 @@
|
||||
From 31374ba98829e984c7600419c0e5fa71b96fc530 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Varga <pvarga@inf.u-szeged.hu>
|
||||
Date: Fri, 24 Mar 2017 14:31:02 +0100
|
||||
Subject: Forward input method events to RWHV in widget
|
||||
|
||||
Task-number: QTBUG-58362
|
||||
Change-Id: Id4cf57c60da17538b224bb9bc91277c324c6a55d
|
||||
Reviewed-by: Viktor Engelmann <viktor.engelmann@qt.io>
|
||||
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||||
---
|
||||
.../render_widget_host_view_qt_delegate_widget.cpp | 9 +++++++++
|
||||
1 file changed, 9 insertions(+)
|
||||
|
||||
diff --git a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
index 14c4d72..fd58a07 100644
|
||||
--- a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
+++ b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
@@ -84,10 +84,19 @@ protected:
|
||||
{
|
||||
m_client->forwardEvent(event);
|
||||
}
|
||||
+ void inputMethodEvent(QInputMethodEvent *event) override
|
||||
+ {
|
||||
+ m_client->forwardEvent(event);
|
||||
+ }
|
||||
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override
|
||||
{
|
||||
return m_client->updatePaintNode(oldNode);
|
||||
}
|
||||
+
|
||||
+ QVariant inputMethodQuery(Qt::InputMethodQuery query) const override
|
||||
+ {
|
||||
+ return m_client->inputMethodQuery(query);
|
||||
+ }
|
||||
private:
|
||||
RenderWidgetHostViewQtDelegateClient *m_client;
|
||||
};
|
||||
--
|
||||
cgit v1.0-4-g1e03
|
||||
|
@ -1,46 +0,0 @@
|
||||
From 8e147ed3be7740092de233a2a7c67ec890069649 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@qt.io>
|
||||
Date: Mon, 13 Mar 2017 11:13:56 +0100
|
||||
Subject: Remove stale parent connection when initializing delegate as a child
|
||||
|
||||
When clicking on a blank link target, the constructor of the
|
||||
RenderWidgetHostViewQtDelegateWidget instance for the newly created
|
||||
view is called with the originating QWebEngineView as its parent
|
||||
and will connect its removeParentBeforeParentDelete slot to the
|
||||
originating view's destroyed signal.
|
||||
|
||||
This leads to the situation where the delegate's parent will be set to
|
||||
null when the originating view is closed, causing the view to display
|
||||
only an empty widget with the actual web contents remaining live in
|
||||
the background.
|
||||
|
||||
This patch removes the connection to the old view when initializing
|
||||
the delegate as a child of the QWebEnginePagePrivate instance. The
|
||||
addition to the layout updates the parent and child relationship
|
||||
between the view and the delegate internally.
|
||||
|
||||
Task-number: QTBUG-58381
|
||||
Change-Id: I448380478c2bcfcfbddaee8a35caf46010e57972
|
||||
Reviewed-by: Florian Bruhin <qt-project.org@the-compiler.org>
|
||||
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
|
||||
---
|
||||
src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
index e7ad5b1..14c4d72 100644
|
||||
--- a/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
+++ b/src/webenginewidgets/render_widget_host_view_qt_delegate_widget.cpp
|
||||
@@ -163,6 +163,9 @@ void RenderWidgetHostViewQtDelegateWidget::initAsChild(WebContentsAdapterClient*
|
||||
|
||||
QWebEnginePagePrivate *pagePrivate = static_cast<QWebEnginePagePrivate *>(container);
|
||||
if (pagePrivate->view) {
|
||||
+ if (parentWidget())
|
||||
+ disconnect(parentWidget(), &QObject::destroyed,
|
||||
+ this, &RenderWidgetHostViewQtDelegateWidget::removeParentBeforeParentDelete);
|
||||
pagePrivate->view->layout()->addWidget(this);
|
||||
pagePrivate->view->setFocusProxy(this);
|
||||
show();
|
||||
--
|
||||
cgit v1.0-4-g1e03
|
||||
|
@ -1,600 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/app.cpp qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/app.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/app.cpp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/app.cpp 2017-03-06 13:04:01.784297561 +0100
|
||||
@@ -454,7 +454,7 @@
|
||||
}
|
||||
|
||||
void app::ClearTimerCommon(const CJS_Value& param) {
|
||||
- if (param.GetType() != CJS_Value::VT_fxobject)
|
||||
+ if (param.GetType() != CJS_Value::VT_object)
|
||||
return;
|
||||
|
||||
v8::Local<v8::Object> pObj = param.ToV8Object();
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/Document.cpp qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/Document.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/Document.cpp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/Document.cpp 2017-03-06 13:04:01.783297575 +0100
|
||||
@@ -411,22 +411,20 @@
|
||||
|
||||
int nlength = params.size();
|
||||
if (nlength == 9) {
|
||||
- if (params[8].GetType() == CJS_Value::VT_fxobject) {
|
||||
+ if (params[8].GetType() == CJS_Value::VT_object) {
|
||||
v8::Local<v8::Object> pObj = params[8].ToV8Object();
|
||||
- {
|
||||
- if (FXJS_GetObjDefnID(pObj) == CJS_PrintParamsObj::g_nObjDefnID) {
|
||||
- if (CJS_Object* pJSObj = params[8].ToCJSObject()) {
|
||||
- if (PrintParamsObj* pprintparamsObj =
|
||||
- (PrintParamsObj*)pJSObj->GetEmbedObject()) {
|
||||
- bUI = pprintparamsObj->bUI;
|
||||
- nStart = pprintparamsObj->nStart;
|
||||
- nEnd = pprintparamsObj->nEnd;
|
||||
- bSilent = pprintparamsObj->bSilent;
|
||||
- bShrinkToFit = pprintparamsObj->bShrinkToFit;
|
||||
- bPrintAsImage = pprintparamsObj->bPrintAsImage;
|
||||
- bReverse = pprintparamsObj->bReverse;
|
||||
- bAnnotations = pprintparamsObj->bAnnotations;
|
||||
- }
|
||||
+ if (FXJS_GetObjDefnID(pObj) == CJS_PrintParamsObj::g_nObjDefnID) {
|
||||
+ if (CJS_Object* pJSObj = params[8].ToCJSObject()) {
|
||||
+ if (PrintParamsObj* pprintparamsObj =
|
||||
+ static_cast<PrintParamsObj*>(pJSObj->GetEmbedObject())) {
|
||||
+ bUI = pprintparamsObj->bUI;
|
||||
+ nStart = pprintparamsObj->nStart;
|
||||
+ nEnd = pprintparamsObj->nEnd;
|
||||
+ bSilent = pprintparamsObj->bSilent;
|
||||
+ bShrinkToFit = pprintparamsObj->bShrinkToFit;
|
||||
+ bPrintAsImage = pprintparamsObj->bPrintAsImage;
|
||||
+ bReverse = pprintparamsObj->bReverse;
|
||||
+ bAnnotations = pprintparamsObj->bAnnotations;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -597,18 +595,16 @@
|
||||
v8::Local<v8::Object> pObj = params[0].ToV8Object();
|
||||
v8::Local<v8::Value> pValue = FXJS_GetObjectElement(isolate, pObj, L"cURL");
|
||||
if (!pValue.IsEmpty())
|
||||
- strURL =
|
||||
- CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ strURL = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"bFDF");
|
||||
- bFDF = CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToBool();
|
||||
+ bFDF = CJS_Value(pRuntime, pValue).ToBool();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"bEmpty");
|
||||
- bEmpty = CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToBool();
|
||||
+ bEmpty = CJS_Value(pRuntime, pValue).ToBool();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"aFields");
|
||||
- aFields.Attach(
|
||||
- CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToV8Array());
|
||||
+ aFields.Attach(CJS_Value(pRuntime, pValue).ToV8Array());
|
||||
}
|
||||
|
||||
CPDFSDK_InterForm* pInterForm = m_pDocument->GetInterForm();
|
||||
@@ -691,25 +687,22 @@
|
||||
v8::Local<v8::Object> pObj = params[0].ToV8Object();
|
||||
|
||||
v8::Local<v8::Value> pValue = FXJS_GetObjectElement(isolate, pObj, L"bUI");
|
||||
- bUI = CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToInt();
|
||||
+ bUI = CJS_Value(pRuntime, pValue).ToInt();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"cTo");
|
||||
- cTo = CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ cTo = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"cCc");
|
||||
- cCc = CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ cCc = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"cBcc");
|
||||
- cBcc =
|
||||
- CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ cBcc = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"cSubject");
|
||||
- cSubject =
|
||||
- CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ cSubject = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
|
||||
pValue = FXJS_GetObjectElement(isolate, pObj, L"cMsg");
|
||||
- cMsg =
|
||||
- CJS_Value(pRuntime, pValue, GET_VALUE_TYPE(pValue)).ToCFXWideString();
|
||||
+ cMsg = CJS_Value(pRuntime, pValue).ToCFXWideString();
|
||||
}
|
||||
|
||||
pRuntime->BeginBlock();
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/global.cpp qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/global.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/global.cpp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/global.cpp 2017-03-06 13:04:01.785297546 +0100
|
||||
@@ -17,63 +17,6 @@
|
||||
#include "fpdfsdk/javascript/cjs_context.h"
|
||||
#include "fpdfsdk/javascript/resource.h"
|
||||
|
||||
-// Helper class for compile-time calculation of hash values in order to
|
||||
-// avoid having global object initializers.
|
||||
-template <unsigned ACC, wchar_t... Ns>
|
||||
-struct CHash;
|
||||
-
|
||||
-// Only needed to hash single-character strings.
|
||||
-template <wchar_t N>
|
||||
-struct CHash<N> {
|
||||
- static const unsigned value = N;
|
||||
-};
|
||||
-
|
||||
-template <unsigned ACC, wchar_t N>
|
||||
-struct CHash<ACC, N> {
|
||||
- static const unsigned value = (ACC * 1313LLU + N) & 0xFFFFFFFF;
|
||||
-};
|
||||
-
|
||||
-template <unsigned ACC, wchar_t N, wchar_t... Ns>
|
||||
-struct CHash<ACC, N, Ns...> {
|
||||
- static const unsigned value = CHash<CHash<ACC, N>::value, Ns...>::value;
|
||||
-};
|
||||
-
|
||||
-const unsigned int JSCONST_nStringHash =
|
||||
- CHash<'s', 't', 'r', 'i', 'n', 'g'>::value;
|
||||
-const unsigned int JSCONST_nNumberHash =
|
||||
- CHash<'n', 'u', 'm', 'b', 'e', 'r'>::value;
|
||||
-const unsigned int JSCONST_nBoolHash =
|
||||
- CHash<'b', 'o', 'o', 'l', 'e', 'a', 'n'>::value;
|
||||
-const unsigned int JSCONST_nDateHash = CHash<'d', 'a', 't', 'e'>::value;
|
||||
-const unsigned int JSCONST_nObjectHash =
|
||||
- CHash<'o', 'b', 'j', 'e', 'c', 't'>::value;
|
||||
-const unsigned int JSCONST_nFXobjHash = CHash<'f', 'x', 'o', 'b', 'j'>::value;
|
||||
-const unsigned int JSCONST_nNullHash = CHash<'n', 'u', 'l', 'l'>::value;
|
||||
-const unsigned int JSCONST_nUndefHash =
|
||||
- CHash<'u', 'n', 'd', 'e', 'f', 'i', 'n', 'e', 'd'>::value;
|
||||
-
|
||||
-static unsigned JS_CalcHash(const wchar_t* main) {
|
||||
- return (unsigned)FX_HashCode_GetW(CFX_WideStringC(main), false);
|
||||
-}
|
||||
-
|
||||
-#ifndef NDEBUG
|
||||
-class HashVerify {
|
||||
- public:
|
||||
- HashVerify();
|
||||
-} g_hashVerify;
|
||||
-
|
||||
-HashVerify::HashVerify() {
|
||||
- ASSERT(JSCONST_nStringHash == JS_CalcHash(kFXJSValueNameString));
|
||||
- ASSERT(JSCONST_nNumberHash == JS_CalcHash(kFXJSValueNameNumber));
|
||||
- ASSERT(JSCONST_nBoolHash == JS_CalcHash(kFXJSValueNameBoolean));
|
||||
- ASSERT(JSCONST_nDateHash == JS_CalcHash(kFXJSValueNameDate));
|
||||
- ASSERT(JSCONST_nObjectHash == JS_CalcHash(kFXJSValueNameObject));
|
||||
- ASSERT(JSCONST_nFXobjHash == JS_CalcHash(kFXJSValueNameFxobj));
|
||||
- ASSERT(JSCONST_nNullHash == JS_CalcHash(kFXJSValueNameNull));
|
||||
- ASSERT(JSCONST_nUndefHash == JS_CalcHash(kFXJSValueNameUndefined));
|
||||
-}
|
||||
-#endif
|
||||
-
|
||||
BEGIN_JS_STATIC_CONST(CJS_Global)
|
||||
END_JS_STATIC_CONST()
|
||||
|
||||
@@ -335,9 +278,8 @@
|
||||
CFX_WideString ws =
|
||||
FXJS_ToString(isolate, FXJS_GetArrayElement(isolate, pKeyList, i));
|
||||
CFX_ByteString sKey = ws.UTF8Encode();
|
||||
-
|
||||
v8::Local<v8::Value> v = FXJS_GetObjectElement(isolate, pObj, ws);
|
||||
- switch (GET_VALUE_TYPE(v)) {
|
||||
+ switch (CJS_Value::GetValueType(v)) {
|
||||
case CJS_Value::VT_number: {
|
||||
CJS_KeyValue* pObjElement = new CJS_KeyValue;
|
||||
pObjElement->nType = JS_GLOBALDATA_TYPE_NUMBER;
|
||||
@@ -353,8 +295,7 @@
|
||||
array.Add(pObjElement);
|
||||
} break;
|
||||
case CJS_Value::VT_string: {
|
||||
- CFX_ByteString sValue =
|
||||
- CJS_Value(pRuntime, v, CJS_Value::VT_string).ToCFXByteString();
|
||||
+ CFX_ByteString sValue = CJS_Value(pRuntime, v).ToCFXByteString();
|
||||
CJS_KeyValue* pObjElement = new CJS_KeyValue;
|
||||
pObjElement->nType = JS_GLOBALDATA_TYPE_STRING;
|
||||
pObjElement->sKey = sKey;
|
||||
@@ -500,26 +441,3 @@
|
||||
m_mapGlobal[propname] = pNewData;
|
||||
return TRUE;
|
||||
}
|
||||
-
|
||||
-CJS_Value::Type GET_VALUE_TYPE(v8::Local<v8::Value> p) {
|
||||
- const unsigned int nHash = JS_CalcHash(FXJS_GetTypeof(p));
|
||||
-
|
||||
- if (nHash == JSCONST_nUndefHash)
|
||||
- return CJS_Value::VT_undefined;
|
||||
- if (nHash == JSCONST_nNullHash)
|
||||
- return CJS_Value::VT_null;
|
||||
- if (nHash == JSCONST_nStringHash)
|
||||
- return CJS_Value::VT_string;
|
||||
- if (nHash == JSCONST_nNumberHash)
|
||||
- return CJS_Value::VT_number;
|
||||
- if (nHash == JSCONST_nBoolHash)
|
||||
- return CJS_Value::VT_boolean;
|
||||
- if (nHash == JSCONST_nDateHash)
|
||||
- return CJS_Value::VT_date;
|
||||
- if (nHash == JSCONST_nObjectHash)
|
||||
- return CJS_Value::VT_object;
|
||||
- if (nHash == JSCONST_nFXobjHash)
|
||||
- return CJS_Value::VT_fxobject;
|
||||
-
|
||||
- return CJS_Value::VT_unknown;
|
||||
-}
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Define.h qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Define.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Define.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Define.h 2017-03-06 13:04:01.783297575 +0100
|
||||
@@ -111,7 +111,7 @@
|
||||
CJS_Object* pJSObj = (CJS_Object*)FXJS_GetPrivate(isolate, info.Holder());
|
||||
C* pObj = reinterpret_cast<C*>(pJSObj->GetEmbedObject());
|
||||
CFX_WideString sError;
|
||||
- CJS_PropValue propValue(CJS_Value(pRuntime, value, CJS_Value::VT_unknown));
|
||||
+ CJS_PropValue propValue(CJS_Value(pRuntime, value));
|
||||
propValue.StartSetting();
|
||||
if (!(pObj->*M)(pContext, propValue, sError)) {
|
||||
FXJS_Error(isolate, JSFormatErrorString(class_name_string, prop_name_string,
|
||||
@@ -149,7 +149,7 @@
|
||||
IJS_Context* pContext = pRuntime->GetCurrentContext();
|
||||
std::vector<CJS_Value> parameters;
|
||||
for (unsigned int i = 0; i < (unsigned int)info.Length(); i++) {
|
||||
- parameters.push_back(CJS_Value(pRuntime, info[i], CJS_Value::VT_unknown));
|
||||
+ parameters.push_back(CJS_Value(pRuntime, info[i]));
|
||||
}
|
||||
CJS_Value valueRes(pRuntime);
|
||||
CJS_Object* pJSObj = (CJS_Object*)FXJS_GetPrivate(isolate, info.Holder());
|
||||
@@ -404,7 +404,7 @@
|
||||
CFX_WideString propname = CFX_WideString::FromUTF8(
|
||||
CFX_ByteStringC(*utf8_value, utf8_value.length()));
|
||||
CFX_WideString sError;
|
||||
- CJS_PropValue PropValue(CJS_Value(pRuntime, value, CJS_Value::VT_unknown));
|
||||
+ CJS_PropValue PropValue(CJS_Value(pRuntime, value));
|
||||
PropValue.StartSetting();
|
||||
if (!pObj->DoProperty(pContext, propname.c_str(), PropValue, sError)) {
|
||||
FXJS_Error(isolate, JSFormatErrorString(class_name, "PutProperty", sError));
|
||||
@@ -447,7 +447,7 @@
|
||||
IJS_Context* pContext = pRuntime->GetCurrentContext();
|
||||
std::vector<CJS_Value> parameters;
|
||||
for (unsigned int i = 0; i < (unsigned int)info.Length(); i++) {
|
||||
- parameters.push_back(CJS_Value(pRuntime, info[i], CJS_Value::VT_unknown));
|
||||
+ parameters.push_back(CJS_Value(pRuntime, info[i]));
|
||||
}
|
||||
CJS_Value valueRes(pRuntime);
|
||||
CFX_WideString sError;
|
||||
@@ -485,6 +485,4 @@
|
||||
} \
|
||||
}
|
||||
|
||||
-CJS_Value::Type GET_VALUE_TYPE(v8::Local<v8::Value> p);
|
||||
-
|
||||
#endif // FPDFSDK_JAVASCRIPT_JS_DEFINE_H_
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.cpp qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.cpp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.cpp 2017-03-06 13:10:30.896809956 +0100
|
||||
@@ -22,11 +22,10 @@
|
||||
return *(double*)g_nan;
|
||||
}
|
||||
|
||||
-CJS_Value::CJS_Value(CJS_Runtime* pRuntime)
|
||||
- : m_eType(VT_unknown), m_pJSRuntime(pRuntime) {}
|
||||
+CJS_Value::CJS_Value(CJS_Runtime* pRuntime) : m_pJSRuntime(pRuntime) {}
|
||||
|
||||
-CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t)
|
||||
- : m_eType(t), m_pValue(pValue), m_pJSRuntime(pRuntime) {}
|
||||
+CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue)
|
||||
+ : m_pValue(pValue), m_pJSRuntime(pRuntime) {}
|
||||
|
||||
CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const int& iValue)
|
||||
: m_pJSRuntime(pRuntime) {
|
||||
@@ -48,23 +47,11 @@
|
||||
operator=(dValue);
|
||||
}
|
||||
|
||||
-CJS_Value::CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Object> pJsObj)
|
||||
- : m_pJSRuntime(pRuntime) {
|
||||
- operator=(pJsObj);
|
||||
-}
|
||||
-
|
||||
CJS_Value::CJS_Value(CJS_Runtime* pRuntime, CJS_Object* pJsObj)
|
||||
: m_pJSRuntime(pRuntime) {
|
||||
operator=(pJsObj);
|
||||
}
|
||||
|
||||
-CJS_Value::CJS_Value(CJS_Runtime* pRuntime, CJS_Document* pJsDoc)
|
||||
- : m_pJSRuntime(pRuntime) {
|
||||
- m_eType = VT_object;
|
||||
- if (pJsDoc)
|
||||
- m_pValue = pJsDoc->ToV8Object();
|
||||
-}
|
||||
-
|
||||
CJS_Value::CJS_Value(CJS_Runtime* pRuntime, const FX_WCHAR* pWstr)
|
||||
: m_pJSRuntime(pRuntime) {
|
||||
operator=(pWstr);
|
||||
@@ -84,19 +71,17 @@
|
||||
|
||||
CJS_Value::CJS_Value(const CJS_Value& other) = default;
|
||||
|
||||
-void CJS_Value::Attach(v8::Local<v8::Value> pValue, Type t) {
|
||||
+void CJS_Value::Attach(v8::Local<v8::Value> pValue) {
|
||||
m_pValue = pValue;
|
||||
- m_eType = t;
|
||||
}
|
||||
|
||||
void CJS_Value::Attach(CJS_Value* pValue) {
|
||||
if (pValue)
|
||||
- Attach(pValue->ToV8Value(), pValue->GetType());
|
||||
+ Attach(pValue->ToV8Value());
|
||||
}
|
||||
|
||||
void CJS_Value::Detach() {
|
||||
m_pValue = v8::Local<v8::Value>();
|
||||
- m_eType = VT_unknown;
|
||||
}
|
||||
|
||||
int CJS_Value::ToInt() const {
|
||||
@@ -146,7 +131,7 @@
|
||||
|
||||
void CJS_Value::MaybeCoerceToNumber() {
|
||||
bool bAllowNaN = false;
|
||||
- if (m_eType == VT_string) {
|
||||
+ if (GetType() == VT_string) {
|
||||
CFX_ByteString bstr = ToCFXByteString();
|
||||
if (bstr.GetLength() == 0)
|
||||
return;
|
||||
@@ -162,32 +147,26 @@
|
||||
if (std::isnan(num->Value()) && !bAllowNaN)
|
||||
return;
|
||||
m_pValue = num;
|
||||
- m_eType = VT_number;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(int iValue) {
|
||||
m_pValue = FXJS_NewNumber(m_pJSRuntime->GetIsolate(), iValue);
|
||||
- m_eType = VT_number;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(bool bValue) {
|
||||
m_pValue = FXJS_NewBoolean(m_pJSRuntime->GetIsolate(), bValue);
|
||||
- m_eType = VT_boolean;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(double dValue) {
|
||||
m_pValue = FXJS_NewNumber(m_pJSRuntime->GetIsolate(), dValue);
|
||||
- m_eType = VT_number;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(float fValue) {
|
||||
m_pValue = FXJS_NewNumber(m_pJSRuntime->GetIsolate(), fValue);
|
||||
- m_eType = VT_number;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(v8::Local<v8::Object> pObj) {
|
||||
m_pValue = FXJS_NewObject(m_pJSRuntime->GetIsolate(), pObj);
|
||||
- m_eType = VT_fxobject;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(CJS_Object* pObj) {
|
||||
@@ -195,21 +174,12 @@
|
||||
operator=(pObj->ToV8Object());
|
||||
}
|
||||
|
||||
-void CJS_Value::operator=(CJS_Document* pJsDoc) {
|
||||
- m_eType = VT_object;
|
||||
- if (pJsDoc) {
|
||||
- m_pValue = pJsDoc->ToV8Object();
|
||||
- }
|
||||
-}
|
||||
-
|
||||
void CJS_Value::operator=(const FX_WCHAR* pWstr) {
|
||||
m_pValue = FXJS_NewString(m_pJSRuntime->GetIsolate(), (wchar_t*)pWstr);
|
||||
- m_eType = VT_string;
|
||||
}
|
||||
|
||||
void CJS_Value::SetNull() {
|
||||
m_pValue = FXJS_NewNull();
|
||||
- m_eType = VT_null;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(const FX_CHAR* pStr) {
|
||||
@@ -219,36 +189,34 @@
|
||||
void CJS_Value::operator=(CJS_Array& array) {
|
||||
m_pValue =
|
||||
FXJS_NewObject2(m_pJSRuntime->GetIsolate(), (v8::Local<v8::Array>)array);
|
||||
- m_eType = VT_object;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(CJS_Date& date) {
|
||||
m_pValue = FXJS_NewDate(m_pJSRuntime->GetIsolate(), (double)date);
|
||||
- m_eType = VT_date;
|
||||
}
|
||||
|
||||
void CJS_Value::operator=(CJS_Value value) {
|
||||
m_pValue = value.ToV8Value();
|
||||
- m_eType = value.m_eType;
|
||||
m_pJSRuntime = value.m_pJSRuntime;
|
||||
}
|
||||
|
||||
-CJS_Value::Type CJS_Value::GetType() const {
|
||||
- if (m_pValue.IsEmpty())
|
||||
+// static
|
||||
+CJS_Value::Type CJS_Value::GetValueType(v8::Local<v8::Value> value) {
|
||||
+ if (value.IsEmpty())
|
||||
return VT_unknown;
|
||||
- if (m_pValue->IsString())
|
||||
+ if (value->IsString())
|
||||
return VT_string;
|
||||
- if (m_pValue->IsNumber())
|
||||
+ if (value->IsNumber())
|
||||
return VT_number;
|
||||
- if (m_pValue->IsBoolean())
|
||||
+ if (value->IsBoolean())
|
||||
return VT_boolean;
|
||||
- if (m_pValue->IsDate())
|
||||
+ if (value->IsDate())
|
||||
return VT_date;
|
||||
- if (m_pValue->IsObject())
|
||||
+ if (value->IsObject())
|
||||
return VT_object;
|
||||
- if (m_pValue->IsNull())
|
||||
+ if (value->IsNull())
|
||||
return VT_null;
|
||||
- if (m_pValue->IsUndefined())
|
||||
+ if (value->IsUndefined())
|
||||
return VT_undefined;
|
||||
return VT_unknown;
|
||||
}
|
||||
@@ -427,7 +395,7 @@
|
||||
return;
|
||||
v8::Local<v8::Value> p =
|
||||
FXJS_GetArrayElement(m_pJSRuntime->GetIsolate(), m_pArray, index);
|
||||
- value.Attach(p, CJS_Value::VT_object);
|
||||
+ value.Attach(p);
|
||||
}
|
||||
|
||||
void CJS_Array::SetElement(unsigned index, CJS_Value value) {
|
||||
@@ -899,7 +867,7 @@
|
||||
v8::Local<v8::Value> v8Value =
|
||||
FXJS_GetObjectElement(pRuntime->GetIsolate(), pObj, property);
|
||||
if (!v8Value->IsUndefined())
|
||||
- result[i] = CJS_Value(pRuntime, v8Value, CJS_Value::VT_unknown);
|
||||
+ result[i] = CJS_Value(pRuntime, v8Value);
|
||||
}
|
||||
va_end(ap);
|
||||
return result;
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.h qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/javascript/JS_Value.h 2017-03-06 13:04:01.784297561 +0100
|
||||
@@ -27,20 +27,17 @@
|
||||
VT_boolean,
|
||||
VT_date,
|
||||
VT_object,
|
||||
- VT_fxobject,
|
||||
VT_null,
|
||||
VT_undefined
|
||||
};
|
||||
|
||||
CJS_Value(CJS_Runtime* pRuntime);
|
||||
- CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue, Type t);
|
||||
+ CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Value> pValue);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const int& iValue);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const double& dValue);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const float& fValue);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const bool& bValue);
|
||||
- CJS_Value(CJS_Runtime* pRuntime, v8::Local<v8::Object>);
|
||||
- CJS_Value(CJS_Runtime* pRuntime, CJS_Object*);
|
||||
- CJS_Value(CJS_Runtime* pRuntime, CJS_Document*);
|
||||
+ CJS_Value(CJS_Runtime* pRuntime, CJS_Object* pObj);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const FX_CHAR* pStr);
|
||||
CJS_Value(CJS_Runtime* pRuntime, const FX_WCHAR* pWstr);
|
||||
CJS_Value(CJS_Runtime* pRuntime, CJS_Array& array);
|
||||
@@ -49,11 +46,12 @@
|
||||
CJS_Value(const CJS_Value& other);
|
||||
|
||||
void SetNull();
|
||||
- void Attach(v8::Local<v8::Value> pValue, Type t);
|
||||
+ void Attach(v8::Local<v8::Value> pValue);
|
||||
void Attach(CJS_Value* pValue);
|
||||
void Detach();
|
||||
|
||||
- Type GetType() const;
|
||||
+ static Type GetValueType(v8::Local<v8::Value> value);
|
||||
+ Type GetType() const { return GetValueType(m_pValue); }
|
||||
int ToInt() const;
|
||||
bool ToBool() const;
|
||||
double ToDouble() const;
|
||||
@@ -66,8 +64,7 @@
|
||||
v8::Local<v8::Value> ToV8Value() const;
|
||||
|
||||
// Replace the current |m_pValue| with a v8::Number if possible
|
||||
- // to make one from the current |m_pValue|, updating |m_eType|
|
||||
- // as appropriate to indicate the result.
|
||||
+ // to make one from the current |m_pValue|.
|
||||
void MaybeCoerceToNumber();
|
||||
|
||||
void operator=(int iValue);
|
||||
@@ -75,7 +72,6 @@
|
||||
void operator=(double val);
|
||||
void operator=(float val);
|
||||
void operator=(CJS_Object* val);
|
||||
- void operator=(CJS_Document* val);
|
||||
void operator=(v8::Local<v8::Object> val);
|
||||
void operator=(CJS_Array& val);
|
||||
void operator=(CJS_Date& val);
|
||||
@@ -91,7 +87,6 @@
|
||||
CJS_Runtime* GetJSRuntime() const { return m_pJSRuntime; }
|
||||
|
||||
protected:
|
||||
- Type m_eType;
|
||||
v8::Local<v8::Value> m_pValue;
|
||||
CJS_Runtime* m_pJSRuntime;
|
||||
};
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/fxjs_v8.cpp qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/fxjs_v8.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/fxjs_v8.cpp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/fxjs_v8.cpp 2017-03-06 13:06:10.884476877 +0100
|
||||
@@ -10,15 +10,6 @@
|
||||
|
||||
#include "core/fxcrt/include/fx_basic.h"
|
||||
|
||||
-const wchar_t kFXJSValueNameString[] = L"string";
|
||||
-const wchar_t kFXJSValueNameNumber[] = L"number";
|
||||
-const wchar_t kFXJSValueNameBoolean[] = L"boolean";
|
||||
-const wchar_t kFXJSValueNameDate[] = L"date";
|
||||
-const wchar_t kFXJSValueNameObject[] = L"object";
|
||||
-const wchar_t kFXJSValueNameFxobj[] = L"fxobj";
|
||||
-const wchar_t kFXJSValueNameNull[] = L"null";
|
||||
-const wchar_t kFXJSValueNameUndefined[] = L"undefined";
|
||||
-
|
||||
// Keep this consistent with the values defined in gin/public/context_holder.h
|
||||
// (without actually requiring a dependency on gin itself for the standalone
|
||||
// embedders of PDFIum). The value we want to use is:
|
||||
@@ -540,26 +531,6 @@
|
||||
.ToLocalChecked());
|
||||
}
|
||||
|
||||
-const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj) {
|
||||
- if (pObj.IsEmpty())
|
||||
- return nullptr;
|
||||
- if (pObj->IsString())
|
||||
- return kFXJSValueNameString;
|
||||
- if (pObj->IsNumber())
|
||||
- return kFXJSValueNameNumber;
|
||||
- if (pObj->IsBoolean())
|
||||
- return kFXJSValueNameBoolean;
|
||||
- if (pObj->IsDate())
|
||||
- return kFXJSValueNameDate;
|
||||
- if (pObj->IsObject())
|
||||
- return kFXJSValueNameObject;
|
||||
- if (pObj->IsNull())
|
||||
- return kFXJSValueNameNull;
|
||||
- if (pObj->IsUndefined())
|
||||
- return kFXJSValueNameUndefined;
|
||||
- return nullptr;
|
||||
-}
|
||||
-
|
||||
void FXJS_SetPrivate(v8::Isolate* pIsolate,
|
||||
v8::Local<v8::Object> pObj,
|
||||
void* p) {
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/include/fxjs_v8.h qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/include/fxjs_v8.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/include/fxjs_v8.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-pdfium-gcc7/src/3rdparty/chromium/third_party/pdfium/fpdfsdk/jsapi/include/fxjs_v8.h 2017-03-06 13:06:40.283062272 +0100
|
||||
@@ -118,15 +118,6 @@
|
||||
FXJS_PerIsolateData();
|
||||
};
|
||||
|
||||
-extern const wchar_t kFXJSValueNameString[];
|
||||
-extern const wchar_t kFXJSValueNameNumber[];
|
||||
-extern const wchar_t kFXJSValueNameBoolean[];
|
||||
-extern const wchar_t kFXJSValueNameDate[];
|
||||
-extern const wchar_t kFXJSValueNameObject[];
|
||||
-extern const wchar_t kFXJSValueNameFxobj[];
|
||||
-extern const wchar_t kFXJSValueNameNull[];
|
||||
-extern const wchar_t kFXJSValueNameUndefined[];
|
||||
-
|
||||
class FXJS_ArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
|
||||
void* Allocate(size_t length) override;
|
||||
void* AllocateUninitialized(size_t length) override;
|
||||
@@ -209,7 +200,6 @@
|
||||
bool bStatic = false);
|
||||
v8::Local<v8::Object> FXJS_GetThisObj(v8::Isolate* pIsolate);
|
||||
int FXJS_GetObjDefnID(v8::Local<v8::Object> pObj);
|
||||
-const wchar_t* FXJS_GetTypeof(v8::Local<v8::Value> pObj);
|
||||
|
||||
void FXJS_SetPrivate(v8::Isolate* pIsolate,
|
||||
v8::Local<v8::Object> pObj,
|
@ -1,12 +0,0 @@
|
||||
diff -up qtwebengine-opensource-src-5.8.0/src/core/proxy_config_service_qt.cpp.qt58 qtwebengine-opensource-src-5.8.0/src/core/proxy_config_service_qt.cpp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/core/proxy_config_service_qt.cpp.qt58 2017-01-03 04:35:11.000000000 -0600
|
||||
+++ qtwebengine-opensource-src-5.8.0/src/core/proxy_config_service_qt.cpp 2017-03-24 14:43:55.120363292 -0500
|
||||
@@ -109,7 +109,7 @@ net::ProxyConfigService::ConfigAvailabil
|
||||
}
|
||||
m_qtApplicationProxy = qtProxy;
|
||||
m_qtProxyConfig = net::ProxyConfig();
|
||||
-#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(5, 8, 0)
|
||||
if (qtProxy.type() == QNetworkProxy::NoProxy
|
||||
&& QNetworkProxyFactory::usesSystemConfiguration()) {
|
||||
*config = systemConfig;
|
@ -1,362 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/base.gypi qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/base.gypi
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/base.gypi 2017-03-05 16:48:14.206027229 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/base.gypi 2017-03-05 16:50:49.266714740 +0100
|
||||
@@ -674,8 +674,6 @@
|
||||
'third_party/dmg_fp/dmg_fp.h',
|
||||
'third_party/dmg_fp/dtoa_wrapper.cc',
|
||||
'third_party/dmg_fp/g_fmt.cc',
|
||||
- 'third_party/icu/icu_utf.cc',
|
||||
- 'third_party/icu/icu_utf.h',
|
||||
'third_party/superfasthash/superfasthash.c',
|
||||
'third_party/xdg_mime/xdgmime.h',
|
||||
'threading/non_thread_safe.h',
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/BUILD.gn qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/BUILD.gn
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/BUILD.gn 2017-03-05 16:48:14.207027214 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/BUILD.gn 2017-03-05 16:50:49.267714725 +0100
|
||||
@@ -801,8 +801,6 @@
|
||||
"third_party/dmg_fp/dmg_fp.h",
|
||||
"third_party/dmg_fp/dtoa_wrapper.cc",
|
||||
"third_party/dmg_fp/g_fmt.cc",
|
||||
- "third_party/icu/icu_utf.cc",
|
||||
- "third_party/icu/icu_utf.h",
|
||||
"third_party/superfasthash/superfasthash.c",
|
||||
"threading/non_thread_safe.h",
|
||||
"threading/non_thread_safe_impl.cc",
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/files/file_path.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/files/file_path.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/files/file_path.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/files/file_path.cc 2017-03-05 16:50:49.267714725 +0100
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#include "base/mac/scoped_cftyperef.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#endif
|
||||
|
||||
#if defined(OS_WIN)
|
||||
@@ -1150,9 +1150,9 @@
|
||||
int* index) {
|
||||
int codepoint = 0;
|
||||
while (*index < length && codepoint == 0) {
|
||||
- // CBU8_NEXT returns a value < 0 in error cases. For purposes of string
|
||||
+ // U8_NEXT returns a value < 0 in error cases. For purposes of string
|
||||
// comparison, we just use that value and flag it with DCHECK.
|
||||
- CBU8_NEXT(string, *index, length, codepoint);
|
||||
+ U8_NEXT(string, *index, length, codepoint);
|
||||
DCHECK_GT(codepoint, 0);
|
||||
if (codepoint > 0) {
|
||||
// Check if there is a subtable for this upper byte.
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/json/json_parser.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/json/json_parser.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/json/json_parser.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/json/json_parser.cc 2017-03-05 16:50:49.268714710 +0100
|
||||
@@ -16,7 +16,7 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "base/values.h"
|
||||
|
||||
namespace base {
|
||||
@@ -631,8 +631,8 @@
|
||||
int32_t next_char = 0;
|
||||
|
||||
while (CanConsume(1)) {
|
||||
- pos_ = start_pos_ + index_; // CBU8_NEXT is postcrement.
|
||||
- CBU8_NEXT(start_pos_, index_, length, next_char);
|
||||
+ pos_ = start_pos_ + index_; // U8_NEXT is postcrement.
|
||||
+ U8_NEXT(start_pos_, index_, length, next_char);
|
||||
if (next_char < 0 || !IsValidCharacter(next_char)) {
|
||||
ReportError(JSONReader::JSON_UNSUPPORTED_ENCODING, 1);
|
||||
return false;
|
||||
@@ -725,7 +725,7 @@
|
||||
return false;
|
||||
}
|
||||
} else if (next_char == '"') {
|
||||
- --index_; // Rewind by one because of CBU8_NEXT.
|
||||
+ --index_; // Rewind by one because of U8_NEXT.
|
||||
out->Swap(&string);
|
||||
return true;
|
||||
} else {
|
||||
@@ -765,10 +765,10 @@
|
||||
|
||||
// If this is a high surrogate, consume the next code unit to get the
|
||||
// low surrogate.
|
||||
- if (CBU16_IS_SURROGATE(code_unit16_high)) {
|
||||
+ if (U16_IS_SURROGATE(code_unit16_high)) {
|
||||
// Make sure this is the high surrogate. If not, it's an encoding
|
||||
// error.
|
||||
- if (!CBU16_IS_SURROGATE_LEAD(code_unit16_high))
|
||||
+ if (!U16_IS_SURROGATE_LEAD(code_unit16_high))
|
||||
return false;
|
||||
|
||||
// Make sure that the token has more characters to consume the
|
||||
@@ -785,24 +785,24 @@
|
||||
|
||||
NextNChars(3);
|
||||
|
||||
- if (!CBU16_IS_TRAIL(code_unit16_low)) {
|
||||
+ if (!U16_IS_TRAIL(code_unit16_low)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t code_point =
|
||||
- CBU16_GET_SUPPLEMENTARY(code_unit16_high, code_unit16_low);
|
||||
+ U16_GET_SUPPLEMENTARY(code_unit16_high, code_unit16_low);
|
||||
if (!IsValidCharacter(code_point))
|
||||
return false;
|
||||
|
||||
offset = 0;
|
||||
- CBU8_APPEND_UNSAFE(code_unit8, offset, code_point);
|
||||
+ U8_APPEND_UNSAFE(code_unit8, offset, code_point);
|
||||
} else {
|
||||
// Not a surrogate.
|
||||
- DCHECK(CBU16_IS_SINGLE(code_unit16_high));
|
||||
+ DCHECK(U16_IS_SINGLE(code_unit16_high));
|
||||
if (!IsValidCharacter(code_unit16_high))
|
||||
return false;
|
||||
|
||||
- CBU8_APPEND_UNSAFE(code_unit8, offset, code_unit16_high);
|
||||
+ U8_APPEND_UNSAFE(code_unit8, offset, code_unit16_high);
|
||||
}
|
||||
|
||||
dest_string->append(code_unit8);
|
||||
@@ -819,9 +819,9 @@
|
||||
} else {
|
||||
char utf8_units[4] = { 0 };
|
||||
int offset = 0;
|
||||
- CBU8_APPEND_UNSAFE(utf8_units, offset, point);
|
||||
+ U8_APPEND_UNSAFE(utf8_units, offset, point);
|
||||
dest->Convert();
|
||||
- // CBU8_APPEND_UNSAFE can overwrite up to 4 bytes, so utf8_units may not be
|
||||
+ // U8_APPEND_UNSAFE can overwrite up to 4 bytes, so utf8_units may not be
|
||||
// zero terminated at this point. |offset| contains the correct length.
|
||||
dest->AppendString(std::string(utf8_units, offset));
|
||||
}
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/json/string_escape.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/json/string_escape.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/json/string_escape.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/json/string_escape.cc 2017-03-05 16:50:49.268714710 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/pattern.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/pattern.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/pattern.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/pattern.cc 2017-03-05 16:50:49.404712681 +0100
|
||||
@@ -4,13 +4,13 @@
|
||||
|
||||
#include "base/strings/pattern.h"
|
||||
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
namespace {
|
||||
|
||||
-static bool IsWildcard(base_icu::UChar32 character) {
|
||||
+static bool IsWildcard(UChar32 character) {
|
||||
return character == '*' || character == '?';
|
||||
}
|
||||
|
||||
@@ -37,9 +37,9 @@
|
||||
// Check if the chars match, if so, increment the ptrs.
|
||||
const CHAR* pattern_next = *pattern;
|
||||
const CHAR* string_next = *string;
|
||||
- base_icu::UChar32 pattern_char = next(&pattern_next, pattern_end);
|
||||
+ UChar32 pattern_char = next(&pattern_next, pattern_end);
|
||||
if (pattern_char == next(&string_next, string_end) &&
|
||||
- pattern_char != CBU_SENTINEL) {
|
||||
+ pattern_char != U_SENTINEL) {
|
||||
*pattern = pattern_next;
|
||||
*string = string_next;
|
||||
} else {
|
||||
@@ -133,20 +133,20 @@
|
||||
}
|
||||
|
||||
struct NextCharUTF8 {
|
||||
- base_icu::UChar32 operator()(const char** p, const char* end) {
|
||||
- base_icu::UChar32 c;
|
||||
+ UChar32 operator()(const char** p, const char* end) {
|
||||
+ UChar32 c;
|
||||
int offset = 0;
|
||||
- CBU8_NEXT(*p, offset, end - *p, c);
|
||||
+ U8_NEXT(*p, offset, end - *p, c);
|
||||
*p += offset;
|
||||
return c;
|
||||
}
|
||||
};
|
||||
|
||||
struct NextCharUTF16 {
|
||||
- base_icu::UChar32 operator()(const char16** p, const char16* end) {
|
||||
- base_icu::UChar32 c;
|
||||
+ UChar32 operator()(const char16** p, const char16* end) {
|
||||
+ UChar32 c;
|
||||
int offset = 0;
|
||||
- CBU16_NEXT(*p, offset, end - *p, c);
|
||||
+ U16_NEXT(*p, offset, end - *p, c);
|
||||
*p += offset;
|
||||
return c;
|
||||
}
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/string_split.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/string_split.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/string_split.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/string_split.cc 2017-03-05 16:50:49.404712681 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "base/strings/string_util.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/string_util.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/string_util.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/string_util.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/string_util.cc 2017-03-05 16:50:49.404712681 +0100
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "base/memory/singleton.h"
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
#include "base/strings/utf_string_conversions.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
#include "build/build_config.h"
|
||||
|
||||
namespace base {
|
||||
@@ -357,19 +357,19 @@
|
||||
}
|
||||
DCHECK_LE(byte_size,
|
||||
static_cast<uint32_t>(std::numeric_limits<int32_t>::max()));
|
||||
- // Note: This cast is necessary because CBU8_NEXT uses int32_ts.
|
||||
+ // Note: This cast is necessary because U8_NEXT uses int32_ts.
|
||||
int32_t truncation_length = static_cast<int32_t>(byte_size);
|
||||
int32_t char_index = truncation_length - 1;
|
||||
const char* data = input.data();
|
||||
|
||||
- // Using CBU8, we will move backwards from the truncation point
|
||||
+ // Using U8, we will move backwards from the truncation point
|
||||
// to the beginning of the string looking for a valid UTF8
|
||||
// character. Once a full UTF8 character is found, we will
|
||||
// truncate the string to the end of that character.
|
||||
while (char_index >= 0) {
|
||||
int32_t prev = char_index;
|
||||
- base_icu::UChar32 code_point = 0;
|
||||
- CBU8_NEXT(data, char_index, truncation_length, code_point);
|
||||
+ UChar32 code_point = 0;
|
||||
+ U8_NEXT(data, char_index, truncation_length, code_point);
|
||||
if (!IsValidCharacter(code_point) ||
|
||||
!IsValidCodepoint(code_point)) {
|
||||
char_index = prev - 1;
|
||||
@@ -522,7 +522,7 @@
|
||||
|
||||
while (char_index < src_len) {
|
||||
int32_t code_point;
|
||||
- CBU8_NEXT(src, char_index, src_len, code_point);
|
||||
+ U8_NEXT(src, char_index, src_len, code_point);
|
||||
if (!IsValidCharacter(code_point))
|
||||
return false;
|
||||
}
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/base/strings/utf_string_conversion_utils.cc 2017-03-05 16:50:49.404712681 +0100
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "base/strings/utf_string_conversion_utils.h"
|
||||
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace base {
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
// use a signed type for code_point. But this function returns false
|
||||
// on error anyway, so code_point_out is unsigned.
|
||||
int32_t code_point;
|
||||
- CBU8_NEXT(src, *char_index, src_len, code_point);
|
||||
+ U8_NEXT(src, *char_index, src_len, code_point);
|
||||
*code_point_out = static_cast<uint32_t>(code_point);
|
||||
|
||||
// The ICU macro above moves to the next char, we want to point to the last
|
||||
@@ -33,16 +33,16 @@
|
||||
int32_t src_len,
|
||||
int32_t* char_index,
|
||||
uint32_t* code_point) {
|
||||
- if (CBU16_IS_SURROGATE(src[*char_index])) {
|
||||
- if (!CBU16_IS_SURROGATE_LEAD(src[*char_index]) ||
|
||||
+ if (U16_IS_SURROGATE(src[*char_index])) {
|
||||
+ if (!U16_IS_SURROGATE_LEAD(src[*char_index]) ||
|
||||
*char_index + 1 >= src_len ||
|
||||
- !CBU16_IS_TRAIL(src[*char_index + 1])) {
|
||||
+ !U16_IS_TRAIL(src[*char_index + 1])) {
|
||||
// Invalid surrogate pair.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Valid surrogate pair.
|
||||
- *code_point = CBU16_GET_SUPPLEMENTARY(src[*char_index],
|
||||
+ *code_point = U16_GET_SUPPLEMENTARY(src[*char_index],
|
||||
src[*char_index + 1]);
|
||||
(*char_index)++;
|
||||
} else {
|
||||
@@ -76,30 +76,30 @@
|
||||
}
|
||||
|
||||
|
||||
- // CBU8_APPEND_UNSAFE can append up to 4 bytes.
|
||||
+ // U8_APPEND_UNSAFE can append up to 4 bytes.
|
||||
size_t char_offset = output->length();
|
||||
size_t original_char_offset = char_offset;
|
||||
- output->resize(char_offset + CBU8_MAX_LENGTH);
|
||||
+ output->resize(char_offset + U8_MAX_LENGTH);
|
||||
|
||||
- CBU8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
+ U8_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
|
||||
- // CBU8_APPEND_UNSAFE will advance our pointer past the inserted character, so
|
||||
+ // U8_APPEND_UNSAFE will advance our pointer past the inserted character, so
|
||||
// it will represent the new length of the string.
|
||||
output->resize(char_offset);
|
||||
return char_offset - original_char_offset;
|
||||
}
|
||||
|
||||
size_t WriteUnicodeCharacter(uint32_t code_point, string16* output) {
|
||||
- if (CBU16_LENGTH(code_point) == 1) {
|
||||
+ if (U16_LENGTH(code_point) == 1) {
|
||||
// Thie code point is in the Basic Multilingual Plane (BMP).
|
||||
output->push_back(static_cast<char16>(code_point));
|
||||
return 1;
|
||||
}
|
||||
// Non-BMP characters use a double-character encoding.
|
||||
size_t char_offset = output->length();
|
||||
- output->resize(char_offset + CBU16_MAX_LENGTH);
|
||||
- CBU16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
- return CBU16_MAX_LENGTH;
|
||||
+ output->resize(char_offset + U16_MAX_LENGTH);
|
||||
+ U16_APPEND_UNSAFE(&(*output)[0], char_offset, code_point);
|
||||
+ return U16_MAX_LENGTH;
|
||||
}
|
||||
|
||||
// Generalized Unicode converter -----------------------------------------------
|
||||
diff -ur qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc
|
||||
--- qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-icu-utf/src/3rdparty/chromium/ui/gfx/utf16_indexing.cc 2017-03-05 16:50:49.405712666 +0100
|
||||
@@ -5,13 +5,13 @@
|
||||
#include "ui/gfx/utf16_indexing.h"
|
||||
|
||||
#include "base/logging.h"
|
||||
-#include "base/third_party/icu/icu_utf.h"
|
||||
+#include <unicode/utf.h>
|
||||
|
||||
namespace gfx {
|
||||
|
||||
bool IsValidCodePointIndex(const base::string16& s, size_t index) {
|
||||
return index == 0 || index == s.length() ||
|
||||
- !(CBU16_IS_TRAIL(s[index]) && CBU16_IS_LEAD(s[index - 1]));
|
||||
+ !(U16_IS_TRAIL(s[index]) && U16_IS_LEAD(s[index - 1]));
|
||||
}
|
||||
|
||||
ptrdiff_t UTF16IndexToOffset(const base::string16& s, size_t base, size_t pos) {
|
@ -1,48 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/base.gypi qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/base.gypi
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/base.gypi 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/base.gypi 2017-03-05 16:48:14.206027229 +0100
|
||||
@@ -676,8 +676,6 @@
|
||||
'third_party/dmg_fp/g_fmt.cc',
|
||||
'third_party/icu/icu_utf.cc',
|
||||
'third_party/icu/icu_utf.h',
|
||||
- 'third_party/nspr/prtime.cc',
|
||||
- 'third_party/nspr/prtime.h',
|
||||
'third_party/superfasthash/superfasthash.c',
|
||||
'third_party/xdg_mime/xdgmime.h',
|
||||
'threading/non_thread_safe.h',
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/BUILD.gn qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/BUILD.gn
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/BUILD.gn 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/BUILD.gn 2017-03-05 16:48:14.207027214 +0100
|
||||
@@ -803,8 +803,6 @@
|
||||
"third_party/dmg_fp/g_fmt.cc",
|
||||
"third_party/icu/icu_utf.cc",
|
||||
"third_party/icu/icu_utf.h",
|
||||
- "third_party/nspr/prtime.cc",
|
||||
- "third_party/nspr/prtime.h",
|
||||
"third_party/superfasthash/superfasthash.c",
|
||||
"threading/non_thread_safe.h",
|
||||
"threading/non_thread_safe_impl.cc",
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/time/pr_time_unittest.cc qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/time/pr_time_unittest.cc
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/time/pr_time_unittest.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/time/pr_time_unittest.cc 2017-03-05 16:48:14.208027199 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/macros.h"
|
||||
-#include "base/third_party/nspr/prtime.h"
|
||||
+#include <nspr4/prtime.h>
|
||||
#include "base/time/time.h"
|
||||
#include "build/build_config.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/time/time.cc qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/time/time.cc
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/base/time/time.cc 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-system-nspr-prtime/src/3rdparty/chromium/base/time/time.cc 2017-03-05 16:48:14.298025856 +0100
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "base/logging.h"
|
||||
#include "base/macros.h"
|
||||
#include "base/strings/stringprintf.h"
|
||||
-#include "base/third_party/nspr/prtime.h"
|
||||
+#include <nspr4/prtime.h>
|
||||
#include "build/build_config.h"
|
||||
|
||||
namespace base {
|
@ -1,71 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects-body-descriptors.h qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects-body-descriptors.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects-body-descriptors.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects-body-descriptors.h 2017-03-06 02:05:57.848394582 +0100
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
template <typename StaticVisitor>
|
||||
static inline void IterateBody(HeapObject* obj, int object_size) {
|
||||
- IterateBody(obj);
|
||||
+ IterateBody<StaticVisitor>(obj);
|
||||
}
|
||||
};
|
||||
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects.h qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects.h 2017-03-06 02:05:57.990392454 +0100
|
||||
@@ -3193,22 +3193,10 @@
|
||||
public:
|
||||
typedef Shape ShapeT;
|
||||
|
||||
- // Wrapper methods
|
||||
- inline uint32_t Hash(Key key) {
|
||||
- if (Shape::UsesSeed) {
|
||||
- return Shape::SeededHash(key, GetHeap()->HashSeed());
|
||||
- } else {
|
||||
- return Shape::Hash(key);
|
||||
- }
|
||||
- }
|
||||
-
|
||||
- inline uint32_t HashForObject(Key key, Object* object) {
|
||||
- if (Shape::UsesSeed) {
|
||||
- return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
|
||||
- } else {
|
||||
- return Shape::HashForObject(key, object);
|
||||
- }
|
||||
- }
|
||||
+ // Wrapper methods. Defined in src/objects-inl.h
|
||||
+ // to break a cycle with src/heap/heap.h.
|
||||
+ inline uint32_t Hash(Key key);
|
||||
+ inline uint32_t HashForObject(Key key, Object* object);
|
||||
|
||||
// Returns a new HashTable object.
|
||||
MUST_USE_RESULT static Handle<Derived> New(
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects-inl.h qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects-inl.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/v8/src/objects-inl.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-gcc7/src/3rdparty/chromium/v8/src/objects-inl.h 2017-03-06 02:05:57.992392424 +0100
|
||||
@@ -38,6 +38,25 @@
|
||||
namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
+template <typename Derived, typename Shape, typename Key>
|
||||
+uint32_t HashTable<Derived, Shape, Key>::Hash(Key key) {
|
||||
+ if (Shape::UsesSeed) {
|
||||
+ return Shape::SeededHash(key, GetHeap()->HashSeed());
|
||||
+ } else {
|
||||
+ return Shape::Hash(key);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+template <typename Derived, typename Shape, typename Key>
|
||||
+uint32_t HashTable<Derived, Shape, Key>::HashForObject(Key key,
|
||||
+ Object* object) {
|
||||
+ if (Shape::UsesSeed) {
|
||||
+ return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
|
||||
+ } else {
|
||||
+ return Shape::HashForObject(key, object);
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
PropertyDetails::PropertyDetails(Smi* smi) {
|
||||
value_ = smi->value();
|
||||
}
|
@ -1,32 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn qtwebengine-opensource-src-5.8.0-webrtc-neon-detect/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-webrtc-neon-detect/src/3rdparty/chromium/third_party/webrtc/system_wrappers/BUILD.gn 2017-03-05 17:08:43.547748044 +0100
|
||||
@@ -108,9 +108,7 @@
|
||||
if (is_linux) {
|
||||
defines += [ "WEBRTC_THREAD_RR" ]
|
||||
|
||||
- if (!build_with_chromium) {
|
||||
- deps += [ ":cpu_features_linux" ]
|
||||
- }
|
||||
+ deps += [ ":cpu_features_linux" ]
|
||||
|
||||
libs += [ "rt" ]
|
||||
}
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/webrtc/system_wrappers/system_wrappers.gyp qtwebengine-opensource-src-5.8.0-webrtc-neon-detect/src/3rdparty/chromium/third_party/webrtc/system_wrappers/system_wrappers.gyp
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/webrtc/system_wrappers/system_wrappers.gyp 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-webrtc-neon-detect/src/3rdparty/chromium/third_party/webrtc/system_wrappers/system_wrappers.gyp 2017-03-05 17:07:01.869254856 +0100
|
||||
@@ -112,12 +112,8 @@
|
||||
'defines': [
|
||||
'WEBRTC_THREAD_RR',
|
||||
],
|
||||
- 'conditions': [
|
||||
- ['build_with_chromium==0', {
|
||||
- 'dependencies': [
|
||||
- 'cpu_features_webrtc.gyp:cpu_features_linux',
|
||||
- ],
|
||||
- }],
|
||||
+ 'dependencies': [
|
||||
+ 'cpu_features_webrtc.gyp:cpu_features_linux',
|
||||
],
|
||||
'link_settings': {
|
||||
'libraries': [ '-lrt', ],
|
@ -1,12 +0,0 @@
|
||||
diff -ur qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h qtwebengine-opensource-src-5.8.0-wtf-gcc7/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h
|
||||
--- qtwebengine-opensource-src-5.8.0/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h 2017-01-03 10:28:53.000000000 +0100
|
||||
+++ qtwebengine-opensource-src-5.8.0-wtf-gcc7/src/3rdparty/chromium/third_party/WebKit/Source/wtf/LinkedHashSet.h 2017-03-07 03:00:44.783316233 +0100
|
||||
@@ -542,6 +542,8 @@
|
||||
return *this;
|
||||
}
|
||||
|
||||
+inline void swapAnchor(LinkedHashSetNodeBase& a, LinkedHashSetNodeBase& b);
|
||||
+
|
||||
template<typename T, typename U, typename V, typename W>
|
||||
inline void LinkedHashSet<T, U, V, W>::swap(LinkedHashSet& other)
|
||||
{
|
@ -1 +1 @@
|
||||
SHA512 (qtwebengine-opensource-src-5.8.0-clean.tar.xz) = 18a49156da8d2e21fb0fe4781646c753c82d616964dd14b0651a1097b2a79a5ddb852dbdcc838d1e9e9a4ec460dd77fbab78a03672f5e827ab061fdf97db4a25
|
||||
SHA512 (qtwebengine-opensource-src-5.9.0-clean.tar.xz) = b80070b267bffb29a17f8fbf9da8c9f9fe6d59c12bccb3710370b1c830f0f162199341266da6c24563e75f17f6f9d850fd762f58ab1fafc2535f432d6180c98c
|
||||
|
Loading…
Reference in new issue