Bug 1772234 - Update the style guide to deprecate rooting API typedefs. r=tcampbell

Differential Revision: https://phabricator.services.mozilla.com/D148081
This commit is contained in:
Bobby Holley
2022-06-02 21:01:42 +00:00
parent 85f535b9d6
commit 98e3028bb3

View File

@@ -1143,3 +1143,9 @@ been replaced with ``mozilla::Abs`` calls, in `bug
code in ``Firefox/core/toolkit`` needs to ``#include "nsAlgorithm.h"`` and
use the ``NS_foo`` variants instead of ``PR_foo``, or
``#include "mozilla/MathAlgorithms.h"`` for ``mozilla::Abs``.
Use of SpiderMonkey rooting typedefs
------------------------------------
The rooting typedefs in ``js/public/TypeDecls.h``, such as ``HandleObject`` and
``RootedObject``, are deprecated both in and outside of SpiderMonkey. They will
eventually be removed and should not be used in new code.