Skip to content

Commit 8685aa2

Browse files
committed
Fix text rendering regression.
Disable the usage of the complex text codepath by deafult and also remove a condition that triggers the complext codepath.
1 parent 99f8a7a commit 8685aa2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Source/WebCore/platform/graphics/FontCascade.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ FontCascade::CodePath FontCascade::codePath(const TextRun& run, std::optional<un
640640

641641
// FIXME: https://bugs.webkit.org/show_bug.cgi?id=150791: @font-face features should also cause this to be complex.
642642

643-
#if !USE(FONT_VARIANT_VIA_FEATURES) && !USE(FREETYPE)
643+
#if 0 && !USE(FONT_VARIANT_VIA_FEATURES) && !USE(FREETYPE)
644644
if (run.length() > 1 && (enableKerning() || requiresShaping()))
645645
return CodePath::Complex;
646646
#endif

Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ namespace WebKit {
7777

7878
void WebProcessPool::platformInitialize(NeedsGlobalStaticInitialization)
7979
{
80-
m_alwaysUsesComplexTextCodePath = true;
80+
m_alwaysUsesComplexTextCodePath = false;
8181

8282
if (const char* forceComplexText = getenv("WEBKIT_FORCE_COMPLEX_TEXT"))
8383
m_alwaysUsesComplexTextCodePath = !strcmp(forceComplexText, "1");

0 commit comments

Comments
 (0)