| Index: Source/platform/fonts/Font.cpp
|
| diff --git a/Source/platform/fonts/Font.cpp b/Source/platform/fonts/Font.cpp
|
| index 03bcf14f77afc0846a860bcdd7bb81673a4dbf3d..168b13cbb34c5839c64ff171a6cce569daa41baa 100644
|
| --- a/Source/platform/fonts/Font.cpp
|
| +++ b/Source/platform/fonts/Font.cpp
|
| @@ -107,7 +107,7 @@ void Font::drawText(GraphicsContext* context, const TextRunPaintInfo& runInfo, c
|
| // Don't draw anything while we are using custom fonts that are in the process of loading,
|
| // except if the 'force' argument is set to true (in which case it will use a fallback
|
| // font).
|
| - if (loadingCustomFonts() && customFontNotReadyAction == DoNotPaintIfFontNotReady)
|
| + if (shouldSkipDrawing() && customFontNotReadyAction == DoNotPaintIfFontNotReady)
|
| return;
|
|
|
| CodePath codePathToUse = codePath(runInfo.run);
|
| @@ -123,7 +123,7 @@ void Font::drawText(GraphicsContext* context, const TextRunPaintInfo& runInfo, c
|
|
|
| void Font::drawEmphasisMarks(GraphicsContext* context, const TextRunPaintInfo& runInfo, const AtomicString& mark, const FloatPoint& point) const
|
| {
|
| - if (loadingCustomFonts())
|
| + if (shouldSkipDrawing())
|
| return;
|
|
|
| CodePath codePathToUse = codePath(runInfo.run);
|
|
|