| Index: Source/web/mac/WebSubstringUtil.mm
|
| diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm
|
| index a70bacadc60cad41ab2d79ecfb65ef1e82b8a4fc..07923b5b6d48ecf73133c7170c4cb49d53547b04 100644
|
| --- a/Source/web/mac/WebSubstringUtil.mm
|
| +++ b/Source/web/mac/WebSubstringUtil.mm
|
| @@ -78,8 +78,7 @@
|
| continue;
|
|
|
| LayoutStyle* style = renderer->style();
|
| - const FontPlatformData& fontPlatformData = style->font().primaryFont()->platformData();
|
| - NSFont* font = toNSFont(fontPlatformData.ctFont());
|
| + NSFont* font = style->font().primaryFont()->getNSFont();
|
| // If the platform font can't be loaded, it's likely that the site is
|
| // using a web font. For now, just use the default font instead.
|
| // TODO(rsesek): Change the font activation flags to allow other processes
|
|
|