-
ch.dumez@sisa.samsung.com authored
https://bugs.webkit.org/show_bug.cgi?id=117547 Reviewed by Kentaro Hara. Source/WebCore: Add support for byte and octet IDL types to the bindings generator: http://dev.w3.org/2006/webapi/WebIDL/#idl-byte http://dev.w3.org/2006/webapi/WebIDL/#idl-octet No new tests, covered by existing layout tests and by new bindings tests. No new tests, covered by bindings tests and: fast/js/webidl-type-mapping.html * WebCore.exp.in: Export new symbols for mac port. * bindings/js/JSDOMBinding.cpp: * bindings/js/JSDOMBinding.h: Add toInt8() / toUInt8() methods to convert from JSValue to int8_t / uint8_t as specified by Web IDL. * bindings/js/JSDataViewCustom.cpp: Remove custom code for getInt8, getUInt8, setInt8, setUInt8 now that byte and octet types are supported by the bindings generator. * bindings/scripts/CodeGeneratorCPP.pm: * bindings/scripts/CodeGeneratorGObject.pm: * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorObjC.pm: * bindings/scripts/test/CPP/WebDOMTestObj.cpp: * bindings/scripts/test/CPP/WebDOMTestObj.h: * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: * bindings/scripts/test/GObject/WebKitDOMTestObj.h: * bindings/scripts/test/JS/JSTestObj.cpp: * bindings/scripts/test/JS/JSTestObj.h: * bindings/scripts/test/ObjC/DOMTestObj.h: * bindings/scripts/test/ObjC/DOMTestObj.mm: * bindings/scripts/test/TestObj.idl: Add tests for byte and octet types. * html/canvas/DataView.idl: Remove [Custom] extended attribute for getInt8, getUInt8, setInt8, setUInt8 and use newly supported byte / octet types. LayoutTests: Update fast/js/webidl-type-mapping.html to cover byte and octet Web IDL types with and without [EnforceRange]. * fast/js/webidl-type-mapping-expected.txt: * fast/js/webidl-type-mapping.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
73180b58