Changeset 152154 in webkit
- Timestamp:
- Jun 28, 2013 1:20:19 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r152150 r152154 1 2013-06-28 Christophe Dumez <ch.dumez@sisa.samsung.com> 2 3 Use & instead of | in the value of [CallWith] 4 https://bugs.webkit.org/show_bug.cgi?id=118054 5 6 Reviewed by Kentaro Hara. 7 8 [CallWith=ScriptExecutionContext|ScriptState] meant that both the 9 ScriptExecutionContext AND the ScriptState would be passed as 10 arguments to the implementation (not one OR the other). 11 12 This patch changes the semantics for those IDL extended attributes 13 to make it less confusing. Proper usage is now: 14 [CallWith=ScriptExecutionContext&ScriptState] 15 16 No new tests, covered by existing bindings tests. 17 18 * bindings/scripts/CodeGenerator.pm: 19 (ExtendedAttributeContains): 20 * bindings/scripts/test/TestObj.idl: 21 * page/Console.idl: 22 1 23 2013-06-27 Kangil Han <kangil.han@samsung.com> 2 24 -
trunk/Source/WebCore/bindings/scripts/CodeGenerator.pm
r151499 r152154 799 799 my $keyword = shift; 800 800 801 my @callWithKeywords = split /\s*\ |\s*/, $callWith;801 my @callWithKeywords = split /\s*\&\s*/, $callWith; 802 802 return grep { $_ eq $keyword } @callWithKeywords; 803 803 } -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r151912 r152154 120 120 [CallWith=ScriptState, RaisesException] TestObj withScriptStateObjException(); 121 121 [CallWith=ScriptExecutionContext] void withScriptExecutionContext(); 122 [CallWith=ScriptExecutionContext |ScriptState] void withScriptExecutionContextAndScriptState();123 [CallWith=ScriptExecutionContext |ScriptState, RaisesException] TestObj withScriptExecutionContextAndScriptStateObjException();124 [CallWith= ScriptExecutionContext |ScriptState ] TestObj withScriptExecutionContextAndScriptStateWithSpaces();125 [CallWith=ScriptArguments |CallStack] void withScriptArgumentsAndCallStack();122 [CallWith=ScriptExecutionContext&ScriptState] void withScriptExecutionContextAndScriptState(); 123 [CallWith=ScriptExecutionContext&ScriptState, RaisesException] TestObj withScriptExecutionContextAndScriptStateObjException(); 124 [CallWith= ScriptExecutionContext & ScriptState ] TestObj withScriptExecutionContextAndScriptStateWithSpaces(); 125 [CallWith=ScriptArguments&CallStack] void withScriptArgumentsAndCallStack(); 126 126 127 127 [CallWith=ScriptState] attribute long withScriptStateAttribute; … … 129 129 [CallWith=ScriptState, GetterRaisesException] attribute TestObj withScriptStateAttributeRaises; 130 130 [CallWith=ScriptExecutionContext, GetterRaisesException] attribute TestObj withScriptExecutionContextAttributeRaises; 131 [CallWith=ScriptExecutionContext |ScriptState] attribute TestObj withScriptExecutionContextAndScriptStateAttribute;132 [CallWith=ScriptExecutionContext |ScriptState,GetterRaisesException] attribute TestObj withScriptExecutionContextAndScriptStateAttributeRaises;133 [CallWith= ScriptExecutionContext |ScriptState ] attribute TestObj withScriptExecutionContextAndScriptStateWithSpacesAttribute;134 [CallWith=ScriptArguments |CallStack] attribute TestObj withScriptArgumentsAndCallStackAttribute;131 [CallWith=ScriptExecutionContext&ScriptState] attribute TestObj withScriptExecutionContextAndScriptStateAttribute; 132 [CallWith=ScriptExecutionContext&ScriptState,GetterRaisesException] attribute TestObj withScriptExecutionContextAndScriptStateAttributeRaises; 133 [CallWith= ScriptExecutionContext & ScriptState ] attribute TestObj withScriptExecutionContextAndScriptStateWithSpacesAttribute; 134 [CallWith=ScriptArguments&CallStack] attribute TestObj withScriptArgumentsAndCallStackAttribute; 135 135 136 136 // 'Optional' extended attribute -
trunk/Source/WebCore/page/Console.idl
r151774 r152154 32 32 ] interface Console { 33 33 34 [CallWith=ScriptArguments |ScriptState] void debug();35 [CallWith=ScriptArguments |ScriptState] void error();36 [CallWith=ScriptArguments |ScriptState] void info();37 [CallWith=ScriptArguments |ScriptState] void log();38 [CallWith=ScriptArguments |ScriptState] void warn();39 [CallWith=ScriptArguments |ScriptState] void dir();40 [CallWith=ScriptArguments |ScriptState] void dirxml();41 [CallWith=ScriptArguments |ScriptState] void table();42 [CallWith=ScriptArguments |ScriptState] void trace();43 [CallWith=ScriptArguments |ScriptState, ImplementedAs=assertCondition] void assert(boolean condition);44 [CallWith=ScriptArguments |ScriptState] void count();34 [CallWith=ScriptArguments&ScriptState] void debug(); 35 [CallWith=ScriptArguments&ScriptState] void error(); 36 [CallWith=ScriptArguments&ScriptState] void info(); 37 [CallWith=ScriptArguments&ScriptState] void log(); 38 [CallWith=ScriptArguments&ScriptState] void warn(); 39 [CallWith=ScriptArguments&ScriptState] void dir(); 40 [CallWith=ScriptArguments&ScriptState] void dirxml(); 41 [CallWith=ScriptArguments&ScriptState] void table(); 42 [CallWith=ScriptArguments&ScriptState] void trace(); 43 [CallWith=ScriptArguments&ScriptState, ImplementedAs=assertCondition] void assert(boolean condition); 44 [CallWith=ScriptArguments&ScriptState] void count(); 45 45 46 46 // As per spec: http://www.w3.org/TR/WebIDL/#idl-sequence … … 54 54 [CallWith=ScriptState] void timeEnd([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString title); 55 55 [CallWith=ScriptArguments] void timeStamp(); 56 [CallWith=ScriptArguments |ScriptState] void group();57 [CallWith=ScriptArguments |ScriptState] void groupCollapsed();56 [CallWith=ScriptArguments&ScriptState] void group(); 57 [CallWith=ScriptArguments&ScriptState] void groupCollapsed(); 58 58 void groupEnd(); 59 [CallWith=ScriptArguments |ScriptState] void clear();59 [CallWith=ScriptArguments&ScriptState] void clear(); 60 60 }; 61 61
Note: See TracChangeset
for help on using the changeset viewer.