Nathan Froyd
404078d785
Bug 1295192 - part 1 - remove CPP_THROW_NEW on layout struct operator new overloads that forward to nsPresShell::AllocateByObjectID; r=dholbert
...
Structs in our style system use an arena-style allocation system,
managed by the presshell to which they belong. All of the relevant
overloads that forward allocation requests to the presshell declare
themselves as CPP_THROW_NEW, which indicates that they do not throw
exceptions. The C++ specification states that operator new overloads
that declare themselves to not throw exceptions require a null check on
their return value. However, the relevant presshell allocation method,
AllocateByObjectID, is infallible and will never return a null pointer.
The callers of all of these methods are therefore doing useless
(compiler-generated) null checks. Let's get rid of those useless checks
by removing the CPP_THROW_NEW annotations. This change declares these
methods will return non-null pointers and throw exceptions in case of
errors--but as we don't use exceptions, and AllocateByObjectID will
abort on OOM, everything works out OK.
2016-08-17 15:28:45 -04:00
..
2016-07-04 09:01:56 -07:00
2016-08-07 15:26:35 -07:00
2016-08-12 15:28:45 +08:00
2016-08-12 15:28:45 +08:00
2016-04-13 13:34:14 +08:00
2016-07-08 14:39:53 -07:00
2016-04-21 18:58:59 +01:00
2016-07-08 08:08:00 +02:00
2016-07-14 10:16:42 -06:00
2016-08-14 23:43:21 -07:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-05-27 16:06:27 +08:00
2016-08-12 15:28:45 +08:00
2016-08-01 15:54:25 +05:30
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-26 17:10:52 +08:00
2016-07-21 18:36:39 +08:00
2016-07-26 16:48:30 +02:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-12 18:39:45 -07:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-12 05:43:06 +05:30
2016-07-21 18:36:39 +08:00
2016-08-09 17:32:54 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-14 23:44:00 -07:00
2016-08-10 12:59:15 +02:00
2016-06-16 13:14:50 +01:00
2016-08-17 15:28:45 -04:00
2016-08-17 15:28:45 -04:00
2016-06-11 11:12:26 +09:00
2016-07-26 17:10:52 +08:00
2016-07-21 18:36:39 +08:00
2016-03-11 17:39:26 +01:00
2016-04-17 17:09:32 -07:00
2016-08-12 15:28:45 +08:00
2016-08-16 14:33:43 -07:00
2016-08-04 23:51:58 -04:00
2016-07-26 10:03:26 -07:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-06-16 13:14:08 +01:00
2016-08-16 18:37:48 -07:00
2016-08-12 18:39:45 -07:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-03-31 11:58:25 +01:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-13 16:05:53 -04:00
2016-03-10 10:14:37 -05:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-17 15:28:45 -04:00
2016-08-17 15:28:45 -04:00
2016-07-26 17:10:52 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:38 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-10 16:21:01 -04:00
2016-08-08 10:54:50 +10:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-04-18 14:04:03 +08:00
2016-04-18 14:04:03 +08:00
2016-04-18 14:06:23 +08:00
2016-04-18 14:06:23 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-09 11:42:33 +09:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-08-11 15:49:39 -04:00
2016-07-21 18:36:39 +08:00
2016-08-16 18:37:48 -07:00
2016-07-22 14:56:09 +01:00
2016-08-03 10:53:37 -07:00
2016-08-11 09:08:22 +01:00
2016-07-08 08:08:00 +02:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:39 +08:00
2016-07-26 16:33:52 +08:00
2016-07-21 18:36:39 +08:00
2016-07-21 18:36:38 +08:00
2016-07-21 18:36:38 +08:00
2016-03-28 13:34:26 +01:00
2016-08-02 11:05:38 -07:00
2016-03-18 21:15:45 -04:00
2016-03-28 18:36:02 -04:00
2016-06-17 16:16:10 +09:00
2016-07-12 12:36:31 -04:00
2016-08-16 18:37:48 -07:00
2016-06-07 21:10:18 +01:00
2016-04-21 01:22:10 -07:00
2016-05-27 09:57:38 -07:00
2016-08-09 17:32:54 +08:00