haikuwebkit/LayoutTests/fast/text/text-security-disc-bullet-p...

11 lines
314 B
HTML
Raw Permalink Normal View History

[Cocoa] Password obscuring dots drawn with the system font are too small https://bugs.webkit.org/show_bug.cgi?id=209692 <rdar://problem/60788385> Reviewed by Darin Adler. Source/WebCore: The system font's U+2022 BULLET glyph got smaller. Instead, we should match the native platform's behavior of using U+F79A. However, U+F79A is a PUA character, meaning different fonts will draw it in arbitrary different ways. Therefore, we should only use this character if we're drawing it with the system font. Otherwise, we can take the old codepath and use U+2022 BULLET. Tests: fast/text/text-security-disc-bullet-pua.html platform/mac/fast/text/text-security-disc-bullet-pua-mac.html platform/ios/fast/text/text-security-disc-bullet-pua-ios-new.html platform/ios/fast/text/text-security-disc-bullet-pua-ios-old.html * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::text const): * rendering/RenderBlock.cpp: (WebCore::RenderBlock::constructTextRun): * rendering/SimpleLineLayout.cpp: (WebCore::SimpleLineLayout::canUseForStyle): * rendering/SimpleLineLayoutCoverage.cpp: (WebCore::SimpleLineLayout::printReason): * rendering/SimpleLineLayoutCoverage.h: * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::computeTextSecurityDiscShouldUsePUACodePoint const): * rendering/style/RenderStyle.h: LayoutTests: * fast/text/text-security-disc-bullet-pua-expected.html: Added. * fast/text/text-security-disc-bullet-pua.html: Added. * platform/ios/fast/text/text-security-disc-bullet-pua-ios-new-expected.html: Added. * platform/ios/fast/text/text-security-disc-bullet-pua-ios-new.html: Added. * platform/ios/fast/text/text-security-disc-bullet-pua-ios-old-expected.html: Added. * platform/ios/fast/text/text-security-disc-bullet-pua-ios-old.html: Added. * platform/mac/fast/text/text-security-disc-bullet-pua-mac-expected.html: Added. * platform/mac/fast/text/text-security-disc-bullet-pua-mac.html: Added. * platform/ios/TestExpectations: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/223459@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@260173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-16 05:57:41 +00:00
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This test makes sure that password fields get drawn with the correct text-security character.</p>
<div style="font: 48px system-ui; -webkit-text-security: disc;">abcdefg</div>
<div style="font: 48px serif; -webkit-text-security: disc;">abcdefg</div>
</body>
</html>