Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
text-emphasis marks should not be rendered if there is no emphasized …
…character https://bugs.webkit.org/show_bug.cgi?id=251201 rdar://problem/104688963 Reviewed by Myles C. Maxfield. There were 2 different reasons for failing these tests: 1. When drawing emphasis mark (drawEmphasisMarks()) we weren't skipping the glyphs that were replaced by the deleted glyph (0xFFFF). 2. When iterating through the characters to be drawn with the text iterators, we weren't converting characters encoded as surrogated pairs (UTF16). When one of these characters would show up, we would pass them to canReceiveTextEmphasis(), implicitly converting the UChar word to a UChar32 word, without properly converting the surrogated pairs. * LayoutTests/TestExpectations: * Source/WebCore/platform/graphics/ComplexTextController.cpp: (WebCore::ComplexTextController::adjustGlyphsAndAdvances): * Source/WebCore/platform/graphics/FontCascade.cpp: (WebCore::FontCascade::drawEmphasisMarks const): * Source/WebCore/platform/graphics/GlyphBuffer.h: (WebCore::GlyphBuffer::makeGlyphInvisible): * Source/WebCore/platform/graphics/WidthIterator.cpp: (WebCore::WidthIterator::advanceInternal): (WebCore::WidthIterator::applyCSSVisibilityRules): * Source/WebCore/platform/graphics/coretext/GlyphPageCoreText.cpp: Canonical link: https://commits.webkit.org/262997@main
- Loading branch information
1 parent
bc5b02e
commit 3b04a52
Showing
6 changed files
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters