Bug 168893

Summary: Parsing font descriptors inside @font-face needs to accept ranges
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, hyatt, jonlee, mmaxfield, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 162815    
Attachments:
Description Flags
WIP
none
Patch dino: review+

Description Myles C. Maxfield 2017-02-26 21:22:27 PST
... but the properties don't accept ranges. Therefore, the parser needs to have two ways to parse these keywords.
Comment 1 Myles C. Maxfield 2017-02-26 21:35:20 PST
This includes modifying CSSFontFace to take ranges, and migrating everything off of FontTraitsMask
Comment 2 Myles C. Maxfield 2017-03-06 18:53:08 PST
Created attachment 303602 [details]
WIP
Comment 3 WebKit Commit Bot 2017-03-06 18:54:42 PST
Attachment 303602 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 6 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Myles C. Maxfield 2017-03-06 18:56:42 PST
*** Bug 168891 has been marked as a duplicate of this bug. ***
Comment 5 Myles C. Maxfield 2017-03-06 19:58:57 PST
Created attachment 303607 [details]
Patch
Comment 6 Dean Jackson 2017-03-07 11:21:45 PST
Comment on attachment 303607 [details]
Patch

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

> Source/WebCore/css/CSSFontFace.cpp:135
> +        auto& value0 = downcast<CSSPrimitiveValue>(*valueList.item(0));
> +        auto& value1 = downcast<CSSPrimitiveValue>(*valueList.item(1));

You should probably guard for length == 2, not just ASSERT it.
Comment 7 Myles C. Maxfield 2017-03-07 11:26:29 PST
Committed r213528: <http://trac.webkit.org/changeset/213528>
Comment 8 Radar WebKit Bug Importer 2017-03-23 21:32:07 PDT
<rdar://problem/31235144>