[Webkit-unassigned] [Bug 183155] [FreeType] Color emojis in WebKitGTK+ for great justice
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 28 10:04:38 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=183155
--- Comment #13 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to Michael Catanzaro from comment #12)
> Comment on attachment 334735 [details]
> Updated patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=334735&action=review
>
> I still don't understand why ignoring the scale is correct, but since this
> doesn't break anything, let's do it.
>
> How hard is it to add a test for this? You could just have an HTML page that
> displays a single character and save the expected result as an image, right?
> Then we could at least see that it is colored.
>
> > Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp:132
> > FcResult fontConfigResult;
> > - RefPtr<FcPattern> resultPattern = adoptRef(FcFontMatch(nullptr, pattern.get(), &fontConfigResult));
> > - if (!resultPattern)
> > - return nullptr;
> > - FontPlatformData alternateFontData(resultPattern.get(), description);
> > - return fontForPlatformData(alternateFontData);
> > + if (RefPtr<FcPattern> resultPattern = adoptRef(FcFontMatch(nullptr, pattern.get(), &fontConfigResult))) {
> > + FontPlatformData alternateFontData(resultPattern.get(), description);
> > + return fontForPlatformData(alternateFontData);
> > + }
>
> I don't think this change is unrelated. It used to be live code, and now
> you've turned it into dead code, right? But very subtle dead code that most
> developers would not notice. So I would address bug #183210 in this same
> patch. Up to you, as long as you follow up promptly so that we don't forget
> about this.
Why was it live code? I haven't changed anything here in behavior, it's just a cleanup.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180228/36580097/attachment.html>
More information about the webkit-unassigned
mailing list