RESOLVED FIXED 137333
Have is<>(T*) function do a null check on the pointer argument
https://bugs.webkit.org/show_bug.cgi?id=137333
Summary Have is<>(T*) function do a null check on the pointer argument
Chris Dumez
Reported 2014-10-01 22:18:15 PDT
Have is<>(T*) function do a null check on the argument instead of a simple assertion. This makes sense for 2 reasons: 1. It is more consistent with downcast<>(T*), which will succeed even if the argument is a nullptr 2. It simplifies the code a bit as it gets rid of a lot of explicit null checks
Attachments
Patch (479.99 KB, patch)
2014-10-01 22:39 PDT, Chris Dumez
no flags
Patch (479.99 KB, patch)
2014-10-01 22:59 PDT, Chris Dumez
no flags
Patch (479.92 KB, patch)
2014-10-02 12:38 PDT, Chris Dumez
no flags
Chris Dumez
Comment 1 2014-10-01 22:39:19 PDT
WebKit Commit Bot
Comment 2 2014-10-01 22:42:18 PDT
Attachment 239084 [details] did not pass style-queue: ERROR: Source/WebCore/editing/CompositeEditCommand.cpp:1354: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/dom/Position.cpp:953: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 247 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 3 2014-10-01 22:59:34 PDT
WebKit Commit Bot
Comment 4 2014-10-01 23:02:30 PDT
Attachment 239086 [details] did not pass style-queue: ERROR: Source/WebCore/editing/CompositeEditCommand.cpp:1354: Multi line control clauses should use braces. [whitespace/braces] [4] ERROR: Source/WebCore/dom/Position.cpp:953: Multi line control clauses should use braces. [whitespace/braces] [4] Total errors found: 2 in 247 files If any of these errors are false positives, please file a bug against check-webkit-style.
Chris Dumez
Comment 5 2014-10-02 12:38:39 PDT
Chris Dumez
Comment 6 2014-10-02 12:41:18 PDT
Note You need to log in before you can comment on or make changes to this bug.