NEW 157118
[Cocoa] Initial advances don't work in LTR text
https://bugs.webkit.org/show_bug.cgi?id=157118
Summary [Cocoa] Initial advances don't work in LTR text
Myles C. Maxfield
Reported 2016-04-27 20:30:11 PDT
[Cocoa] Initial advances in the complex text path are not handled correctly when they occur at the beginning of an element
Attachments
Patch (6.54 KB, patch)
2016-04-27 20:31 PDT, Myles C. Maxfield
no flags
Archive of layout-test-results from ews103 for mac-yosemite (810.87 KB, application/zip)
2016-04-27 21:15 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (953.63 KB, application/zip)
2016-04-27 21:18 PDT, Build Bot
no flags
Archive of layout-test-results from ews125 for ios-simulator-wk2 (703.26 KB, application/zip)
2016-04-27 21:25 PDT, Build Bot
no flags
Archive of layout-test-results from ews116 for mac-yosemite (884.48 KB, application/zip)
2016-04-27 21:48 PDT, Build Bot
no flags
Patch (12.83 KB, patch)
2016-05-03 19:28 PDT, Myles C. Maxfield
no flags
Archive of layout-test-results from ews101 for mac-yosemite (808.84 KB, application/zip)
2016-05-03 20:13 PDT, Build Bot
no flags
Archive of layout-test-results from ews107 for mac-yosemite-wk2 (954.52 KB, application/zip)
2016-05-03 20:15 PDT, Build Bot
no flags
Archive of layout-test-results from ews113 for mac-yosemite (1.38 MB, application/zip)
2016-05-03 20:26 PDT, Build Bot
no flags
WIP (12.38 KB, patch)
2016-05-04 08:22 PDT, Myles C. Maxfield
no flags
Myles C. Maxfield
Comment 1 2016-04-27 20:31:32 PDT
Build Bot
Comment 2 2016-04-27 21:15:02 PDT
Comment on attachment 277579 [details] Patch Attachment 277579 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1232385 New failing tests: fast/text/complex-first-glyph-with-initial-advance.html
Build Bot
Comment 3 2016-04-27 21:15:05 PDT
Created attachment 277583 [details] Archive of layout-test-results from ews103 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 4 2016-04-27 21:18:20 PDT
Comment on attachment 277579 [details] Patch Attachment 277579 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1232395 New failing tests: fast/text/complex-first-glyph-with-initial-advance.html
Build Bot
Comment 5 2016-04-27 21:18:23 PDT
Created attachment 277584 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 6 2016-04-27 21:25:22 PDT
Comment on attachment 277579 [details] Patch Attachment 277579 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/1232404 New failing tests: fast/text/complex-first-glyph-with-initial-advance.html
Build Bot
Comment 7 2016-04-27 21:25:25 PDT
Created attachment 277586 [details] Archive of layout-test-results from ews125 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews125 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.4
Build Bot
Comment 8 2016-04-27 21:48:37 PDT
Created attachment 277588 [details] Archive of layout-test-results from ews116 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews116 Port: mac-yosemite Platform: Mac OS X 10.10.5
Myles C. Maxfield
Comment 9 2016-05-03 19:28:37 PDT
Build Bot
Comment 10 2016-05-03 20:13:00 PDT
Comment on attachment 278053 [details] Patch Attachment 278053 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/1263765 New failing tests: fast/ruby/ruby-expansion-cjk-4.html
Build Bot
Comment 11 2016-05-03 20:13:04 PDT
Created attachment 278056 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Build Bot
Comment 12 2016-05-03 20:15:44 PDT
Comment on attachment 278053 [details] Patch Attachment 278053 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/1263769 New failing tests: fast/ruby/ruby-expansion-cjk-4.html
Build Bot
Comment 13 2016-05-03 20:15:48 PDT
Created attachment 278057 [details] Archive of layout-test-results from ews107 for mac-yosemite-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-yosemite-wk2 Platform: Mac OS X 10.10.5
Build Bot
Comment 14 2016-05-03 20:26:07 PDT
Comment on attachment 278053 [details] Patch Attachment 278053 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/1263790 New failing tests: fast/ruby/ruby-expansion-cjk-4.html
Build Bot
Comment 15 2016-05-03 20:26:11 PDT
Created attachment 278060 [details] Archive of layout-test-results from ews113 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-yosemite Platform: Mac OS X 10.10.5
Darin Adler
Comment 16 2016-05-03 23:10:48 PDT
Comment on attachment 278053 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=278053&action=review > Source/WebCore/platform/graphics/mac/ComplexTextController.cpp:162 > + if (m_complexTextRuns.isEmpty()) > + return; > + > if (!m_isLTROnly) { > m_runIndices.reserveInitialCapacity(m_complexTextRuns.size()); > > m_glyphCountFromStartToIndex.reserveInitialCapacity(m_complexTextRuns.size()); > unsigned glyphCountSoFar = 0; > - for (unsigned i = 0; i < m_complexTextRuns.size(); ++i) { > + for (auto& complexTextRun : m_complexTextRuns) { > m_glyphCountFromStartToIndex.uncheckedAppend(glyphCountSoFar); > - glyphCountSoFar += m_complexTextRuns[i]->glyphCount(); > + glyphCountSoFar += complexTextRun->glyphCount(); > } > } > > - m_runWidthSoFar = m_leadingExpansion; > + m_runWidthSoFar = m_leadingExpansion + m_complexTextRuns[0]->initialAdvance().width; Is it OK to have m_runWidthSoFar be 0 rather than m_leadingExpansion when m_complexTextRuns is empty? That seems to be a change in behavior.
Myles C. Maxfield
Comment 17 2016-05-04 08:22:02 PDT
Note You need to log in before you can comment on or make changes to this bug.