Skip to content


8323880: Caret rendered at wrong position in case of a click event on…
Browse files Browse the repository at this point in the history
… RTL text

Backport-of: 1fb56e333bc65860cc1abeebd1cbb01cd8b8e5f3
  • Loading branch information
Jay Bhaskar committed Feb 16, 2024
1 parent 82618d0 commit 9fac61d
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -293,7 +293,19 @@ class FontCascade : public CanMakeWeakPtr<FontCascade> {

bool advancedTextRenderingMode() const
return m_fontDescription.textRenderingMode() != TextRenderingMode::OptimizeSpeed;
//The current implementation of complex text rendering path on the Java platform is experiencing
//side effects. We need to align with WebKit 616.1 standards.
auto textRenderingMode = m_fontDescription.textRenderingMode();
if (textRenderingMode == TextRenderingMode::GeometricPrecision || textRenderingMode == TextRenderingMode::OptimizeLegibility)
return true;
if (textRenderingMode == TextRenderingMode::OptimizeSpeed)
return false;

return false;

bool computeEnableKerning() const
Expand Down

1 comment on commit 9fac61d

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.