RESOLVED FIXED 150074
Split TypesettingFeatures into kerning and ligatures bools
https://bugs.webkit.org/show_bug.cgi?id=150074
Summary Split TypesettingFeatures into kerning and ligatures bools
Myles C. Maxfield
Reported 2015-10-12 18:37:35 PDT
Split TypesettingFeatures into kerning and ligatures bools
Attachments
Patch (50.32 KB, patch)
2015-10-12 18:48 PDT, Myles C. Maxfield
simon.fraser: review+
Patch for committing (52.95 KB, patch)
2015-10-13 12:12 PDT, Myles C. Maxfield
no flags
Patch for committing (53.92 KB, patch)
2015-10-13 12:24 PDT, Myles C. Maxfield
buildbot: commit-queue-
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (357.61 KB, application/zip)
2015-10-13 13:06 PDT, Build Bot
no flags
Archive of layout-test-results from ews102 for mac-mavericks (724.16 KB, application/zip)
2015-10-13 13:14 PDT, Build Bot
no flags
Patch for committing (53.99 KB, patch)
2015-10-13 13:16 PDT, Myles C. Maxfield
no flags
Patch for committing (52.91 KB, patch)
2015-10-13 14:55 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2015-10-12 18:48:40 PDT
Simon Fraser (smfr)
Comment 2 2015-10-12 18:58:11 PDT
Comment on attachment 262958 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=262958&action=review > Source/WebCore/platform/graphics/FontCascade.cpp:108 > + , m_enableKerning(0) > + , m_enableLigatures(0) false, not 0. > Source/WebCore/platform/graphics/FontCascade.h:310 > + return kerning == FontCascadeDescription::Kerning::Normal > + || (kerning == FontCascadeDescription::Kerning::Auto > + && (textRenderingMode == GeometricPrecision > + || textRenderingMode == OptimizeLegibility > + || (textRenderingMode == AutoTextRendering && s_defaultKerning))); My eyes! Can you factor this into some more readable inline functions? > Source/WebCore/platform/graphics/FontCascade.h:321 > + return ligatures == FontVariantLigatures::Yes > + || (ligatures == FontVariantLigatures::Normal > + && (textRenderingMode == GeometricPrecision > + || textRenderingMode == OptimizeLegibility > + || (textRenderingMode == AutoTextRendering && s_defaultLigatures))); Ditto. > Source/WebCore/platform/graphics/FontDescription.h:195 > - enum Kerning { AutoKerning, NormalKerning, NoneKerning }; > + enum class Kerning { Auto, Normal, None }; Call sites would be more readable if you move this outside the class. > Source/WebCore/platform/graphics/WidthIterator.h:92 > + bool m_enableKerning; > + bool m_enableLigatures; No initializers? > Source/WebCore/platform/graphics/cocoa/FontCocoa.mm:478 > + ProviderInfo info = { characters, length, getCFStringAttributes(false, false, platformData().orientation()) }; Boolean trap here.
Myles C. Maxfield
Comment 3 2015-10-13 12:12:25 PDT
Created attachment 263005 [details] Patch for committing
Myles C. Maxfield
Comment 4 2015-10-13 12:24:38 PDT
Created attachment 263007 [details] Patch for committing
Build Bot
Comment 5 2015-10-13 13:06:16 PDT
Comment on attachment 263007 [details] Patch for committing Attachment 263007 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/280259 Number of test failures exceeded the failure limit.
Build Bot
Comment 6 2015-10-13 13:06:20 PDT
Created attachment 263011 [details] Archive of layout-test-results from ews106 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Build Bot
Comment 7 2015-10-13 13:14:08 PDT
Comment on attachment 263007 [details] Patch for committing Attachment 263007 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/280283 Number of test failures exceeded the failure limit.
Build Bot
Comment 8 2015-10-13 13:14:11 PDT
Created attachment 263012 [details] Archive of layout-test-results from ews102 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-mavericks Platform: Mac OS X 10.9.5
Myles C. Maxfield
Comment 9 2015-10-13 13:16:53 PDT
Created attachment 263013 [details] Patch for committing
Myles C. Maxfield
Comment 10 2015-10-13 14:55:42 PDT
Created attachment 263024 [details] Patch for committing
Myles C. Maxfield
Comment 11 2015-10-13 16:41:15 PDT
Radar WebKit Bug Importer
Comment 12 2015-12-04 14:45:27 PST
Note You need to log in before you can comment on or make changes to this bug.