Summary: | [chromium] Consolidate adjustTextRenderMode copypasta into Skia context | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adrienne Walker <enne> | ||||
Component: | New Bugs | Assignee: | Adrienne Walker <enne> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | danakj, enne, jamesr, senorblanco, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 83609 | ||||||
Attachments: |
|
Description
Adrienne Walker
2012-04-12 18:12:00 PDT
Created attachment 137009 [details]
Patch
Comment on attachment 137009 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137009&action=review Nice work, this makes a lot of sense! > Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp:663 > +void PlatformContextSkia::adjustTextRenderMode(SkPaint* paint) Can we make this an "SkPaint&" ? Comment on attachment 137009 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137009&action=review >> Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp:663 >> +void PlatformContextSkia::adjustTextRenderMode(SkPaint* paint) > > Can we make this an "SkPaint&" ? Although WebKit coding style says use non-const refs for out parameters, it doesn't saying anything about inout params AFAICT. My personal preference is to use pointers, as Enne did here, since it makes it clearer at the call site that the parameter is being modified. Comment on attachment 137009 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=137009&action=review >>> Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp:663 >>> +void PlatformContextSkia::adjustTextRenderMode(SkPaint* paint) >> >> Can we make this an "SkPaint&" ? > > Although WebKit coding style says use non-const refs for out parameters, it doesn't saying anything about inout params AFAICT. My personal preference is to use pointers, as Enne did here, since it makes it clearer at the call site that the parameter is being modified. Oh ok! Good to know. senorblanco, jamesr: ping for review? Comment on attachment 137009 [details] Patch Mmmm http://i698.photobucket.com/albums/vv350/FudgeSociety/copypasta.jpg Comment on attachment 137009 [details] Patch Clearing flags on attachment: 137009 Committed r114607: <http://trac.webkit.org/changeset/114607> All reviewed patches have been landed. Closing bug. |