Changeset 223930 in webkit
- Timestamp:
- Oct 24, 2017 3:05:30 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r223929 r223930 1 2017-10-24 Andy Estes <aestes@apple.com> 2 3 [WebIDL] Support the ExportMacro attribute for dictionaries 4 https://bugs.webkit.org/show_bug.cgi?id=178752 5 6 Reviewed by Sam Weinig. 7 8 * bindings/scripts/CodeGeneratorJS.pm: 9 (GenerateDictionaryHeaderContent): 10 * bindings/scripts/test/JS/JSTestStandaloneDictionary.h: 11 * bindings/scripts/test/TestStandaloneDictionary.idl: 12 1 13 2017-10-24 Eric Carlson <eric.carlson@apple.com> 2 14 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r223780 r223930 2223 2223 $headerIncludes{"JSDOMConvertDictionary.h"} = 1; 2224 2224 2225 my $exportMacro = GetExportMacroForJSClass($dictionary); 2226 2225 2227 my $result = ""; 2226 2228 $result .= "#if ${conditionalString}\n\n" if $conditionalString; 2227 $result .= "template<> ${ className} convertDictionary<${className}>(JSC::ExecState&, JSC::JSValue);\n\n";2229 $result .= "template<> ${exportMacro}${className} convertDictionary<${className}>(JSC::ExecState&, JSC::JSValue);\n\n"; 2228 2230 2229 2231 if ($dictionary->extendedAttributes->{JSGenerateToJSObject}) { 2230 $result .= " JSC::JSObject* convertDictionaryToJS(JSC::ExecState&, JSDOMGlobalObject&, const ${className}&);\n\n";2232 $result .= "${exportMacro}JSC::JSObject* convertDictionaryToJS(JSC::ExecState&, JSDOMGlobalObject&, const ${className}&);\n\n"; 2231 2233 } 2232 2234 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStandaloneDictionary.h
r221598 r223930 29 29 namespace WebCore { 30 30 31 template<> DictionaryImplName convertDictionary<DictionaryImplName>(JSC::ExecState&, JSC::JSValue);31 template<> WEBCORE_EXPORT DictionaryImplName convertDictionary<DictionaryImplName>(JSC::ExecState&, JSC::JSValue); 32 32 33 33 String convertEnumerationToString(TestStandaloneDictionary::EnumInStandaloneDictionaryFile); -
trunk/Source/WebCore/bindings/scripts/test/TestStandaloneDictionary.idl
r207768 r223930 32 32 ImplementedAs=DictionaryImplName, 33 33 Conditional=Condition1, 34 ExportMacro=WEBCORE_EXPORT, 34 35 ] dictionary TestStandaloneDictionary { 35 36 boolean boolMember;
Note: See TracChangeset
for help on using the changeset viewer.