summaryrefslogtreecommitdiffstats
path: root/deps/qt5-webkit/patches/qt5-webkit.icu65.patch
blob: fe27d249b2a5ca616af5d15cad8519a87325355c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -----------------------------------------------------------------------------
# Patch obtained from FreeBSD:
# https://svnweb.freebsd.org/ports/head/www/qt5-webkit/files/patch-Source_WebCore_dom_Document.cpp?view=co
# -----------------------------------------------------------------------------
Regressed by https://github.com/unicode-org/icu/commit/480bec3ea652

In file included from Source/WebCore/dom/DOMAllInOne.cpp:67:
Source/WebCore/dom/Document.cpp:4410:39: error: expected ';' after do/while statement
    U16_NEXT(characters, i, length, c)
                                      ^
                                      ;
Source/WebCore/dom/Document.cpp:4415:43: error: expected ';' after do/while statement
        U16_NEXT(characters, i, length, c)
                                          ^
                                          ;
Source/WebCore/dom/Document.cpp:4477:46: error: expected ';' after do/while statement
        U16_NEXT(qualifiedName, i, length, c)
                                             ^
                                             ;

--- Source/WebCore/dom/Document.cpp.orig	2019-06-26 16:25:02 UTC
+++ Source/WebCore/dom/Document.cpp
@@ -4407,12 +4407,12 @@ static bool isValidNameNonASCII(const UChar* character
     unsigned i = 0;
 
     UChar32 c;
-    U16_NEXT(characters, i, length, c)
+    U16_NEXT(characters, i, length, c);
     if (!isValidNameStart(c))
         return false;
 
     while (i < length) {
-        U16_NEXT(characters, i, length, c)
+        U16_NEXT(characters, i, length, c);
         if (!isValidNamePart(c))
             return false;
     }
@@ -4474,7 +4474,7 @@ bool Document::parseQualifiedName(const String& qualif
 
     for (unsigned i = 0; i < length;) {
         UChar32 c;
-        U16_NEXT(qualifiedName, i, length, c)
+        U16_NEXT(qualifiedName, i, length, c);
         if (c == ':') {
             if (sawColon) {
                 ec = NAMESPACE_ERR;