Bug 23861

Summary: Stroke font outlines on chromium linux
Product: WebKit Reporter: Evan Stade <estade>
Component: TextAssignee: Evan Stade <estade>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
patch
eric: review-
try2 eric: review+

Evan Stade
Reported 2009-02-09 18:08:00 PST
Attachments
patch (2.38 KB, patch)
2009-02-09 18:10 PST, Evan Stade
eric: review-
try2 (3.14 KB, patch)
2009-02-13 15:24 PST, Evan Stade
eric: review+
Evan Stade
Comment 1 2009-02-09 18:10:32 PST
Created attachment 27512 [details] patch I'll make an entry on the ChangeLog later. The text of that entry will be as follows: Stroke font outlines on chromium in Linux. TEST=LayoutTests/svg/custom/pointer-events-text.svg
Eric Seidel (no email)
Comment 2 2009-02-13 14:29:30 PST
Comment on attachment 27512 [details] patch Since you can't yet land these yourself, it makes sense to include the ChangeLog in your posted patch. It would help if this could have a bit more context: 98 if (textMode & cTextFill) { 99 // See comment in FontChromiumWin.cpp::paintSkiaText() 100 paint.setLooper(0)->safeUnref(); Some idea as to why we unref there. For more context sure, point them to the original comment, but a small local explanation I think would help. .rbg isn't needed here: paint.setColor(gc->strokeColor().rgb()); It seems the shared code from the fill/stroke path could be abstracted into a small static function, where you pass a color. Something like: setupContentForTextPainting(gc, font, paint, color); Maybe it's not worth it, but I think it would be nice to save the 6 lines from the file. Is Paint creation expensive? Seems we might just want to have a local SkPaint per block instead of using .reset()? r- mostly for the lack of changelog.
Evan Stade
Comment 3 2009-02-13 14:44:53 PST
I actually only count 2 lines from each code path that could go into your proposed helper function. So probably not worth it :( The reuse of |paint| doesn't save any computation. I will change that. Also I will add more commentary, and post the changelog.
Evan Stade
Comment 4 2009-02-13 15:24:45 PST
Created attachment 27670 [details] try2 updated comment, made |paint| local to if blocks, added changelog
Eric Seidel (no email)
Comment 5 2009-02-18 12:09:24 PST
Comment on attachment 27670 [details] try2 LGTM.
Darin Fisher (:fishd, Google)
Comment 6 2009-02-18 14:07:29 PST
Note You need to log in before you can comment on or make changes to this bug.