haikuwebkit/LayoutTests/platform/win/svg/W3C-SVG-1.1-SE
Myles C. Maxfield 0ced96d06a [Apple Win] Migrate from FontPlatformDataWin.cpp to FontPlatformDataCoreText.cpp
https://bugs.webkit.org/show_bug.cgi?id=216448

Reviewed by Darin Adler.

Source/WebCore:

This is one of the steps toward migrating the Apple Win port off of CGFont and on to
CTFont. This patch removes the #if !PLATFORM(WIN) guard in FontPlatformDataCoreText.cpp
and deletes the old functions it used to be using. It fixes up the Core Text functions to
use ctFont() instead of font(), because font() returns the HFONT on Windows.

It also adds a new helper, platformOpenTypeTable(), because it looks like
CTFontCopyTable() sometimes fails, so we can use this function to fall back to using the
HFONT and the win32 API instead.

Covered by existing tests.

* platform/graphics/FontPlatformData.cpp:
* platform/graphics/FontPlatformData.h:
(WebCore::FontPlatformData::ctFont const):
(WebCore::FontPlatformData::font const):
* platform/graphics/cocoa/FontPlatformDataCocoa.mm:
(WebCore::FontPlatformData::platformOpenTypeTable const):
* platform/graphics/coretext/FontPlatformDataCoreText.cpp:
(WebCore::FontPlatformData::FontPlatformData):
(WebCore::FontPlatformData::registeredFont const):
(WebCore::FontPlatformData::ctFont const):
(WebCore::FontPlatformData::openTypeTable const):
(WebCore::FontPlatformData::description const):
(WebCore::FontPlatformData::familyName const):
* platform/graphics/win/FontCustomPlatformData.cpp:
(WebCore::FontCustomPlatformData::~FontCustomPlatformData):
(WebCore::FontCustomPlatformData::fontPlatformData):
(WebCore::createFontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformData.h:
(WebCore::FontCustomPlatformData::FontCustomPlatformData):
* platform/graphics/win/FontCustomPlatformDataCairo.cpp:
(WebCore::FontCustomPlatformData::~FontCustomPlatformData):
(WebCore::FontCustomPlatformData::fontPlatformData):
* platform/graphics/win/FontPlatformDataCGWin.cpp:
(WebCore::FontPlatformData::FontPlatformData):
* platform/graphics/win/FontPlatformDataCairoWin.cpp:
(WebCore::FontPlatformData::openTypeTable const):
* platform/graphics/win/FontPlatformDataWin.cpp:
(WebCore::FontPlatformData::platformOpenTypeTable const):
(WebCore::FontPlatformData::openTypeTable const): Deleted.
(WebCore::FontPlatformData::description const): Deleted.

Source/WebCore/PAL:

* pal/spi/win/CoreTextSPIWin.h:

LayoutTests:

These two tests are progressions.

* platform/win/mathml/opentype/opentype-stretchy-expected.txt:
* platform/win/svg/W3C-SVG-1.1-SE/coords-units-03-b-expected.txt:

Canonical link: https://commits.webkit.org/229355@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-15 04:19:22 +00:00
..
color-prop-05-t-expected.txt
coords-dom-01-f-expected.txt
coords-dom-02-f-expected.txt
coords-dom-03-f-expected.txt [Win] [SVG -> OTF Converter] Support the SVG -> OTF Font Converter 2016-02-26 00:33:39 +00:00
coords-dom-04-f-expected.txt
coords-units-03-b-expected.txt
filters-felem-01-b-expected.txt
filters-image-03-f-expected.txt
filters-image-05-f-expected.txt
interact-pointer-03-t-expected.txt
linking-uri-01-b-expected.txt
painting-marker-05-f-expected.txt
painting-marker-06-f-expected.txt
painting-marker-07-f-expected.txt
paths-dom-02-f-expected.txt
pservers-grad-17-b-expected.txt
pservers-grad-20-b-expected.txt
pservers-pattern-03-f-expected.txt
pservers-pattern-04-f-expected.txt
struct-dom-11-f-expected.txt Delete LayoutTests/platform/mac-mountainlion directory 2015-02-16 23:01:54 +00:00
struct-use-11-f-expected.txt
struct-use-14-f-expected.txt
styling-css-04-f-expected.txt
styling-pres-02-f-expected.txt
svgdom-over-01-f-expected.txt
text-intro-02-b-expected.png
text-intro-02-b-expected.txt
text-intro-05-t-expected.txt
text-intro-09-b-expected.png
text-intro-09-b-expected.txt
text-tref-03-b-expected.txt
text-tspan-02-b-expected.txt
types-dom-02-f-expected.txt
types-dom-03-b-expected.txt
types-dom-04-b-expected.txt
types-dom-05-b-expected.txt
types-dom-06-f-expected.txt
types-dom-07-f-expected.txt