mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Pass the NativeProperties struct to CreateInterfaceObjects2.
This will simplify adding more kinds of properties, such as static attributes.
This commit is contained in:
parent
886d401ff0
commit
4964d2792e
2 changed files with 11 additions and 23 deletions
|
@ -1933,12 +1933,7 @@ class CGCreateInterfaceObjectsMethod(CGAbstractMethod):
|
|||
call = """return CreateInterfaceObjects2(aCx, aGlobal, aReceiver, parentProto,
|
||||
&PrototypeClass, %s,
|
||||
%s,
|
||||
sNativeProperties.methods,
|
||||
sNativeProperties.attrs,
|
||||
sNativeProperties.consts,
|
||||
sNativeProperties.staticMethods);""" % (
|
||||
constructor,
|
||||
domClass)
|
||||
&sNativeProperties);""" % (constructor, domClass)
|
||||
|
||||
return CGList([
|
||||
CGGeneric(getParentProto),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue