Place Fontconfig-specific RefPtr specializations in RefPtrFontconfig.h
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Nov 2018 07:09:27 +0000 (07:09 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Nov 2018 07:09:27 +0000 (07:09 +0000)
commitcd2476edd8e12b25cde038e9e694d87cc22b5531
tree14079cfeafe190d734a409c008ce8ded677fc833
parent81eabdf4e8cd28ffe40f94d7010bfa2e0110a4ea
Place Fontconfig-specific RefPtr specializations in RefPtrFontconfig.h
https://bugs.webkit.org/show_bug.cgi?id=191267

Reviewed by Michael Catanzaro.

Move the Fontconfig-specific RefPtr specialization declarations from
RefPtrCairo.h to RefPtrFontconfig.h, with definitions moved to the new
RefPtrFontconfig.cpp implementation file. These specializations are
not tied to Cairo in any way.

* platform/FreeType.cmake:
* platform/graphics/FontPlatformData.h:
* platform/graphics/cairo/RefPtrCairo.cpp:
* platform/graphics/cairo/RefPtrCairo.h:
* platform/graphics/freetype/FontCacheFreeType.cpp:
* platform/graphics/freetype/RefPtrFontconfig.cpp: Added.
(WTF::refIfNotNull):
(WTF::derefIfNotNull):
* platform/graphics/freetype/RefPtrFontconfig.h: Copied from Source/WebCore/platform/graphics/cairo/RefPtrCairo.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237847 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/FreeType.cmake
Source/WebCore/platform/graphics/FontPlatformData.h
Source/WebCore/platform/graphics/cairo/RefPtrCairo.cpp
Source/WebCore/platform/graphics/cairo/RefPtrCairo.h
Source/WebCore/platform/graphics/freetype/FontCacheFreeType.cpp
Source/WebCore/platform/graphics/freetype/RefPtrFontconfig.cpp [new file with mode: 0644]
Source/WebCore/platform/graphics/freetype/RefPtrFontconfig.h [new file with mode: 0644]