mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Merge master into this branch
This commit is contained in:
commit
1e9fec9172
163 changed files with 4714 additions and 3380 deletions
|
@ -96,7 +96,6 @@ DOMInterfaces = {
|
|||
|
||||
'Blob': [
|
||||
{
|
||||
'headerFile': 'nsIDOMFile.h',
|
||||
},
|
||||
#{
|
||||
# 'workers': True,
|
||||
|
@ -121,19 +120,14 @@ DOMInterfaces = {
|
|||
}],
|
||||
|
||||
'CharacterData': {
|
||||
'nativeType': 'AbstractNode',
|
||||
'concreteType': 'CharacterData',
|
||||
'pointerType': ''
|
||||
},
|
||||
|
||||
'ClientRect': [
|
||||
{
|
||||
'nativeType': 'ClientRect',
|
||||
}],
|
||||
|
||||
'ClientRectList': [
|
||||
{
|
||||
'nativeType': 'ClientRectList',
|
||||
}],
|
||||
|
||||
'Console': {
|
||||
|
@ -150,8 +144,6 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'Document': {
|
||||
'nativeType': 'AbstractDocument',
|
||||
'pointerType': '',
|
||||
'customTrace': 'trace',
|
||||
'needsAbstract': [
|
||||
'createComment',
|
||||
|
@ -165,15 +157,12 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'DOMException': {
|
||||
'nativeType': 'DOMException',
|
||||
},
|
||||
|
||||
'DOMImplementation': {
|
||||
'nativeType': 'DOMImplementation',
|
||||
},
|
||||
|
||||
'DOMParser': {
|
||||
'nativeType': 'DOMParser',
|
||||
},
|
||||
|
||||
'DOMSettableTokenList': [
|
||||
|
@ -195,15 +184,10 @@ DOMInterfaces = {
|
|||
}],
|
||||
|
||||
'Element': {
|
||||
'nativeType': 'AbstractNode',
|
||||
'pointerType': '',
|
||||
'needsAbstract': ['getClientRects', 'getBoundingClientRect', 'setAttribute', 'setAttributeNS', 'removeAttribute', 'removeAttributeNS', 'id', 'attributes', 'innerHTML', 'outerHTML']
|
||||
},
|
||||
|
||||
'Event': {
|
||||
'nativeType': 'AbstractEvent',
|
||||
'concreteType': 'Event',
|
||||
'pointerType': '',
|
||||
},
|
||||
|
||||
'EventListener': {
|
||||
|
@ -211,9 +195,6 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'EventTarget': {
|
||||
'nativeType': 'AbstractEventTarget',
|
||||
'concreteType': 'EventTarget',
|
||||
'pointerType': '',
|
||||
'needsAbstract': ['dispatchEvent']
|
||||
},
|
||||
|
||||
|
@ -241,22 +222,8 @@ DOMInterfaces = {
|
|||
|
||||
'HTMLCollection': [
|
||||
{
|
||||
'nativeType': 'HTMLCollection',
|
||||
'pointerType': '@mut '
|
||||
}],
|
||||
|
||||
'HTMLDocument': {
|
||||
'nativeType': 'AbstractDocument',
|
||||
'pointerType': '',
|
||||
'customTrace': 'trace'
|
||||
},
|
||||
|
||||
'HTMLFormElement': {
|
||||
'nativeType': 'AbstractNode',
|
||||
'pointerType': '',
|
||||
'register': False
|
||||
},
|
||||
|
||||
'HTMLOptionsCollection': [
|
||||
{
|
||||
'nativeType': 'nsHTMLOptionCollection',
|
||||
|
@ -306,27 +273,21 @@ DOMInterfaces = {
|
|||
}],
|
||||
|
||||
'MouseEvent': {
|
||||
'nativeType': 'AbstractEvent',
|
||||
'concreteType': 'MouseEvent',
|
||||
'pointerType': '',
|
||||
},
|
||||
|
||||
'Navigator': {
|
||||
},
|
||||
|
||||
'Node': {
|
||||
'nativeType': 'AbstractNode',
|
||||
'concreteType': 'Node',
|
||||
'pointerType': '',
|
||||
'needsAbstract': [
|
||||
'appendChild',
|
||||
'insertBefore',
|
||||
'replaceChild',
|
||||
'childNodes',
|
||||
'insertBefore',
|
||||
'nodeName',
|
||||
'nodeValue',
|
||||
'removeChild',
|
||||
'replaceChild',
|
||||
'textContent',
|
||||
'childNodes',
|
||||
'contains',
|
||||
'isEqualNode',
|
||||
]
|
||||
|
@ -334,8 +295,6 @@ DOMInterfaces = {
|
|||
|
||||
'NodeList': [
|
||||
{
|
||||
'nativeType': 'NodeList',
|
||||
'pointerType': '@mut ',
|
||||
'resultNotAddRefed': ['item']
|
||||
}],
|
||||
|
||||
|
@ -410,9 +369,6 @@ DOMInterfaces = {
|
|||
}],
|
||||
|
||||
'UIEvent': {
|
||||
'nativeType': 'AbstractEvent',
|
||||
'concreteType': 'UIEvent',
|
||||
'pointerType': '',
|
||||
},
|
||||
|
||||
'ValidityState': {
|
||||
|
@ -592,7 +548,7 @@ def addExternalIface(iface, nativeType=None, headerFile=None, pointerType=None):
|
|||
# FIXME: This should be renamed: https://github.com/mozilla/servo/issues/1625
|
||||
def addHTMLElement(element, concrete=None, needsAbstract=[]):
|
||||
DOMInterfaces[element] = {
|
||||
'nativeType': 'AbstractNode',
|
||||
'nativeType': 'JS<%s>' % element,
|
||||
'pointerType': '',
|
||||
'concreteType': concrete if concrete else element,
|
||||
'customTrace': 'trace',
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -158,10 +158,9 @@ class Descriptor(DescriptorProvider):
|
|||
if self.workers:
|
||||
nativeTypeDefault = "workers::" + ifaceName
|
||||
else:
|
||||
nativeTypeDefault = ifaceName
|
||||
nativeTypeDefault = 'JS<%s>' % ifaceName
|
||||
|
||||
self.nativeType = desc.get('nativeType', nativeTypeDefault)
|
||||
self.pointerType = desc.get('pointerType', '@mut ')
|
||||
self.concreteType = desc.get('concreteType', ifaceName)
|
||||
self.needsAbstract = desc.get('needsAbstract', [])
|
||||
self.hasInstanceInterface = desc.get('hasInstanceInterface', None)
|
||||
|
@ -253,7 +252,7 @@ class Descriptor(DescriptorProvider):
|
|||
self.prefable = desc.get('prefable', False)
|
||||
|
||||
self.nativeIsISupports = not self.workers
|
||||
self.customTrace = desc.get('customTrace', self.workers)
|
||||
self.customTrace = desc.get('customTrace', self.workers) or 'trace'
|
||||
self.customFinalize = desc.get('customFinalize', self.workers)
|
||||
self.wrapperCache = self.workers or desc.get('wrapperCache', True)
|
||||
|
||||
|
|
|
@ -83,12 +83,14 @@ def main():
|
|||
# Generate the type list.
|
||||
generate_file(config, 'InterfaceTypes', 'declare+define')
|
||||
|
||||
# Generate the type list.
|
||||
generate_file(config, 'InheritTypes', 'declare+define')
|
||||
|
||||
# Generate the module declarations.
|
||||
generate_file(config, 'BindingDeclarations', 'declare+define')
|
||||
|
||||
#XXXjdm No union support yet
|
||||
#generate_file(config, 'UnionTypes', 'declare')
|
||||
#generate_file(config, 'UnionConversions', 'declare')
|
||||
generate_file(config, 'UnionTypes', 'declare+define')
|
||||
generate_file(config, 'UnionConversions', 'declare+define')
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
@ -95,7 +95,7 @@ CSS2Properties.webidl: $(topsrcdir)/layout/style/nsCSSPropList.h \
|
|||
$(srcdir)/GenerateCSS2PropertiesWebIDL.py \
|
||||
$(GLOBAL_DEPS)
|
||||
$(CPP) $(DEFINES) $(ACDEFINES) -I$(topsrcdir)/layout/style $(webidl_base)/CSS2PropertiesProps.h | \
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) \
|
||||
$(PYTHON) \
|
||||
$(srcdir)/GenerateCSS2PropertiesWebIDL.py $(webidl_base)/CSS2Properties.webidl.in > CSS2Properties.webidl
|
||||
|
||||
$(webidl_files): %: $(webidl_base)/%
|
||||
|
@ -107,7 +107,7 @@ $(test_webidl_files): %: $(srcdir)/test/%
|
|||
$(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
|
||||
%.webidl \
|
||||
$(NULL)
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
||||
$(srcdir)/BindingGen.py header \
|
||||
$(srcdir)/Bindings.conf $*Binding \
|
||||
|
@ -116,7 +116,7 @@ $(binding_header_files): %Binding.h: $(bindinggen_dependencies) \
|
|||
$(binding_cpp_files): %Binding.cpp: $(bindinggen_dependencies) \
|
||||
%.webidl \
|
||||
$(NULL)
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
||||
$(srcdir)/BindingGen.py cpp \
|
||||
$(srcdir)/Bindings.conf $*Binding \
|
||||
|
@ -142,7 +142,7 @@ $(CACHE_DIR)/.done:
|
|||
|
||||
ParserResults.pkl: $(globalgen_dependencies) \
|
||||
$(all_webidl_files)
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) -I$(srcdir)/parser \
|
||||
$(srcdir)/GlobalGen.py $(srcdir)/Bindings.conf . \
|
||||
--cachedir=$(CACHE_DIR) \
|
||||
|
|
|
@ -79,9 +79,9 @@ $(CPPSRCS): ../%Binding.cpp: $(bindinggen_dependencies) \
|
|||
$(MAKE) -C .. $*Binding.cpp
|
||||
|
||||
check::
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py
|
||||
|
||||
check-interactive:
|
||||
PYTHONDONTWRITEBYTECODE=1 $(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PYTHON) $(topsrcdir)/config/pythonpath.py \
|
||||
$(PLY_INCLUDE) $(srcdir)/../parser/runtests.py -q
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue