Summary: | Add support for is<HTML*Element>() for type checking | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||||||||
Component: | DOM | Assignee: | Chris Dumez <cdumez> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue, darin, esprehn+autocc, kangil.han, kling, koivisto, rniwa | ||||||||||||
Priority: | P2 | ||||||||||||||
Version: | 528+ (Nightly build) | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
Bug Depends on: | 136839 | ||||||||||||||
Bug Blocks: | 137058, 137068, 137103 | ||||||||||||||
Attachments: |
|
Description
Chris Dumez
2014-09-22 16:37:16 PDT
Created attachment 238507 [details]
Patch
Created attachment 238509 [details]
Patch
Created attachment 238510 [details]
Patch
Created attachment 238513 [details]
Patch
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. Created attachment 238580 [details]
Patch
Comment on attachment 238580 [details] Patch Clearing flags on attachment: 238580 Committed r173907: <http://trac.webkit.org/changeset/173907> All reviewed patches have been landed. Closing bug. |