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
137174
Automatically generate template specializations for most Elements
https://bugs.webkit.org/show_bug.cgi?id=137174
Summary
Automatically generate template specializations for most Elements
Chris Dumez
Reported
2014-09-27 00:43:19 PDT
Currently, the template specializations to make is<>() / downcast<>() work for HTML/SVG/MathML elements are only generated if "generateTypeHelpers" parameter is explicitly specified for the corresponding tag name in the *Tags.in file. We are however able to generate the template specializations for most types so I would propose we generate those helpers by default. One case we cannot generate the specialization is when a class is associated to several tag names but the make_names.pl script could easily detect this and skip those classes.
Attachments
WIP Patch
(13.39 KB, patch)
2014-09-27 00:50 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(33.62 KB, patch)
2014-09-27 10:59 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(86.68 KB, patch)
2014-09-28 18:17 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-09-27 00:50:04 PDT
Created
attachment 238768
[details]
WIP Patch
Chris Dumez
Comment 2
2014-09-27 10:59:14 PDT
Created
attachment 238781
[details]
Patch
WebKit Commit Bot
Comment 3
2014-09-27 11:00:56 PDT
Attachment 238781
[details]
did not pass style-queue: ERROR: Source/WebCore/svg/SVGAnimateElement.h:82: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 14 files If any of these errors are false positives, please file a bug against check-webkit-style.
Darin Adler
Comment 4
2014-09-28 17:27:44 PDT
Comment on
attachment 238781
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=238781&action=review
Looks great.
> Source/WebCore/svg/SVGAnimateElement.h:35 > +class SVGAnimateElementBase : public SVGAnimationElement {
I think we should consider moving SVGAnimateElementBase to its own separate source file.
Chris Dumez
Comment 5
2014-09-28 18:17:18 PDT
Created
attachment 238833
[details]
Patch
WebKit Commit Bot
Comment 6
2014-09-28 18:18:36 PDT
Attachment 238833
[details]
did not pass style-queue: ERROR: Source/WebCore/svg/SVGAnimateElementBase.h:81: Code inside a namespace should not be indented. [whitespace/indent] [4] Total errors found: 1 in 34 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 7
2014-09-28 19:13:47 PDT
Comment on
attachment 238833
[details]
Patch Clearing flags on attachment: 238833 Committed
r174050
: <
http://trac.webkit.org/changeset/174050
>
WebKit Commit Bot
Comment 8
2014-09-28 19:13:56 PDT
All reviewed patches have been landed. Closing bug.
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