Bumping manifests a=b2g-bump
[gecko.git] / dom / base / NameSpaceConstants.h
blobc5dae5601187e8653680ea516ce3f2908986601d
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_NameSpaceConstants_h__
7 #define mozilla_dom_NameSpaceConstants_h__
9 #define kNameSpaceID_Unknown -1
10 // 0 is special at C++, so use a static const int32_t for
11 // kNameSpaceID_None to keep if from being cast to pointers
12 // Note that the XBL cache assumes (and asserts) that it can treat a
13 // single-byte value higher than kNameSpaceID_LastBuiltin specially.
14 static const int32_t kNameSpaceID_None = 0;
15 #define kNameSpaceID_XMLNS 1 // not really a namespace, but it needs to play the game
16 #define kNameSpaceID_XML 2
17 #define kNameSpaceID_XHTML 3
18 #define kNameSpaceID_XLink 4
19 #define kNameSpaceID_XSLT 5
20 #define kNameSpaceID_XBL 6
21 #define kNameSpaceID_MathML 7
22 #define kNameSpaceID_RDF 8
23 #define kNameSpaceID_XUL 9
24 #define kNameSpaceID_SVG 10
25 #define kNameSpaceID_LastBuiltin 10 // last 'built-in' namespace
27 #endif // mozilla_dom_NameSpaceConstants_h__