Bug 162490 - [Cocoa] ☔ Implement font-variation-settings
Summary: [Cocoa] ☔ Implement font-variation-settings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords:
Depends on: 162774 162779 162780 162781 162782 162783
Blocks: 162815
  Show dependency treegraph
 
Reported: 2016-09-23 06:36 PDT by Myles C. Maxfield
Modified: 2016-09-30 17:35 PDT (History)
3 users (show)

See Also:


Attachments
WIP (53.46 KB, patch)
2016-09-23 06:37 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Needs animation support (55.98 KB, patch)
2016-09-24 03:13 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Needs Tests (62.24 KB, patch)
2016-09-26 00:55 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
WIP (83.31 KB, patch)
2016-09-28 01:03 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews125 for ios-simulator-elcapitan-wk2 (7.58 MB, application/zip)
2016-09-28 02:20 PDT, Build Bot
no flags Details
Patch (106.20 KB, patch)
2016-09-28 17:28 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (106.47 KB, patch)
2016-09-28 17:39 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (107.60 KB, patch)
2016-09-28 19:03 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (107.63 KB, patch)
2016-09-29 13:45 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews124 for ios-simulator-elcapitan-wk2 (16.67 MB, application/zip)
2016-09-29 15:02 PDT, Build Bot
no flags Details
Patch (118.71 KB, patch)
2016-09-29 16:20 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (119.20 KB, patch)
2016-09-29 16:34 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (123.67 KB, patch)
2016-09-29 18:15 PDT, Myles C. Maxfield
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-yosemite-wk2 (1.05 MB, application/zip)
2016-09-29 19:51 PDT, Build Bot
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2016-09-23 06:36:18 PDT
[Cocoa] Implement font-variation-settings
Comment 1 Myles C. Maxfield 2016-09-23 06:37:16 PDT
Created attachment 289681 [details]
WIP
Comment 2 Myles C. Maxfield 2016-09-24 03:13:11 PDT
Created attachment 289742 [details]
Needs animation support
Comment 3 Myles C. Maxfield 2016-09-26 00:55:57 PDT
Created attachment 289803 [details]
Needs Tests
Comment 4 Myles C. Maxfield 2016-09-28 01:03:56 PDT
Created attachment 290068 [details]
WIP
Comment 5 WebKit Commit Bot 2016-09-28 01:06:57 PDT
Attachment 290068 [details] did not pass style-queue:


ERROR: LayoutTests/TestExpectations:992:  Path does not exist.  [test/expectations] [5]
ERROR: LayoutTests/TestExpectations:993:  Path does not exist.  [test/expectations] [5]
ERROR: LayoutTests/platform/ios-simulator/TestExpectations:2670:  Path does not exist.  [test/expectations] [5]
ERROR: LayoutTests/platform/ios-simulator/TestExpectations:2671:  Path does not exist.  [test/expectations] [5]
ERROR: LayoutTests/platform/mac/TestExpectations:1461:  Path does not exist.  [test/expectations] [5]
ERROR: LayoutTests/platform/mac/TestExpectations:1462:  Path does not exist.  [test/expectations] [5]
Total errors found: 6 in 45 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Build Bot 2016-09-28 02:20:41 PDT
Comment on attachment 290068 [details]
WIP

Attachment 290068 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2160260

New failing tests:
fast/text/trak-optimizeLegibility.html
fast/text/variations/exist.html
Comment 7 Build Bot 2016-09-28 02:20:44 PDT
Created attachment 290069 [details]
Archive of layout-test-results from ews125 for ios-simulator-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews125  Port: ios-simulator-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 8 Myles C. Maxfield 2016-09-28 17:28:01 PDT
Created attachment 290151 [details]
Patch
Comment 9 Myles C. Maxfield 2016-09-28 17:39:13 PDT
Created attachment 290152 [details]
Patch
Comment 10 Simon Fraser (smfr) 2016-09-28 18:11:00 PDT
Comment on attachment 290151 [details]
Patch

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

I think we need to have a runtime flag for the new font variation stuff. We can't expose font-variation-settings without it.

> Source/WebCore/page/animation/CSSPropertyAnimation.cpp:557
> +        // If the style pointers are the same, don't bother doing the test.
> +        // If either is null, return false. If both are null, return true.
> +        if (a == b)
> +            return true;
> +        if (!a || !b)
> +            return false;
> +
> +        const FontVariationSettings& variationSettingsA = (a->*m_getter)();
> +        const FontVariationSettings& variationSettingsB = (b->*m_getter)();
> +        return variationSettingsA == variationSettingsB;

See arePointingToEqualData()

> Source/WebCore/platform/graphics/FontTaggedSettings.cpp:2
> + * Copyright (C) 2011 Google Inc. All rights reserved.

Need to add an Apple line here if anything changed.
Comment 11 Myles C. Maxfield 2016-09-28 19:01:40 PDT
(In reply to comment #10)
> > Source/WebCore/page/animation/CSSPropertyAnimation.cpp:557
> > +        // If the style pointers are the same, don't bother doing the test.
> > +        // If either is null, return false. If both are null, return true.
> > +        if (a == b)
> > +            return true;
> > +        if (!a || !b)
> > +            return false;
> > +
> > +        const FontVariationSettings& variationSettingsA = (a->*m_getter)();
> > +        const FontVariationSettings& variationSettingsB = (b->*m_getter)();
> > +        return variationSettingsA == variationSettingsB;
> 
> See arePointingToEqualData()
> 

That function seems to be for pointers, but these variables are references.
Comment 12 Myles C. Maxfield 2016-09-28 19:02:10 PDT
(In reply to comment #10)
> Comment on attachment 290151 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=290151&action=review
> 
> I think we need to have a runtime flag for the new font variation stuff. We
> can't expose font-variation-settings without it.
> 

I'll ask Sam about this tomorrow.
Comment 13 Myles C. Maxfield 2016-09-28 19:03:23 PDT
Created attachment 290160 [details]
Patch
Comment 14 Myles C. Maxfield 2016-09-29 13:45:17 PDT
Created attachment 290239 [details]
Patch
Comment 15 Build Bot 2016-09-29 15:02:22 PDT
Comment on attachment 290239 [details]
Patch

Attachment 290239 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/2170567

New failing tests:
fast/text/trak-optimizeLegibility.html
Comment 16 Build Bot 2016-09-29 15:02:27 PDT
Created attachment 290251 [details]
Archive of layout-test-results from ews124 for ios-simulator-elcapitan-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews124  Port: ios-simulator-elcapitan-wk2  Platform: Mac OS X 10.11.6
Comment 17 Myles C. Maxfield 2016-09-29 16:20:21 PDT
Created attachment 290261 [details]
Patch
Comment 18 Myles C. Maxfield 2016-09-29 16:34:52 PDT
Created attachment 290262 [details]
Patch
Comment 19 Myles C. Maxfield 2016-09-29 18:15:51 PDT
Created attachment 290277 [details]
Patch
Comment 20 Build Bot 2016-09-29 19:51:27 PDT
Comment on attachment 290277 [details]
Patch

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

New failing tests:
fast/images/percent-height-image.html
Comment 21 Build Bot 2016-09-29 19:51:29 PDT
Created attachment 290286 [details]
Archive of layout-test-results from ews104 for mac-yosemite-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-yosemite-wk2  Platform: Mac OS X 10.10.5