Bug 169453 - Update font-style's implementation in the font selection algorithm
Summary: Update font-style's implementation in the font selection algorithm
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-09 16:04 PST by Myles C. Maxfield
Modified: 2017-05-23 00:37 PDT (History)
8 users (show)

See Also:


Attachments
Needs tests (20.82 KB, patch)
2017-05-22 15:44 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (36.15 KB, patch)
2017-05-22 16:35 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-elcapitan-wk2 (2.28 MB, application/zip)
2017-05-22 17:34 PDT, Build Bot
no flags Details
Patch (40.34 KB, patch)
2017-05-22 17:39 PDT, Myles C. Maxfield
simon.fraser: review+
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-09 16:04:04 PST
https://github.com/w3c/csswg-drafts/commit/d93fbf496e170fa94dc8b32fb62958ad2cf57842

We need to spend more time figuring out how to treat italic and oblique the same (or just stop trying to treat them the same and implement them correctly separately)
Comment 1 Myles C. Maxfield 2017-05-22 15:44:21 PDT
Created attachment 310938 [details]
Needs tests
Comment 2 Myles C. Maxfield 2017-05-22 16:35:54 PDT
Created attachment 310952 [details]
Patch
Comment 3 Build Bot 2017-05-22 17:34:15 PDT
Comment on attachment 310952 [details]
Patch

Attachment 310952 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/3796974

New failing tests:
fast/text/font-style-parse.html
Comment 4 Build Bot 2017-05-22 17:34:16 PDT
Created attachment 310961 [details]
Archive of layout-test-results from ews104 for mac-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 5 Myles C. Maxfield 2017-05-22 17:39:16 PDT
Created attachment 310963 [details]
Patch
Comment 6 Radar WebKit Bug Importer 2017-05-22 17:41:51 PDT
<rdar://problem/32341177>
Comment 7 Simon Fraser (smfr) 2017-05-22 17:45:42 PDT
Comment on attachment 310963 [details]
Patch

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

> Source/WebCore/css/FontFace.cpp:293
> +    auto minimum = ComputedStyleExtractor::fontStyleFromStyleValue(style.minimum, true);
> +    auto maximum = ComputedStyleExtractor::fontStyleFromStyleValue(style.maximum, true);

Would read better with an enum argument. Enum could mention italic/oblique which would make this all easier to follow.
Comment 8 Myles C. Maxfield 2017-05-23 00:37:52 PDT
Committed r217272: <http://trac.webkit.org/changeset/217272>