Bug 137103 - Use is<HTML*Element>() instead of isHTML*Element() - Part 2
Summary: Use is<HTML*Element>() instead of isHTML*Element() - Part 2
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on: 137015
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-24 20:31 PDT by Chris Dumez
Modified: 2014-09-25 16:37 PDT (History)
6 users (show)

See Also:


Attachments
Patch (120.14 KB, patch)
2014-09-24 21:46 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (119.97 KB, patch)
2014-09-25 10:29 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (119.97 KB, patch)
2014-09-25 10:30 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (126.32 KB, patch)
2014-09-25 15:17 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (127.08 KB, patch)
2014-09-25 15:36 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2014-09-24 20:31:41 PDT
Use is<HTML*Element>() instead of isHTML*Element() and drop support for the generated isHTML*Element() macros.
Comment 1 Chris Dumez 2014-09-24 21:46:51 PDT
Created attachment 238640 [details]
Patch
Comment 2 Csaba Osztrogonác 2014-09-25 04:00:15 PDT
Comment on attachment 238640 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=238640&action=review

> Source/WebCore/css/CSSStyleSheet.cpp:39
> +#include "SVGStyleElement.H"

SVGStyleElement.H -> SVGStyleElement.h
Comment 3 Chris Dumez 2014-09-25 10:29:30 PDT
Created attachment 238662 [details]
Patch
Comment 4 Chris Dumez 2014-09-25 10:30:57 PDT
Created attachment 238663 [details]
Patch
Comment 5 Chris Dumez 2014-09-25 13:50:22 PDT
(In reply to comment #2)
> (From update of attachment 238640 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=238640&action=review
> 
> > Source/WebCore/css/CSSStyleSheet.cpp:39
> > +#include "SVGStyleElement.H"
> 
> SVGStyleElement.H -> SVGStyleElement.h

Thanks, fixed.
Comment 6 Benjamin Poulain 2014-09-25 15:02:41 PDT
Comment on attachment 238663 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=238663&action=review

> Source/WebCore/css/CSSDefaultStyleSheets.cpp:65
>  static inline bool elementCanUseSimpleDefaultStyle(Element* e)

The argument should be a reference.

"e" should be element.

> Source/WebCore/html/HTMLNameCollection.cpp:54
> +    return is<HTMLImageElement>(element) || is<HTMLFormElement>(element) || element.hasTagName(appletTag)

I guess element.hasTagName(appletTag) is one of the special case?
Comment 7 Chris Dumez 2014-09-25 15:04:34 PDT
Comment on attachment 238663 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=238663&action=review

>> Source/WebCore/html/HTMLNameCollection.cpp:54
>> +    return is<HTMLImageElement>(element) || is<HTMLFormElement>(element) || element.hasTagName(appletTag)
> 
> I guess element.hasTagName(appletTag) is one of the special case?

No, I missed it :)
Comment 8 Chris Dumez 2014-09-25 15:17:59 PDT
Created attachment 238677 [details]
Patch
Comment 9 Chris Dumez 2014-09-25 15:36:54 PDT
Created attachment 238678 [details]
Patch
Comment 10 WebKit Commit Bot 2014-09-25 16:37:18 PDT
Comment on attachment 238678 [details]
Patch

Clearing flags on attachment: 238678

Committed r173980: <http://trac.webkit.org/changeset/173980>
Comment 11 WebKit Commit Bot 2014-09-25 16:37:24 PDT
All reviewed patches have been landed.  Closing bug.