icu65.patch 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. From 5679c3c191ed62b62d8db22f1657a296ee9bfe8e Mon Sep 17 00:00:00 2001
  2. From: Frank Tang <ftang@chromium.org>
  3. Date: Wed, 30 Oct 2019 22:49:47 +0000
  4. Subject: [PATCH] Update ICU to 65.1 from 64 and fix broken tests
  5. ICU 65-1 release note
  6. http://site.icu-project.org/download/65
  7. CLDR 36 release blog
  8. http://blog.unicode.org/2019/10/unicode-cldr-version-36-languagelocale.html
  9. Most of the test expectation change is due to CLDR 36 update
  10. of Grapheme Cluster for Indic languages
  11. See the following for related changes in ICU 65.1 in this area:
  12. https://unicode-org.atlassian.net/browse/CLDR-10994
  13. https://unicode-org.atlassian.net/browse/ICU-13637
  14. https://github.com/unicode-org/cldr/blob/master/common/properties/segments/readme.txt
  15. Bug: chromium:1014272, chromium:1017047
  16. Change-Id: I9fc6d4620bf2a4c189940d06d8c79893502db3dd
  17. Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
  18. Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866059
  19. Reviewed-by: Jungshik Shin <jshin@chromium.org>
  20. Reviewed-by: Doug Turner <dougt@chromium.org>
  21. Reviewed-by: Michael Wasserman <msw@chromium.org>
  22. Reviewed-by: Kent Tamura <tkent@chromium.org>
  23. Reviewed-by: Trent Apted <tapted@chromium.org>
  24. Reviewed-by: Mason Freed <masonfreed@chromium.org>
  25. Commit-Queue: Frank Tang <ftang@chromium.org>
  26. Cr-Commit-Position: refs/heads/master@{#711027}
  27. ---
  28. third_party/blink/renderer/core/dom/document.cc | 2 +-
  29. ui/gfx/render_text_harfbuzz.cc | 5 ++++-
  30. 2 files changed, 5 insertions(+), 2 deletions(-)
  31. diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc
  32. index 511aac29086..f188cf548a6 100644
  33. --- a/third_party/blink/renderer/core/dom/document.cc
  34. +++ b/third_party/blink/renderer/core/dom/document.cc
  35. @@ -6191,7 +6191,7 @@ static ParseQualifiedNameResult ParseQualifiedNameInternal(
  36. for (unsigned i = 0; i < length;) {
  37. UChar32 c;
  38. - U16_NEXT(characters, i, length, c)
  39. + U16_NEXT(characters, i, length, c);
  40. if (c == ':') {
  41. if (saw_colon)
  42. return ParseQualifiedNameResult(kQNMultipleColons);
  43. diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
  44. index 50e86af6b97..0339ff3ff8e 100644
  45. --- a/ui/gfx/render_text_harfbuzz.cc
  46. +++ b/ui/gfx/render_text_harfbuzz.cc
  47. @@ -971,7 +971,10 @@ RangeF TextRunHarfBuzz::GetGraphemeBounds(RenderTextHarfBuzz* render_text,
  48. ++total;
  49. }
  50. }
  51. - DCHECK_GT(total, 0);
  52. + // With ICU 65.1, DCHECK_GT() below fails.
  53. + // See https://crbug.com/1017047 for more details.
  54. + //
  55. + // DCHECK_GT(total, 0);
  56. // It's possible for |text_index| to point to a diacritical mark, at the end
  57. // of |chars|. In this case all the grapheme boundaries come before it. Just