The use of GOwnPtr was introduced on platform/graphics/cairo/FontCacheCairo.cpp in order to keep references for Fc* functions. But this implies on a dependency on glib headers, since the forwarded declarations are now specific to Gtk. Maybe the GOwnPtrCairo could be based on OwnPtr instead of GOwnPtr. What do you think about this? I'm attaching a patch that implements this, but I didn't add the name change and fixed all the builds yet. Please tell me what you think about this, then I'll finish it.
Created attachment 66251 [details] Patch
I approve of this change.
Created attachment 66260 [details] Patch
A related comment about RefPtr: https://bugs.webkit.org/show_bug.cgi?id=44354#c17 In my opinion, we should use OwnPtr specializations for everything that isn't a void*. For things that are void*, we should find some other solution.
Comment on attachment 66260 [details] Patch I think this is the right direction to go in.
Comment on attachment 66260 [details] Patch Clearing flags on attachment: 66260 Committed r66700: <http://trac.webkit.org/changeset/66700>
All reviewed patches have been landed. Closing bug.
*** Bug 45089 has been marked as a duplicate of this bug. ***