DescriptionReland "Change fallback font collection in HarfBuzzShaper"
Change HarfBuzzShaper to not populate the fallback font list during text
shaping and instead populate it based on the ShapeResult objects at call
time. This circumvents additional registration work and renders the text
shaping API simpler and more consistent.
Originally authored by eae@ and landed[1] in r198813
(bbb929c88fbe43979dbb9b2b20218538) and then reverted in r198818
(64e30826c261ac7a2607e891dbe7e9d2d251e5f3) by virtue of Mac 10.6 test
failures caused by a missing NULL check, since added.
Then re-landed[2] in r198886 reported use on an uninitialized variable
on Linux MSAN build and reverted in r198923. It was caused by:
1. Uninitialized m_primaryFont, which was fixed in this CL.
2. Hit a bug in heap for some reasons, which was fixed separately in
[3][4]. PS6 failed MSAN try-bots before [4] and passed after.
[1] https://codereview.chromium.org/1239513004/
[2] https://codereview.chromium.org/1241613006/
[3] https://codereview.chromium.org/1259893002/
[4] https://codereview.chromium.org/1260013003/
BUG=512104
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200232
Patch Set 1 : Rebase of https://codereview.chromium.org/1241613006/ #Patch Set 2 : Initialize m_primaryFont #Patch Set 3 : primaryFont retains ref count #Patch Set 4 : Reduced to minimum changes #Patch Set 5 : no_sanitize_memory #Patch Set 6 : PS3 + Rebase #Patch Set 7 : Rebase (resolved conflicts) #
Dependent Patchsets: Messages
Total messages: 22 (14 generated)
|