webidl: add Document/DocumentFragment/Node types

This commit is contained in:
Ondrej Pokorny 2022-12-08 11:50:14 +01:00
parent 14466ee9d9
commit b787203db7
2 changed files with 12 additions and 3 deletions

View File

@ -67,7 +67,10 @@ Type
wibtUint32Array, wibtUint32Array,
wibtUint8ClampedArray, wibtUint8ClampedArray,
wibtFloat32Array, wibtFloat32Array,
wibtFloat64Array wibtFloat64Array,
wibtDocument,
wibtDocumentFragment,
wibtNode
); );
TWebIDLBaseTypes = set of TWebIDLBaseType; TWebIDLBaseTypes = set of TWebIDLBaseType;
const const
@ -110,7 +113,10 @@ const
'Uint32Array', 'Uint32Array',
'Uint8ClampedArray', 'Uint8ClampedArray',
'Float32Array', 'Float32Array',
'Float64Array'); 'Float64Array',
'Document',
'DocumentFragment',
'Node');
type type

View File

@ -928,7 +928,10 @@ begin
'Uint32Array', 'Uint32Array',
'Uint8ClampedArray', 'Uint8ClampedArray',
'Float32Array', 'Float32Array',
'Float64Array': Result:=GetPasClassName(aTypeName); 'Float64Array',
'Document',
'DocumentFragment',
'Node': Result:=GetPasClassName(aTypeName);
'void': Result:=aTypeName; 'void': Result:=aTypeName;
else else