DescriptionElements whose contents start with an astral Unicode symbol disappear when CSS `::first-letter` is applied to them.
This CL is inspired by http://trac.webkit.org/changeset/172513
written by Myles C. Maxfield.
The previous code assumed that all "characters" are exactly 1 16-bit code unit wide.
Instead, use numCharactersInGraphemeClusters().
For blink, we add countCharactersAndGraphemesInCluster to bring a similar
functionality to blink. This api is based on countGraphemesInCluster and improved
to figure out the number of characters and grapheme at the same time in the given clusters.
BUG=401945
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200227
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add a test missed from last CL. #Patch Set 3 : Working in process patch #
Total comments: 1
Patch Set 4 : Rebased #Patch Set 5 : Updated cl #Patch Set 6 : Reuse the existing interface of countGraphemesInCluster #Patch Set 7 : Rebase and resolve conflicts #Patch Set 8 : Change unsinged variable to int to make win compiler happy. #Patch Set 9 : Fixed layout test failures. #Patch Set 10 : Fixed UAF failures for ASan #
Messages
Total messages: 36 (11 generated)
|