Chromium Code Reviews
DescriptionRenderTextMac: Fix crash when passed an invalid font.
RenderTextMac currently crashes when rendering text if it is passed a FontList
with a nil native font. This can generally happen if the Font used was created
from a font name.
This CL modifies RenderTextMac to ensure that if an invalid font list is passed,
the default font list (or a font list derived from it) is used instead. Also
added a unit test which fails on master and demonstrates the problem.
BUG=668058, 368192
Review-Url: https://codereview.chromium.org/2734333005
Cr-Commit-Position: refs/heads/master@{#455833}
Committed: https://chromium.googlesource.com/chromium/src/+/d8958dbde3315979308abe86880cba48879f010c
Patch Set 1 #
Total comments: 1
Patch Set 2 : Nits. #
Messages
Total messages: 14 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||