Bug 1285474: stylo: Give a name to the node flags to ease rust binding generation. draft
authorEmilio Cobos Álvarez <ecoal95@gmail.com>
Fri, 08 Jul 2016 00:03:42 -0700
changeset 385362 cf83171999a870aece44906d51e81c76666e4d43
parent 385361 0a63367ae729ff364ed2b740d405ea6970cc463a
child 385363 34ca1d0f9af99d06dfdd8295312b8a72b54d6bb0
push id22484
push userbmo:ealvarez@mozilla.com
push dateFri, 08 Jul 2016 07:10:36 +0000
bugs1285474
milestone50.0a1
Bug 1285474: stylo: Give a name to the node flags to ease rust binding generation. MozReview-Commit-ID: 1VmQPoynx2z
dom/base/nsINode.h
--- a/dom/base/nsINode.h
+++ b/dom/base/nsINode.h
@@ -82,17 +82,17 @@ class Text;
 class TextOrElementOrDocument;
 struct DOMPointInit;
 } // namespace dom
 } // namespace mozilla
 
 #define NODE_FLAG_BIT(n_) \
   (nsWrapperCache::FlagsType(1U) << (WRAPPER_CACHE_FLAGS_BITS_USED + (n_)))
 
-enum {
+enum NodeFlags {
   // This bit will be set if the node has a listener manager.
   NODE_HAS_LISTENERMANAGER =              NODE_FLAG_BIT(0),
 
   // Whether this node has had any properties set on it
   NODE_HAS_PROPERTIES =                   NODE_FLAG_BIT(1),
 
   // Whether this node is the root of an anonymous subtree.  Note that this
   // need not be a native anonymous subtree.  Any anonymous subtree, including