Bug 169260 - Well-known variations should clamp to the values listed in the @font-face block
Summary: Well-known variations should clamp to the values listed in the @font-face block
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks: 162815
  Show dependency treegraph
 
Reported: 2017-03-06 21:17 PST by Myles C. Maxfield
Modified: 2017-04-12 13:54 PDT (History)
5 users (show)

See Also:


Attachments
Needs tests (39.67 KB, patch)
2017-03-29 20:08 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
CSSFontFace::m_fontSelectionCapabilities needs to be able to be optional in CSSFontFace::font() (40.34 KB, patch)
2017-04-09 21:59 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Needs tests (46.20 KB, patch)
2017-04-11 14:55 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (49.12 KB, patch)
2017-04-11 15:19 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (49.23 KB, patch)
2017-04-11 15:21 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (49.25 KB, patch)
2017-04-11 20:50 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (49.70 KB, patch)
2017-04-11 21:00 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (51.81 KB, patch)
2017-04-11 21:51 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2017-03-06 21:17:30 PST
See https://github.com/w3c/csswg-drafts/issues/782
Comment 1 Myles C. Maxfield 2017-03-29 20:08:47 PDT
Created attachment 305824 [details]
Needs tests
Comment 2 Radar WebKit Bug Importer 2017-04-07 19:17:26 PDT
<rdar://problem/31516360>
Comment 3 Myles C. Maxfield 2017-04-09 21:59:23 PDT
Created attachment 306651 [details]
CSSFontFace::m_fontSelectionCapabilities needs to be able to be optional in CSSFontFace::font()
Comment 4 Myles C. Maxfield 2017-04-11 14:55:26 PDT
Created attachment 306856 [details]
Needs tests
Comment 5 Myles C. Maxfield 2017-04-11 15:19:05 PDT
Created attachment 306862 [details]
Patch
Comment 6 Myles C. Maxfield 2017-04-11 15:21:38 PDT
Created attachment 306864 [details]
Patch
Comment 7 Myles C. Maxfield 2017-04-11 20:50:51 PDT
Created attachment 306885 [details]
Patch
Comment 8 Myles C. Maxfield 2017-04-11 21:00:56 PDT
Created attachment 306886 [details]
Patch
Comment 9 Myles C. Maxfield 2017-04-11 21:51:01 PDT
Created attachment 306888 [details]
Patch
Comment 10 Dean Jackson 2017-04-12 13:23:24 PDT
Comment on attachment 306888 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=306888&action=review

> Source/WebCore/platform/graphics/FontSelectionAlgorithm.h:319
> +    uint32_t uniqueValue() const
> +    {
> +        return minimum.rawValue() << 16 | maximum.rawValue();
> +    }
> +

Is that really unique?
Comment 11 Myles C. Maxfield 2017-04-12 13:24:18 PDT
(In reply to Dean Jackson from comment #10)
> Comment on attachment 306888 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=306888&action=review
> 
> > Source/WebCore/platform/graphics/FontSelectionAlgorithm.h:319
> > +    uint32_t uniqueValue() const
> > +    {
> > +        return minimum.rawValue() << 16 | maximum.rawValue();
> > +    }
> > +
> 
> Is that really unique?

This function maps two 16-bit numbers to a unique 32-bit number, so yes.
Comment 12 WebKit Commit Bot 2017-04-12 13:54:08 PDT
Comment on attachment 306888 [details]
Patch

Clearing flags on attachment: 306888

Committed r215287: <http://trac.webkit.org/changeset/215287>
Comment 13 WebKit Commit Bot 2017-04-12 13:54:10 PDT
All reviewed patches have been landed.  Closing bug.