Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / base / NameSpaceConstants.h
blob600157569559d7adc961ef60af9e2c14e2c1fdfe
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_NameSpaceConstants_h__
8 #define mozilla_dom_NameSpaceConstants_h__
10 #include <stdint.h>
12 #define kNameSpaceID_Unknown -1
13 // 0 is special at C++, so use a static const int32_t for
14 // kNameSpaceID_None to keep if from being cast to pointers
15 // Note that the XBL cache assumes (and asserts) that it can treat a
16 // single-byte value higher than kNameSpaceID_LastBuiltin specially.
17 static const int32_t kNameSpaceID_None = 0;
18 #define kNameSpaceID_XMLNS \
19 1 // not really a namespace, but it needs to play the game
20 #define kNameSpaceID_XML 2
21 #define kNameSpaceID_XHTML 3
22 #define kNameSpaceID_XLink 4
23 #define kNameSpaceID_XSLT 5
24 #define kNameSpaceID_MathML 6
25 #define kNameSpaceID_RDF 7
26 #define kNameSpaceID_XUL 8
27 #define kNameSpaceID_SVG 9
28 #define kNameSpaceID_disabled_MathML 10
29 #define kNameSpaceID_disabled_SVG 11
30 #define kNameSpaceID_LastBuiltin 11 // last 'built-in' namespace
32 #endif // mozilla_dom_NameSpaceConstants_h__