Chromium Code Reviews| Index: Source/web/mac/WebSubstringUtil.mm |
| diff --git a/Source/web/mac/WebSubstringUtil.mm b/Source/web/mac/WebSubstringUtil.mm |
| index 07923b5b6d48ecf73133c7170c4cb49d53547b04..b2c4729586ac6776b5ddca0f46cf951f86947764 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()); |
|
Robert Sesek
2015/03/19 21:53:45
NSObjects are never const.
Dominik Röttsches
2015/03/20 11:01:07
Changed to NSFont* - however, as above, the nested
|
| // 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 |