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
Created attachment 239084 [details] Patch
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.
Created attachment 239086 [details] Patch
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.
Created attachment 239129 [details] Patch
Committed r174225: <http://trac.webkit.org/changeset/174225>