logo

overlay

My own overlay for experimentations, use with caution, no support is provided

webkit-gtk-2.24.4-icu-65.patch (1991B)


      1 From 9b60e834454dc93f46f05b1cfdc0aad0c6b7de97 Mon Sep 17 00:00:00 2001
      2 From: Heiko Becker <heirecka@exherbo.org>
      3 Date: Fri, 4 Oct 2019 22:17:11 +0200
      4 Subject: [PATCH] Add missing semicolons to fix build with icu 65.1
      5 
      6 ---
      7  Source/WTF/wtf/URLHelpers.cpp   |  2 +-
      8  Source/WebCore/dom/Document.cpp |  6 +++---
      9  4 files changed, 25 insertions(+), 4 deletions(-)
     10 
     11 diff --git a/Source/WTF/wtf/URLHelpers.cpp b/Source/WTF/wtf/URLHelpers.cpp
     12 index 18e7f13cd61..c584f1a0cb7 100644
     13 --- a/Source/WTF/wtf/URLHelpers.cpp
     14 +++ b/Source/WTF/wtf/URLHelpers.cpp
     15 @@ -301,7 +301,7 @@ static bool allCharactersInIDNScriptWhiteList(const UChar* buffer, int32_t lengt
     16      Optional<UChar32> previousCodePoint;
     17      while (i < length) {
     18          UChar32 c;
     19 -        U16_NEXT(buffer, i, length, c)
     20 +        U16_NEXT(buffer, i, length, c);
     21          UErrorCode error = U_ZERO_ERROR;
     22          UScriptCode script = uscript_getScript(c, &error);
     23          if (error != U_ZERO_ERROR) {
     24 diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
     25 index 0fd0fa090bf..01f76850f3d 100644
     26 --- a/Source/WebCore/dom/Document.cpp
     27 +++ b/Source/WebCore/dom/Document.cpp
     28 @@ -4954,12 +4954,12 @@ static bool isValidNameNonASCII(const UChar* characters, unsigned length)
     29      unsigned i = 0;
     30  
     31      UChar32 c;
     32 -    U16_NEXT(characters, i, length, c)
     33 +    U16_NEXT(characters, i, length, c);
     34      if (!isValidNameStart(c))
     35          return false;
     36  
     37      while (i < length) {
     38 -        U16_NEXT(characters, i, length, c)
     39 +        U16_NEXT(characters, i, length, c);
     40          if (!isValidNamePart(c))
     41              return false;
     42      }
     43 @@ -5019,7 +5019,7 @@ ExceptionOr<std::pair<AtomString, AtomString>> Document::parseQualifiedName(cons
     44  
     45      for (unsigned i = 0; i < length; ) {
     46          UChar32 c;
     47 -        U16_NEXT(qualifiedName, i, length, c)
     48 +        U16_NEXT(qualifiedName, i, length, c);
     49          if (c == ':') {
     50              if (sawColon)
     51                  return Exception { InvalidCharacterError };
     52 -- 
     53 2.23.0