WebKit Bugzilla
[chromium] overlapping characters in complex text
Created attachment 59328 [details] Patch
Created attachment 59329 [details] Patch
Code cleanup is good, but I'm not clear where the actual fix is. Is it the clearing of the arrays? If so, isn't that a Harfbuzz bug? Maybe add a comment when clearing them so that someone doesn't optimise it away in the future.
I spent a long time reverting and reapplying bits of this patch and I am actually kind of confused why this refactoring is making the test fail or pass. However, the new code is clearly more correct than the prior code (instead of a looping reallocation we now just allocate the proper memory in the first go) I think the patch is ok anyway. I imagine it's probably something using uninitialized memory that's causing the problem.
Created attachment 59412 [details] Patch
Created attachment 59567 [details] a simple test I confirmed that the patch here fixes one of two issues reported against Chromium ( http://crbug.com/44646.html http://crbug.com/43951.html ). I'm attaching a test html file illustrating the issue fixed by this patch.
Comment on attachment 59412 [details] Patch Not my strong suit, but looks reasonable. WebCore/platform/graphics/chromium/FontLinux.cpp:421 + m_glyphs16 = new uint16_t[size]; This doesn't need to be zeroed?
That's an output, so it seems ok.
Committed r61795: <http://trac.webkit.org/changeset/61795>