[ios] Fix RenderTextTest.DefaultLineHeights test failure

The size delta for iOS applied as -2.

Bug: 1428953
Change-Id: I3612d098cbab34925e9512035a07ee9a83834a07
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4547048
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Hyowon Kim <hyowon@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1148422}
diff --git a/ui/gfx/render_text_unittest.cc b/ui/gfx/render_text_unittest.cc
index bf57032..ca3e689 100644
--- a/ui/gfx/render_text_unittest.cc
+++ b/ui/gfx/render_text_unittest.cc
@@ -4964,8 +4964,10 @@
   RenderText* render_text = GetRenderText();
   render_text->SetText(u"A quick brown fox jumped over the lazy dog!");
 
-#if BUILDFLAG(IS_APPLE)
+#if BUILDFLAG(IS_MAC)
   const FontList body2_font = FontList().DeriveWithSizeDelta(-1);
+#elif BUILDFLAG(IS_IOS)
+  const FontList body2_font = FontList().DeriveWithSizeDelta(-2);
 #else
   const FontList body2_font;
 #endif