RESOLVED FIXED Bug 162490
[Cocoa] ☔ Implement font-variation-settings
https://bugs.webkit.org/show_bug.cgi?id=162490
Summary [Cocoa] ☔ Implement font-variation-settings
Myles C. Maxfield
Reported 2016-09-23 06:36:18 PDT
[Cocoa] Implement font-variation-settings
Attachments
WIP (53.46 KB, patch)
2016-09-23 06:37 PDT, Myles C. Maxfield
no flags
Needs animation support (55.98 KB, patch)
2016-09-24 03:13 PDT, Myles C. Maxfield
no flags
Needs Tests (62.24 KB, patch)
2016-09-26 00:55 PDT, Myles C. Maxfield
no flags
WIP (83.31 KB, patch)
2016-09-28 01:03 PDT, Myles C. Maxfield
no flags
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
Patch (106.20 KB, patch)
2016-09-28 17:28 PDT, Myles C. Maxfield
no flags
Patch (106.47 KB, patch)
2016-09-28 17:39 PDT, Myles C. Maxfield
no flags
Patch (107.60 KB, patch)
2016-09-28 19:03 PDT, Myles C. Maxfield
no flags
Patch (107.63 KB, patch)
2016-09-29 13:45 PDT, Myles C. Maxfield
no flags
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
Patch (118.71 KB, patch)
2016-09-29 16:20 PDT, Myles C. Maxfield
no flags
Patch (119.20 KB, patch)
2016-09-29 16:34 PDT, Myles C. Maxfield
no flags
Patch (123.67 KB, patch)
2016-09-29 18:15 PDT, Myles C. Maxfield
buildbot: commit-queue-
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
Myles C. Maxfield
Comment 1 2016-09-23 06:37:16 PDT
Myles C. Maxfield
Comment 2 2016-09-24 03:13:11 PDT
Created attachment 289742 [details] Needs animation support
Myles C. Maxfield
Comment 3 2016-09-26 00:55:57 PDT
Created attachment 289803 [details] Needs Tests
Myles C. Maxfield
Comment 4 2016-09-28 01:03:56 PDT
WebKit Commit Bot
Comment 5 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.
Build Bot
Comment 6 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
Build Bot
Comment 7 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
Myles C. Maxfield
Comment 8 2016-09-28 17:28:01 PDT
Myles C. Maxfield
Comment 9 2016-09-28 17:39:13 PDT
Simon Fraser (smfr)
Comment 10 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.
Myles C. Maxfield
Comment 11 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.
Myles C. Maxfield
Comment 12 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.
Myles C. Maxfield
Comment 13 2016-09-28 19:03:23 PDT
Myles C. Maxfield
Comment 14 2016-09-29 13:45:17 PDT
Build Bot
Comment 15 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
Build Bot
Comment 16 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
Myles C. Maxfield
Comment 17 2016-09-29 16:20:21 PDT
Myles C. Maxfield
Comment 18 2016-09-29 16:34:52 PDT
Myles C. Maxfield
Comment 19 2016-09-29 18:15:51 PDT
Build Bot
Comment 20 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
Build Bot
Comment 21 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
Note You need to log in before you can comment on or make changes to this bug.