mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Do not generate RegisterBindings::Register anymore
This commit is contained in:
parent
1559f5a39f
commit
2ed1a4ab3b
1 changed files with 0 additions and 20 deletions
|
@ -5285,23 +5285,6 @@ class CGDictionary(CGThing):
|
||||||
return deps
|
return deps
|
||||||
|
|
||||||
|
|
||||||
class CGRegisterProtos(CGAbstractMethod):
|
|
||||||
def __init__(self, config):
|
|
||||||
arguments = [
|
|
||||||
Argument('*mut JSContext', 'cx'),
|
|
||||||
Argument('HandleObject', 'global'),
|
|
||||||
]
|
|
||||||
CGAbstractMethod.__init__(self, None, 'Register', 'void', arguments,
|
|
||||||
unsafe=False, pub=True)
|
|
||||||
self.config = config
|
|
||||||
|
|
||||||
def definition_body(self):
|
|
||||||
return CGList([
|
|
||||||
CGGeneric("codegen::Bindings::%sBinding::DefineDOMInterface(cx, global);" % desc.name)
|
|
||||||
for desc in self.config.getDescriptors(hasInterfaceObject=True, register=True)
|
|
||||||
], "\n")
|
|
||||||
|
|
||||||
|
|
||||||
class CGRegisterProxyHandlersMethod(CGAbstractMethod):
|
class CGRegisterProxyHandlersMethod(CGAbstractMethod):
|
||||||
def __init__(self, descriptors):
|
def __init__(self, descriptors):
|
||||||
docs = "Create the global vtables used by the generated DOM bindings to implement JS proxies."
|
docs = "Create the global vtables used by the generated DOM bindings to implement JS proxies."
|
||||||
|
@ -6155,15 +6138,12 @@ class GlobalGenRoots():
|
||||||
def RegisterBindings(config):
|
def RegisterBindings(config):
|
||||||
# TODO - Generate the methods we want
|
# TODO - Generate the methods we want
|
||||||
code = CGList([
|
code = CGList([
|
||||||
CGRegisterProtos(config),
|
|
||||||
CGRegisterProxyHandlers(config),
|
CGRegisterProxyHandlers(config),
|
||||||
], "\n")
|
], "\n")
|
||||||
|
|
||||||
return CGImports(code, [], [], [
|
return CGImports(code, [], [], [
|
||||||
'dom::bindings::codegen',
|
'dom::bindings::codegen',
|
||||||
'dom::bindings::codegen::PrototypeList::Proxies',
|
'dom::bindings::codegen::PrototypeList::Proxies',
|
||||||
'js::jsapi::JSContext',
|
|
||||||
'js::jsapi::HandleObject',
|
|
||||||
'libc',
|
'libc',
|
||||||
], ignored_warnings=[])
|
], ignored_warnings=[])
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue