WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
137015
Add support for is<HTML*Element>() for type checking
https://bugs.webkit.org/show_bug.cgi?id=137015
Summary
Add support for is<HTML*Element>() for type checking
Chris Dumez
Reported
2014-09-22 16:37:16 PDT
Add support for is<HTML*Element>() for casting, while supporting the legacy toHTML*Element() form until the code base is fully ported to the new type checking helper.
Attachments
Patch
(15.59 KB, patch)
2014-09-22 17:39 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(17.41 KB, patch)
2014-09-22 18:17 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.22 KB, patch)
2014-09-22 18:21 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.24 KB, patch)
2014-09-22 20:26 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(18.25 KB, patch)
2014-09-23 19:48 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2014-09-22 17:39:14 PDT
Created
attachment 238507
[details]
Patch
Chris Dumez
Comment 2
2014-09-22 18:17:30 PDT
Created
attachment 238509
[details]
Patch
Chris Dumez
Comment 3
2014-09-22 18:21:07 PDT
Created
attachment 238510
[details]
Patch
Chris Dumez
Comment 4
2014-09-22 20:26:28 PDT
Created
attachment 238513
[details]
Patch
Benjamin Poulain
Comment 5
2014-09-23 18:56:41 PDT
Comment on
attachment 238513
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=238513&action=review
rs=me
> Source/WebCore/dom/Element.h:679 > +// Type checking function for Elements, to use before casting > +// with downcast<>().
This should be on a one line.
> Source/WebCore/dom/make_names.pl:647 > + static bool checkTagName(const HTMLElement& element) { return !element.isHTMLUnknownElement() && element.hasTagName($parameters{namespace}Names::${name}Tag); }
It's really a shame we need isHTMLUnknownElement(). It'd be nice if you find a way to remove it.
Chris Dumez
Comment 6
2014-09-23 19:48:50 PDT
Created
attachment 238580
[details]
Patch
WebKit Commit Bot
Comment 7
2014-09-23 20:31:55 PDT
Comment on
attachment 238580
[details]
Patch Clearing flags on attachment: 238580 Committed
r173907
: <
http://trac.webkit.org/changeset/173907
>
WebKit Commit Bot
Comment 8
2014-09-23 20:32:01 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