Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Use auto-generated operators in FontPlatformData
https://bugs.webkit.org/show_bug.cgi?id=157037 Reviewed by Geoffrey Garen. The only reason why they weren't used before is because Cairo was using a raw pointer. However, RefPtr supports Cairo types, so this patch migrates that pointer to a RefPtr. Therefore, we can remove our custom operators (because they work the same way as auto- generated ones do). No new tests because there is no behavior change. * platform/graphics/FontPlatformData.cpp: (WebCore::FontPlatformData::FontPlatformData): Deleted. (WebCore::FontPlatformData::operator=): Deleted. * platform/graphics/FontPlatformData.h: (WebCore::FontPlatformData::scaledFont): (WebCore::FontPlatformData::hash): * platform/graphics/cocoa/FontPlatformDataCocoa.mm: (WebCore::FontPlatformData::~FontPlatformData): Deleted. (WebCore::FontPlatformData::platformDataInit): Deleted. (WebCore::FontPlatformData::platformDataAssign): Deleted. * platform/graphics/win/FontPlatformDataCGWin.cpp: (WebCore::FontPlatformData::~FontPlatformData): Deleted. (WebCore::FontPlatformData::platformDataInit): Deleted. (WebCore::FontPlatformData::platformDataAssign): Deleted. * platform/graphics/win/FontPlatformDataCairoWin.cpp: (WebCore::FontPlatformData::platformDataInit): (WebCore::FontPlatformData::FontPlatformData): (WebCore::FontPlatformData::~FontPlatformData): Deleted. (WebCore::FontPlatformData::platformDataAssign): Deleted. * platform/graphics/win/FontPlatformDataWin.cpp: (WebCore::FontPlatformData::FontPlatformData): Deleted. Canonical link: https://commits.webkit.org/175159@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
56 additions
and 135 deletions.
- +37 −0 Source/WebCore/ChangeLog
- +0 −28 Source/WebCore/platform/graphics/FontPlatformData.cpp
- +7 −9 Source/WebCore/platform/graphics/FontPlatformData.h
- +0 −31 Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm
- +0 −20 Source/WebCore/platform/graphics/win/FontPlatformDataCGWin.cpp
- +12 −42 Source/WebCore/platform/graphics/win/FontPlatformDataCairoWin.cpp
- +0 −5 Source/WebCore/platform/graphics/win/FontPlatformDataWin.cpp
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -54,37 +54,6 @@ | ||
#endif | ||
} | ||
|
||
bool FontPlatformData::platformIsEqual(const FontPlatformData& other) const | ||
{ | ||
bool result = false; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters