WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
191701
[Win] Reduce the use of WKSI library calls: Font Handling
https://bugs.webkit.org/show_bug.cgi?id=191701
Summary
[Win] Reduce the use of WKSI library calls: Font Handling
Brent Fulgham
Reported
2018-11-15 12:25:23 PST
Move some ancient font handling code out of WKSI and into Open Source as a first step in moving away from the GDI font implementation.
Attachments
Patch
(22.70 KB, patch)
2018-11-15 13:02 PST
,
Brent Fulgham
mmaxfield
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2018-11-15 12:53:16 PST
<
rdar://problem/46104809
>
Brent Fulgham
Comment 2
2018-11-15 12:57:11 PST
This is step one in a migration away from WKSI in general, and for CG Font handling. Future patches will convert to new font handling routines.
Brent Fulgham
Comment 3
2018-11-15 13:02:36 PST
Created
attachment 354976
[details]
Patch
Myles C. Maxfield
Comment 4
2018-11-15 13:14:15 PST
Comment on
attachment 354976
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=354976&action=review
r=me assuming the big green block is just copied/pasted from WKSI
> Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp:1141 > + flush();
This seems unrelated...
> Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp:1164 > + flush();
Ditto.
> Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp:1194 > + flush();
Ditto.
> Source/WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp:151 > - wkGetGlyphAdvances(font, m, m_platformData.isSystemFont(), isPrinterFont, glyph, advance); > + FontCascade::getGlyphAdvances(font, m, m_platformData.isSystemFont(), isPrinterFont, glyph, advance);
We have similarly named functions; I'd prefer putting the word "platform" inside the name of this function somewhere.
Brent Fulgham
Comment 5
2018-11-15 13:55:26 PST
Comment on
attachment 354976
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=354976&action=review
>> Source/WebCore/platform/graphics/win/GraphicsContextDirect2D.cpp:1141 >> + flush(); > > This seems unrelated...
Oh, yeah. I was fixing some canvas tests. I'll back that part of the patch out.
>> Source/WebCore/platform/graphics/win/SimpleFontDataCGWin.cpp:151 >> + FontCascade::getGlyphAdvances(font, m, m_platformData.isSystemFont(), isPrinterFont, glyph, advance); > > We have similarly named functions; I'd prefer putting the word "platform" inside the name of this function somewhere.
I'll change it to FontCascade::getPlatformGlyphAdvances(...)
Brent Fulgham
Comment 6
2018-11-15 14:38:40 PST
Committed
r238253
: <
https://trac.webkit.org/changeset/238253
>
Brent Fulgham
Comment 7
2018-11-15 15:20:47 PST
Build fix:
https://trac.webkit.org/changeset/238256/webkit
Brent Fulgham
Comment 8
2018-11-15 19:10:26 PST
Follow-up build fix:
https://trac.webkit.org/changeset/238265/webkit
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug