Chromium Code Reviews
DescriptionReturn correct length for firstLetterLength.
Currently if the text passed into firstLetterLength has a length of 0 we will
return a length of 1. This is wrong as we should be returning a length of 0.
This CL fixes the code to check or the length and then fixes the caller to
correctly handle the cases where needed the length to be 1 instead of the
correct 0.
Also, LayoutTests were added to show we correctly handle a <br> and <wbr>
as the first character in the div when looking for the first-letter renderer.
BUG=425008
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184658
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Rebase to master #Patch Set 3 : #
Messages
Total messages: 15 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||