WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Details
Formatted Diff
Diff
Patch
(34.50 KB, patch)
2017-12-19 17:25 PST
,
Myles C. Maxfield
simon.fraser
: review+
simon.fraser
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2017-12-19 17:19:26 PST
Created
attachment 329858
[details]
Patch
Myles C. Maxfield
Comment 2
2017-12-19 17:25:20 PST
Created
attachment 329859
[details]
Patch
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
Committed
r226172
: <
https://trac.webkit.org/changeset/226172
>
Radar WebKit Bug Importer
Comment 7
2017-12-19 19:26:56 PST
<
rdar://problem/36147318
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug