Changed the order of some functions to better match the original draft
authorJMortelliti <jacob.harrowmortelliti@maine.edu>
Thu, 05 May 2016 20:30:13 -0400
changeset 364168 45003f2c4d08f16a6cae37b24dc0a190aa4eb90d
parent 364167 d1d85ea8239d73b4ad374f5615880007b27fc37f
child 366133 1762dcb03280438ddbc48ea32c140a2ef5609a83
push id17374
push userbmo:jacob.harrowmortelliti@maine.edu
push dateFri, 06 May 2016 02:09:22 +0000
milestone48.0a1
Changed the order of some functions to better match the original MozReview-Commit-ID: 67BTNYD7vFV
dom/bindings/parser/WebIDL.py
--- a/dom/bindings/parser/WebIDL.py
+++ b/dom/bindings/parser/WebIDL.py
@@ -2292,19 +2292,16 @@ class IDLMozMapType(IDLParameterizedType
         return isinstance(other, IDLMozMapType) and self.inner == other.inner
 
     def __str__(self):
         return self.inner.__str__() + "MozMap"
 
     def isMozMap(self):
         return True
 
-    def isExposedInAllOf(self, exposureSet):
-        return self.inner.unroll().isExposedInAllOf(exposureSet)
-
     def tag(self):
         return IDLType.Tags.mozmap
 
     def complete(self, scope):
         self.inner = self.inner.complete(scope)
         self.name = self.inner.name + "MozMap"
         return self
 
@@ -2312,16 +2309,19 @@ class IDLMozMapType(IDLParameterizedType
         if other.isPromise():
             return False
         if other.isUnion():
             # Just forward to the union; it'll deal
             return other.isDistinguishableFrom(self)
         return (other.isPrimitive() or other.isString() or other.isEnum() or
                 other.isDate() or other.isNonCallbackInterface() or other.isSequence())
 
+    def isExposedInAllOf(self, exposureSet):
+        return self.inner.unroll().isExposedInAllOf(exposureSet)
+
 
 class IDLUnionType(IDLType):
     def __init__(self, location, memberTypes):
         IDLType.__init__(self, location, "")
         self.memberTypes = memberTypes
         self.hasNullableType = False
         self._dictionaryType = None
         self.flatMemberTypes = None