Bug 121087 - toFooElement() should use static_cast, not reinterpret_cast.
Summary: toFooElement() should use static_cast, not reinterpret_cast.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks: 121080
  Show dependency treegraph
 
Reported: 2013-09-10 01:39 PDT by Andreas Kling
Modified: 2019-02-06 09:02 PST (History)
12 users (show)

See Also:


Attachments
Patch (36.26 KB, patch)
2013-09-10 01:43 PDT, Andreas Kling
koivisto: review+
webkit-ews: commit-queue-
Details | Formatted Diff | Diff
Patch (37.58 KB, patch)
2013-09-10 02:02 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2013-09-10 01:39:19 PDT
Have patch.
Comment 1 Andreas Kling 2013-09-10 01:43:14 PDT
Created attachment 211184 [details]
Patch

Didn't actually try to build this yet. Let's see how it goes..
Comment 2 Antti Koivisto 2013-09-10 01:50:25 PDT
Comment on attachment 211184 [details]
Patch

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

> Source/WebCore/ChangeLog:19
> +            - void toFooElement(constNode*)

missing space

> Source/WebCore/dom/Node.h:786
> +void to##NodeSubclassName(const NodeSubclassName*); \
> +void to##NodeSubclassName(const NodeSubclassName&);
> +

Anders suggested to use WTF_DELETE_FUNCTION. Does that not work?
Comment 3 Early Warning System Bot 2013-09-10 01:52:17 PDT
Comment on attachment 211184 [details]
Patch

Attachment 211184 [details] did not pass qt-ews (qt):
Output: http://webkit-queues.appspot.com/results/1764025
Comment 4 Early Warning System Bot 2013-09-10 01:54:58 PDT
Comment on attachment 211184 [details]
Patch

Attachment 211184 [details] did not pass qt-wk2-ews (qt-wk2):
Output: http://webkit-queues.appspot.com/results/1764027
Comment 5 Andreas Kling 2013-09-10 02:02:26 PDT
Created attachment 211186 [details]
Patch
Comment 6 Antti Koivisto 2013-09-10 02:08:09 PDT
Comment on attachment 211184 [details]
Patch

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

> Source/WebCore/html/HTMLAnchorElement.h:158
> +NODE_TYPE_CASTS(HTMLAnchorElement)

Since this only applies to Elements ELEMENT_TYPE_CASTS might be a better name.
Comment 7 Andreas Kling 2013-09-10 02:09:19 PDT
(In reply to comment #2)
> (From update of attachment 211184 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=211184&action=review
> > Source/WebCore/dom/Node.h:786
> > +void to##NodeSubclassName(const NodeSubclassName*); \
> > +void to##NodeSubclassName(const NodeSubclassName&);
> > +
> 
> Anders suggested to use WTF_DELETE_FUNCTION. Does that not work?

Apparently not. It just says "no previous definition for toHurrElement()"
Comment 8 Build Bot 2013-09-10 02:20:45 PDT
Comment on attachment 211184 [details]
Patch

Attachment 211184 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/1734563
Comment 9 WebKit Commit Bot 2013-09-10 02:40:06 PDT
Comment on attachment 211186 [details]
Patch

Clearing flags on attachment: 211186

Committed r155429: <http://trac.webkit.org/changeset/155429>
Comment 10 Build Bot 2013-09-10 02:40:08 PDT
Comment on attachment 211184 [details]
Patch

Attachment 211184 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/1735493
Comment 11 EFL EWS Bot 2013-09-10 02:50:46 PDT
Comment on attachment 211184 [details]
Patch

Attachment 211184 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/1763048
Comment 12 Lucas Forschler 2019-02-06 09:02:52 PST
Mass moving XML DOM bugs to the "DOM" Component.