8000 Bug 1957384 - Allow Unicode whitespace characters intervening between… · marco-c/gecko-dev-wordified@b2db7f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2db7f4

Browse files
committed
Bug 1957384 - Allow Unicode whitespace characters intervening between punctuation and letter in ::first-letter range. r=dshin
And allow multiple punctuation elements, with potential intervening whitespace, both before and after the letter. Tests to be added once web-platform-tests/wpt#51361 is merged. Differential Revision: https://phabricator.services.mozilla.com/D243674 UltraBlame original commit: a59c7ce8c81e8949b92e606055ae7f58726eba5b
1 parent e759474 commit b2db7f4

File tree

3 files changed

+729
-285
lines changed

3 files changed

+729
-285
lines changed

dom/base/nsContentUtils.cpp

Lines changed: 0 additions & 210 deletions
Original file line numberDiff line numberDiff line change
@@ -12017,216 +12017,6 @@ sBidiKeyboard
1201712017
;
1201812018
}
1201912019
/
12020-
*
12021-
*
12022-
*
12023-
This
12024-
is
12025-
used
12026-
to
12027-
determine
12028-
whether
12029-
a
12030-
character
12031-
is
12032-
in
12033-
one
12034-
of
12035-
the
12036-
classes
12037-
*
12038-
which
12039-
CSS
12040-
says
12041-
should
12042-
be
12043-
part
12044-
of
12045-
the
12046-
first
12047-
-
12048-
letter
12049-
.
12050-
Currently
12051-
that
12052-
is
12053-
*
12054-
all
12055-
punctuation
12056-
classes
12057-
(
12058-
P
12059-
*
12060-
)
12061-
.
12062-
Note
12063-
that
12064-
this
12065-
is
12066-
a
12067-
change
12068-
from
12069-
CSS2
12070-
*
12071-
which
12072-
excluded
12073-
Pc
12074-
and
12075-
Pd
12076-
.
12077-
*
12078-
*
12079-
https
12080-
:
12081-
/
12082-
/
12083-
www
12084-
.
12085-
w3
12086-
.
12087-
org
12088-
/
12089-
TR
12090-
/
12091-
css
12092-
-
12093-
pseudo
12094-
-
12095-
4
12096-
/
12097-
#
12098-
first
12099-
-
12100-
letter
12101-
-
12102-
pseudo
12103-
*
12104-
"
12105-
Punctuation
12106-
(
12107-
i
12108-
.
12109-
e
12110-
characters
12111-
that
12112-
belong
12113-
to
12114-
the
12115-
Punctuation
12116-
(
12117-
P
12118-
*
12119-
)
12120-
Unicode
12121-
*
12122-
general
12123-
category
12124-
[
12125-
UAX44
12126-
]
12127-
)
12128-
[
12129-
.
12130-
.
12131-
.
12132-
]
12133-
"
12134-
*
12135-
/
12136-
/
12137-
/
12138-
static
12139-
bool
12140-
nsContentUtils
12141-
:
12142-
:
12143-
IsFirstLetterPunctuation
12144-
(
12145-
uint32_t
12146-
aChar
12147-
)
12148-
{
12149-
switch
12150-
(
12151-
mozilla
12152-
:
12153-
:
12154-
unicode
12155-
:
12156-
:
12157-
GetGeneralCategory
12158-
(
12159-
aChar
12160-
)
12161-
)
12162-
{
12163-
case
12164-
HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION
12165-
:
12166-
/
12167-
*
12168-
Pc
12169-
*
12170-
/
12171-
case
12172-
HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION
12173-
:
12174-
/
12175-
*
12176-
Pd
12177-
*
12178-
/
12179-
case
12180-
HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION
12181-
:
12182-
/
12183-
*
12184-
Pe
12185-
*
12186-
/
12187-
case
12188-
HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION
12189-
:
12190-
/
12191-
*
12192-
Pf
12193-
*
12194-
/
12195-
case
12196-
HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION
12197-
:
12198-
/
12199-
*
12200-
Pi
12201-
*
12202-
/
12203-
case
12204-
HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION
12205-
:
12206-
/
12207-
*
12208-
Po
12209-
*
12210-
/
12211-
case
12212-
HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION
12213-
:
12214-
/
12215-
*
12216-
Ps
12217-
*
12218-
/
12219-
return
12220-
true
12221-
;
12222-
default
12223-
:
12224-
return
12225-
false
12226-
;
12227-
}
12228-
}
12229-
/
1223012020
/
1223112021
static
1223212022
bool

dom/base/nsContentUtils.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5124,34 +5124,6 @@ aChar
51245124
is
51255125
of
51265126
class
5127-
Ps
5128-
Pi
5129-
Po
5130-
Pf
5131-
or
5132-
Pe
5133-
.
5134-
*
5135-
/
5136-
static
5137-
bool
5138-
IsFirstLetterPunctuation
5139-
(
5140-
uint32_t
5141-
aChar
5142-
)
5143-
;
5144-
/
5145-
*
5146-
*
5147-
*
5148-
Returns
5149-
true
5150-
if
5151-
aChar
5152-
is
5153-
of
5154-
class
51555127
Lu
51565128
Ll
51575129
Lt

0 commit comments

Comments
 (0)
0