Index: lib/dom/scripts/idlnode.py |
diff --git a/lib/dom/scripts/idlnode.py b/lib/dom/scripts/idlnode.py |
index cc4108ca73fcc9a17e9b908a5eb49b16ce9d0bcf..83a97d293d0e8f7ec16b632edf62553ca5e71c46 100755 |
--- a/lib/dom/scripts/idlnode.py |
+++ b/lib/dom/scripts/idlnode.py |
@@ -459,9 +459,7 @@ class IDLArgument(IDLNode): |
IDLNode.__init__(self, ast) |
self.type = self._convert_first(ast, 'Type', IDLType) |
self._convert_ext_attrs(ast) |
- # WebKit and Web IDL differ in how Optional is declared: |
- self.is_optional = self._has(ast, 'Optional') \ |
- or ('Optional' in self.ext_attrs) |
+ self.is_optional = 'Optional' in self.ext_attrs |
def __repr__(self): |
return '<IDLArgument(type = %s, id = %s)>' % (self.type, self.id) |