WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 166672
166667
[Cocoa] Font variations are inspected even when nobody is using variations
https://bugs.webkit.org/show_bug.cgi?id=166667
Summary
[Cocoa] Font variations are inspected even when nobody is using variations
Myles C. Maxfield
Reported
2017-01-03 15:24:38 PST
[Cocoa] Font variations are inspected even when nobody is using variations
Attachments
Patch
(3.07 KB, patch)
2017-01-03 15:25 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(3.91 KB, patch)
2017-01-03 15:26 PST
,
Myles C. Maxfield
no flags
Details
Formatted Diff
Diff
Patch
(3.94 KB, patch)
2017-01-03 15:29 PST
,
Myles C. Maxfield
sam
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Myles C. Maxfield
Comment 1
2017-01-03 15:25:33 PST
Created
attachment 297961
[details]
Patch
Myles C. Maxfield
Comment 2
2017-01-03 15:26:21 PST
Created
attachment 297962
[details]
Patch
Myles C. Maxfield
Comment 3
2017-01-03 15:29:28 PST
Created
attachment 297964
[details]
Patch
Myles C. Maxfield
Comment 4
2017-01-03 15:30:05 PST
<
rdar://problem/29848883
>
Said Abou-Hallawa
Comment 5
2017-01-03 18:14:49 PST
Comment on
attachment 297964
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=297964&action=review
> Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:466 > + if (iterator != defaultValues.end()) {
Can't we use: if (iterator == defaultValues.end()) continue; So we do not have to indent the rest of the loop.
> Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:467 > + float valueToApply = std::max(std::min(newVariation.value(), iterator->value.maximumValue), iterator->value.minimumValue);
Can't we use clampTo(newVariation.value(), iterator->value.minimumValue, iterator->value.maximumValue) instead?
Myles C. Maxfield
Comment 6
2017-01-03 19:16:14 PST
Comment on
attachment 297964
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=297964&action=review
>> Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:466 >> + if (iterator != defaultValues.end()) { > > Can't we use: > > if (iterator == defaultValues.end()) > continue; > > So we do not have to indent the rest of the loop.
👍
>> Source/WebCore/platform/graphics/cocoa/FontCacheCoreText.cpp:467 >> + float valueToApply = std::max(std::min(newVariation.value(), iterator->value.maximumValue), iterator->value.minimumValue); > > Can't we use clampTo(newVariation.value(), iterator->value.minimumValue, iterator->value.maximumValue) instead?
👍
Myles C. Maxfield
Comment 7
2017-01-03 19:17:28 PST
The patch at
https://bugs.webkit.org/show_bug.cgi?id=166672
fixes this. *** This bug has been marked as a duplicate of
bug 166672
***
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