Bug 1737147 - Treat characters with LB=BreakAfter as Breakable in LineBreaker.cpp. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D130477
This commit is contained in:
Jonathan Kew 2021-11-06 19:05:43 +00:00
Родитель 7458659848
Коммит 37bb886753
59 изменённых файлов: 6 добавлений и 759 удалений

Просмотреть файл

@ -394,7 +394,7 @@ static int8_t GetClass(uint32_t u, LineBreaker::Strictness aLevel,
/* AMBIGUOUS = 1, [AI] */ CLASS_CHARACTER,
/* ALPHABETIC = 2, [AL] */ CLASS_CHARACTER,
/* BREAK_BOTH = 3, [B2] */ CLASS_CHARACTER,
/* BREAK_AFTER = 4, [BA] */ CLASS_CHARACTER,
/* BREAK_AFTER = 4, [BA] */ CLASS_BREAKABLE,
/* BREAK_BEFORE = 5, [BB] */ CLASS_OPEN_LIKE_CHARACTER,
/* MANDATORY_BREAK = 6, [BK] */ CLASS_CHARACTER,
/* CONTINGENT_BREAK = 7, [CB] */ CLASS_CHARACTER,
@ -622,10 +622,11 @@ static int8_t GetClass(uint32_t u, LineBreaker::Strictness aLevel,
return GETCLASSFROMTABLE(gLBClass00, uint16_t(U_HYPHEN));
}
} else if (0x0F00 == h) {
// Tibetan chars with class = BA
if (0x34 == l || 0x7f == l || 0x85 == l || 0xbe == l || 0xbf == l ||
0xd2 == l) {
return CLASS_BREAKABLE;
// We treat Tibetan TSHEG as a hyphen (when not using platform breaker);
// other Tibetan chars with LineBreak class=BA will be handled by the
// default sUnicodeLineBreakToClass mapping below.
if (l == 0x0B) {
return GETCLASSFROMTABLE(gLBClass00, uint16_t(U_HYPHEN));
}
} else if (0x1800 == h) {
if (0x0E == l) {

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-020.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-030.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-031.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-032.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-040.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-041.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-042.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-043.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-044.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-045.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-046.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-047.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-048.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-049.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-050.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-051.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-052.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-060.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-061.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-064.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-065.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-070.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-071.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-072.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-073.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-074.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-075.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-076.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-077.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-078.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-090.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-091.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-092.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-093.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-095.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-096.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-097.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-098.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-099.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-100.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-101.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-102.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-103.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-104.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-105.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-106.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-107.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-108.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-109.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-110.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-111.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-112.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-113.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-114.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-115.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-116.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-117.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL

Просмотреть файл

@ -1,13 +0,0 @@
[css3-text-line-break-baspglwj-118.html]
[white-space:pre-wrap]
expected: FAIL
[white-space:pre-line]
expected: FAIL
[white-space:break-spaces]
expected: FAIL
[white-space:normal]
expected: FAIL