RESOLVED FIXED 181013
Refactor user-installed font setting for clarity
https://bugs.webkit.org/show_bug.cgi?id=181013
Summary Refactor user-installed font setting for clarity
Myles C. Maxfield
Reported 2017-12-19 17:10:58 PST
Refactor user-installed font setting for clarity
Attachments
Patch (35.56 KB, patch)
2017-12-19 17:19 PST, Myles C. Maxfield
no flags
Patch (34.50 KB, patch)
2017-12-19 17:25 PST, Myles C. Maxfield
simon.fraser: review+
simon.fraser: commit-queue-
Myles C. Maxfield
Comment 1 2017-12-19 17:19:26 PST
Myles C. Maxfield
Comment 2 2017-12-19 17:25:20 PST
Simon Fraser (smfr)
Comment 3 2017-12-19 17:30:18 PST
Comment on attachment 329858 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=329858&action=review > Source/WebCore/platform/graphics/FontDescription.h:188 > + unsigned m_shouldAllowUserInstalledFonts : 1; // If this description is allowed to match a user-installed font The comment should mention the name of the enum. > Source/WebCore/platform/text/TextFlags.h:367 > + Yes, > + No Maybe better to flip these so that No is 0 in case this gets cast to a bool context. > Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h:118 > -@property (nonatomic, setter=_setShouldDisallowUserInstalledFonts:) BOOL _shouldDisallowUserInstalledFonts WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); > +@property (nonatomic, setter=_setShouldAllowUserInstalledFonts:) BOOL _shouldAllowUserInstalledFonts WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); I presume no-one is using this yet?
Simon Fraser (smfr)
Comment 4 2017-12-19 17:31:07 PST
Comment on attachment 329859 [details] Patch Please see my comments on the previous patch.
Myles C. Maxfield
Comment 5 2017-12-19 18:50:14 PST
Comment on attachment 329858 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=329858&action=review >> Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h:118 >> +@property (nonatomic, setter=_setShouldAllowUserInstalledFonts:) BOOL _shouldAllowUserInstalledFonts WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA)); > > I presume no-one is using this yet? Correct.
Myles C. Maxfield
Comment 6 2017-12-19 19:24:22 PST
Radar WebKit Bug Importer
Comment 7 2017-12-19 19:26:56 PST
Note You need to log in before you can comment on or make changes to this bug.