| Index: Source/web/mac/WebSubstringUtil.mm
|
| diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm
|
| index 14d2d356252c3a029114a51dd525f5783e01771a..db4044880409e6d91f9d6076ac294914fee0a5da 100644
|
| --- a/Source/web/mac/WebSubstringUtil.mm
|
| +++ b/Source/web/mac/WebSubstringUtil.mm
|
| @@ -78,7 +78,8 @@ static NSAttributedString* attributedSubstringFromRange(const Range* range)
|
| continue;
|
|
|
| LayoutStyle* style = renderer->style();
|
| - NSFont* font = style->font().primaryFont()->getNSFont();
|
| + const FontPlatformData& fontPlatformData = style->font().primaryFont()->platformData();
|
| + const NSFont* font = reinterpret_cast<const NSFont*>(fontPlatformData.ctFont());
|
| // 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
|
|
|