[chromium] Make WebImage::operator=(CGImageRef) a WEBKIT_API
Created attachment 102152 [details] Patch
Darin: jamesr says this is for you
Comment on attachment 102152 [details] Patch This change is technically fine, but it would be nice to know why you want to make this change. Can you please explain the motivation for making this non-inline? Normally, the WebKit API implements operators inline as calls to exported functions.
The larger motivation is the components build for mac. As mentioned in the changelog, webkit/glue/webcursor_mac.mm ( http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/webkit/glue/webcursor_mac.mm&exact_package=chromium&q=webcursor_ma&type=cs ) calls operator=, so it needs to be exported. assign(CGImageRef) is currently private. If it's preferrable, I can make assign(CGImageRef) public, turn that into WEBKIT_API, keep operator=() inline, and update the call site (after waiting for the roll). Your call :-)
(In reply to comment #4) > The larger motivation is the components build for mac. > > As mentioned in the changelog, webkit/glue/webcursor_mac.mm ( http://codesearch.google.com/codesearch#OAMlx_jo-ck/src/webkit/glue/webcursor_mac.mm&exact_package=chromium&q=webcursor_ma&type=cs ) calls operator=, so it needs to be exported. assign(CGImageRef) is currently private. If it's preferrable, I can make assign(CGImageRef) public, turn that into WEBKIT_API, keep operator=() inline, and update the call site (after waiting for the roll). Oh, I see. Yeah, the convention would be to tag assign(CGImageRef) with WEBKIT_API. We shouldn't need to make it public.
Comment on attachment 102152 [details] Patch As discussed, please tag the assign(CGImageRef) function with WEBKIT_API, and leave the rest as is.
Created attachment 102325 [details] Patch
Comment on attachment 102325 [details] Patch R+ based on Darin's comment.
Comment on attachment 102325 [details] Patch Clearing flags on attachment: 102325 Committed r91970: <http://trac.webkit.org/changeset/91970>
All reviewed patches have been landed. Closing bug.