Summary: | There are unnecessary condition check on FontGlyphs.cpp | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | byeongha.cho | ||||
Component: | Text | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED INVALID | ||||||
Severity: | Minor | CC: | commit-queue, mmaxfield | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
byeongha.cho
2014-07-25 02:13:13 PDT
Created attachment 235507 [details]
Patch
Comment on attachment 235507 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235507&action=review > Source/WebCore/platform/graphics/FontGlyphs.cpp:389 > characterFontData = characterFontData->variantFontData(description, variant); This function might return nullptr. I'm not a reviewer but I would r- this. Yes, I agree that variantFontData() could rarely return nullptr. So I close this issue. Thank you for reviewing. Comment on attachment 235507 [details]
Patch
As Myles says, this patch is only correct if variantFontData never returns null.
Did you prove that variantFontData will never return null?
|