WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
219947
Make FontCascade::CodePath an enum class
https://bugs.webkit.org/show_bug.cgi?id=219947
Summary
Make FontCascade::CodePath an enum class
Rob Buis
Reported
2020-12-16 06:46:51 PST
Make FontCascade::CodePath an enum class.
Attachments
Patch
(27.02 KB, patch)
2020-12-16 06:51 PST
,
Rob Buis
ews-feeder
: commit-queue-
Details
Formatted Diff
Diff
Patch
(29.39 KB, patch)
2020-12-16 07:22 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(28.59 KB, patch)
2020-12-16 14:37 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(28.61 KB, patch)
2020-12-16 23:28 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(28.62 KB, patch)
2020-12-17 00:25 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Patch
(1.25 KB, patch)
2020-12-17 09:35 PST
,
Rob Buis
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Rob Buis
Comment 1
2020-12-16 06:51:49 PST
Created
attachment 416336
[details]
Patch
Rob Buis
Comment 2
2020-12-16 07:22:31 PST
Created
attachment 416338
[details]
Patch
Alex Christensen
Comment 3
2020-12-16 12:21:56 PST
Comment on
attachment 416338
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416338&action=review
> Source/WebKit/ChangeLog:11 > +2020-12-16 Rob Buis <
rbuis@igalia.com
>
Double change log entry.
> Source/WebCore/platform/graphics/FontCascade.h:-192 > - enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow };
This should probably remain a nested enum. FontCascade::CodePath::Auto
Rob Buis
Comment 4
2020-12-16 14:37:02 PST
Created
attachment 416363
[details]
Patch
Rob Buis
Comment 5
2020-12-16 14:38:17 PST
Comment on
attachment 416338
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416338&action=review
>> Source/WebKit/ChangeLog:11 >> +2020-12-16 Rob Buis <
rbuis@igalia.com
> > > Double change log entry.
Oops! Fixed.
>> Source/WebCore/platform/graphics/FontCascade.h:-192 >> - enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow }; > > This should probably remain a nested enum. > FontCascade::CodePath::Auto
A with verbose, but ok...
Alex Christensen
Comment 6
2020-12-16 16:41:42 PST
Looks like you missed one in Source\WebCore\platform\win\WebCoreTextRenderer.cpp
Rob Buis
Comment 7
2020-12-16 23:28:14 PST
Created
attachment 416398
[details]
Patch
Rob Buis
Comment 8
2020-12-17 00:25:45 PST
Created
attachment 416400
[details]
Patch
EWS
Comment 9
2020-12-17 03:19:10 PST
Committed
r270932
: <
https://trac.webkit.org/changeset/270932
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 416400
[details]
.
Radar WebKit Bug Importer
Comment 10
2020-12-17 03:20:20 PST
<
rdar://problem/72420593
>
Darin Adler
Comment 11
2020-12-17 09:17:17 PST
Comment on
attachment 416400
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416400&action=review
> Source/WebCore/platform/graphics/FontCascade.h:-41 > -// "X11/X.h" defines Complex to 0 and conflicts > -// with Complex value in CodePath enum. > -#ifdef Complex > -#undef Complex > -#endif
This change seems unrelated to the rest. If there is a macro named Complex, then it’s just as much a problem with the enum class as it as with the enum.
Rob Buis
Comment 12
2020-12-17 09:35:49 PST
Reopening to attach new patch.
Rob Buis
Comment 13
2020-12-17 09:35:53 PST
Created
attachment 416430
[details]
Patch
Rob Buis
Comment 14
2020-12-17 09:40:03 PST
Comment on
attachment 416400
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=416400&action=review
>> Source/WebCore/platform/graphics/FontCascade.h:-41 >> -#endif > > This change seems unrelated to the rest. If there is a macro named Complex, then it’s just as much a problem with the enum class as it as with the enum.
The change was intentional on my part but wrong :( I prepared the partial revert patch, I am wondering if there is a rename possible for Complex, but I bet others have considered that in the past already, and I guess we need to keep it that way to match ComplexText in some method names.
Alex Christensen
Comment 15
2020-12-17 09:41:51 PST
If GTK builds successfully without undefining Complex, let's just keep it removed.
Darin Adler
Comment 16
2020-12-17 09:44:54 PST
(In reply to Alex Christensen from
comment #15
)
> If GTK builds successfully without undefining Complex, let's just keep it > removed.
Exactly, but that can be done even if we don’t do anything else.
Rob Buis
Comment 17
2020-12-17 10:03:12 PST
FWIW CodePath::Complex prints as 2 on my Linux Ubuntu setup. I wonder if we include X11 headers in any configuration...
Rob Buis
Comment 18
2021-01-24 07:32:52 PST
Comment on
attachment 416430
[details]
Patch I guess we can do this, if we want to remove such code it should probably be a separate bug with a clear title anyway.
EWS
Comment 19
2021-01-24 13:58:58 PST
Committed
r271784
: <
https://trac.webkit.org/changeset/271784
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 416430
[details]
.
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