Changeset 207170 in webkit
- Timestamp:
- Oct 11, 2016 3:07:50 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r207162 r207170 1 2016-10-10 Ryosuke Niwa <rniwa@webkit.org> 2 3 Annotate DOM API with CEReactions 4 https://bugs.webkit.org/show_bug.cgi?id=163268 5 6 Reviewed by Darin Adler. 7 8 Rebaseline tests now that more test cases are passing. 9 10 * web-platform-tests/custom-elements/reactions/Attr-expected.txt: 11 * web-platform-tests/custom-elements/reactions/ChildNode-expected.txt: 12 * web-platform-tests/custom-elements/reactions/DOMTokenList-expected.txt: 13 * web-platform-tests/custom-elements/reactions/Document-expected.txt: 14 * web-platform-tests/custom-elements/reactions/Element-expected.txt: 15 * web-platform-tests/custom-elements/reactions/NamedNodeMap-expected.txt: 16 * web-platform-tests/custom-elements/reactions/Node-expected.txt: 17 * web-platform-tests/custom-elements/reactions/ParentNode-expected.txt: 18 * web-platform-tests/custom-elements/reactions/Range-expected.txt: 19 1 20 2016-10-11 Alex Christensen <achristensen@webkit.org> 2 21 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Attr-expected.txt
r206838 r207170 1 1 2 FAIL value on Attr must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 2 PASS value on Attr must enqueue an attributeChanged reaction when replacing an existing attribute 3 3 PASS value on Attr must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/ChildNode-expected.txt
r206838 r207170 1 1 2 FAIL before on ChildNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 3 FAIL before on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 4 FAIL after on ChildNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 5 FAIL after on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 6 FAIL replaceWith on ChildNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 7 FAIL replaceWith on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 8 FAIL replaceWith on ChildNode must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 2 PASS before on ChildNode must enqueue a connected reaction 3 PASS before on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 4 PASS after on ChildNode must enqueue a connected reaction 5 PASS after on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 6 PASS replaceWith on ChildNode must enqueue a connected reaction 7 PASS replaceWith on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 8 PASS replaceWith on ChildNode must enqueue a disconnected reaction 9 9 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/DOMTokenList-expected.txt
r206838 r207170 1 1 2 FAIL add on DOMTokenList must enqueue an attributeChanged reaction when adding an attribute assert_array_equals: lengths differ, expected 1 got 0 2 PASS add on DOMTokenList must enqueue an attributeChanged reaction when adding an attribute 3 3 PASS add on DOMTokenList must not enqueue an attributeChanged reaction when adding an unobserved attribute 4 FAIL add on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an existing attribute assert_array_equals: lengths differ, expected 1 got 0 4 PASS add on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an existing attribute 5 5 PASS add on DOMTokenList must not enqueue an attributeChanged reaction when adding a value to an unobserved attribute 6 FAIL add on DOMTokenList must enqueue exactly one attributeChanged reaction when adding multiple values to an attribute assert_array_equals: lengths differ, expected 1 got 0 7 FAIL remove on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute assert_array_equals: lengths differ, expected 1 got 0 8 FAIL remove on DOMTokenList must enqueue exactly one attributeChanged reaction when removing multiple values to an attribute assert_array_equals: lengths differ, expected 1 got 0 9 PASS remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a non-existent value from an attribute 6 PASS add on DOMTokenList must enqueue exactly one attributeChanged reaction when adding multiple values to an attribute 7 PASS remove on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute 8 PASS remove on DOMTokenList must enqueue exactly one attributeChanged reaction when removing multiple values to an attribute 9 FAIL remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a non-existent value from an attribute assert_array_equals: lengths differ, expected 0 got 1 10 10 PASS remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a value from an unobserved attribute 11 FAIL toggle on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an attribute assert_array_equals: lengths differ, expected 1 got 0 12 FAIL toggle on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute assert_array_equals: lengths differ, expected 1 got 0 11 PASS toggle on DOMTokenList must enqueue an attributeChanged reaction when adding a value to an attribute 12 PASS toggle on DOMTokenList must enqueue an attributeChanged reaction when removing a value from an attribute 13 13 PASS remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a value from an unobserved attribute 14 FAIL replace on DOMTokenList must enqueue an attributeChanged reaction when replacing a value in an attribute assert_array_equals: lengths differ, expected 1 got 0 14 PASS replace on DOMTokenList must enqueue an attributeChanged reaction when replacing a value in an attribute 15 15 PASS replace on DOMTokenList must not enqueue an attributeChanged reaction when the token to replace does not exist in the attribute 16 16 PASS replace on DOMTokenList must not enqueue an attributeChanged reaction when replacing a value in an unobserved attribute 17 FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when adding an observed attribute assert_array_equals: lengths differ, expected 1 got 0 17 PASS the stringifier of DOMTokenList must enqueue an attributeChanged reaction when adding an observed attribute 18 18 PASS the stringifier of DOMTokenList must not enqueue an attributeChanged reaction when adding an unobserved attribute 19 FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when mutating the value of an observed attribute assert_array_equals: lengths differ, expected 1 got 0 19 PASS the stringifier of DOMTokenList must enqueue an attributeChanged reaction when mutating the value of an observed attribute 20 20 PASS the stringifier of DOMTokenList must not enqueue an attributeChanged reaction when mutating the value of an unobserved attribute 21 FAIL the stringifier of DOMTokenList must enqueue an attributeChanged reaction when the setter is called with the original value of the attribute assert_array_equals: lengths differ, expected 1 got 0 21 PASS the stringifier of DOMTokenList must enqueue an attributeChanged reaction when the setter is called with the original value of the attribute 22 22 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Document-expected.txt
r206838 r207170 1 1 2 2 FAIL importNode on Document must construct a new custom element when importing a custom element assert_array_equals: lengths differ, expected 1 got 0 3 FAIL adoptNode on Document must enqueue an adopted reaction when importing a custom element assert_array_equals: lengths differ, expected 1 got 0 3 PASS adoptNode on Document must enqueue an adopted reaction when importing a custom element 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Element-expected.txt
r206838 r207170 1 1 2 FAIL id on Element must enqueue an attributeChanged reaction when adding id content attribute assert_array_equals: lengths differ, expected 1 got 0 3 FAIL id on Element must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 4 FAIL className on Element must enqueue an attributeChanged reaction when adding class content attribute assert_array_equals: lengths differ, expected 1 got 0 5 FAIL className on Element must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 6 FAIL slot on Element must enqueue an attributeChanged reaction when adding slot content attribute assert_array_equals: lengths differ, expected 1 got 0 7 FAIL slot on Element must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 2 PASS id on Element must enqueue an attributeChanged reaction when adding id content attribute 3 PASS id on Element must enqueue an attributeChanged reaction when replacing an existing attribute 4 PASS className on Element must enqueue an attributeChanged reaction when adding class content attribute 5 PASS className on Element must enqueue an attributeChanged reaction when replacing an existing attribute 6 PASS slot on Element must enqueue an attributeChanged reaction when adding slot content attribute 7 PASS slot on Element must enqueue an attributeChanged reaction when replacing an existing attribute 8 8 PASS setAttribute on Element must enqueue an attributeChanged reaction when adding an attribute 9 9 PASS setAttribute on Element must not enqueue an attributeChanged reaction when adding an unobserved attribute … … 34 34 PASS removeAttributeNode on Element must enqueue an attributeChanged reaction when removing an existing attribute 35 35 PASS removeAttributeNode on Element must not enqueue an attributeChanged reaction when removing an existing unobserved attribute 36 FAIL undefined must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 37 FAIL undefined must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 36 PASS undefined must enqueue a connected reaction 37 PASS undefined must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 38 38 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/NamedNodeMap-expected.txt
r206838 r207170 1 1 2 FAIL setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute assert_array_equals: lengths differ, expected 1 got 0 2 PASS setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute 3 3 PASS setNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when adding an unobserved attribute 4 FAIL setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 4 PASS setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute 5 5 PASS setNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing unobserved attribute 6 FAIL setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute assert_array_equals: lengths differ, expected 1 got 0 6 PASS setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when adding an attribute 7 7 PASS setNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when adding an unobserved attribute 8 FAIL setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 8 PASS setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing attribute 9 9 PASS setNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when replacing an existing unobserved attribute 10 10 FAIL removeNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when removing an attribute that does not exist The object can not be found here. 11 11 PASS removeNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when removing an unobserved attribute 12 FAIL removeNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 12 PASS removeNamedItem on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute 13 13 PASS removeNamedItem on NamedNodeMap must not enqueue an attributeChanged reaction when removing an existing unobserved attribute 14 14 FAIL removeNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when removing an attribute that does not exist The object can not be found here. 15 15 PASS removeNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when removing an unobserved attribute 16 FAIL removeNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 16 PASS removeNamedItemNS on NamedNodeMap must enqueue an attributeChanged reaction when removing an existing attribute 17 17 PASS removeNamedItemNS on NamedNodeMap must not enqueue an attributeChanged reaction when removing an existing unobserved attribute 18 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Node-expected.txt
r206838 r207170 1 1 2 FAIL nodeValue on Node must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 0 2 PASS nodeValue on Node must enqueue an attributeChanged reaction when replacing an existing attribute 3 3 PASS nodeValue on Node must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute 4 FAIL textContent on Node must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 04 FAIL textContent on Node must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 1 got 2 5 5 PASS textContent on Node must not enqueue an attributeChanged reaction when replacing an existing unobserved attribute 6 6 FAIL cloneNode on Node must enqueue an attributeChanged reaction when cloning an element with an observed attribute assert_array_equals: lengths differ, expected 2 got 1 7 7 PASS cloneNode on Node must not enqueue an attributeChanged reaction when cloning an element with an unobserved attribute 8 FAIL cloneNode on Node must enqueue an attributeChanged reaction when cloning an element only for observed attributes assert_array_equals: lengths differ, expected 4 got 39 FAIL insertBefore on ChildNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 10 FAIL insertBefore on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 8 FAIL cloneNode on Node must enqueue an attributeChanged reaction when cloning an element only for observed attributes assert_array_equals: lengths differ, expected 3 got 1 9 PASS insertBefore on ChildNode must enqueue a connected reaction 10 PASS insertBefore on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 11 11 PASS appendChild on ChildNode must enqueue a connected reaction 12 12 PASS appendChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 13 FAIL replaceChild on ChildNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 14 FAIL replaceChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 13 PASS replaceChild on ChildNode must enqueue a connected reaction 14 PASS replaceChild on ChildNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 15 15 PASS removeChild on ChildNode must enqueue a disconnected reaction 16 16 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/ParentNode-expected.txt
r206838 r207170 1 1 2 FAIL prepend on ParentNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 3 FAIL prepend on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 4 FAIL append on ParentNode must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 5 FAIL append on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 2 PASS prepend on ParentNode must enqueue a connected reaction 3 PASS prepend on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 4 PASS append on ParentNode must enqueue a connected reaction 5 PASS append on ParentNode must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 6 6 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Range-expected.txt
r206838 r207170 1 1 2 FAIL deleteContents on Range must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 3 FAIL extractContents on Range must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 4 FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element with an observed attribute assert_array_equals: lengths differ, expected 2 got 05 FAIL cloneContents on Range must not enqueue an attributeChanged reaction when cloning an element with an unobserved attribute assert_array_equals: lengths differ, expected 1 got 0 6 FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element only for observed attributes assert_array_equals: lengths differ, expected 4 got 37 FAIL insertNode on Range must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 8 FAIL insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 9 FAIL insertNode on Range must enqueue a connected reaction assert_array_equals: lengths differ, expected 1 got 0 10 FAIL insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document assert_array_equals: lengths differ, expected 1 got 0 2 PASS deleteContents on Range must enqueue a disconnected reaction 3 PASS extractContents on Range must enqueue a disconnected reaction 4 FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element with an observed attribute assert_array_equals: lengths differ, expected 2 got 1 5 PASS cloneContents on Range must not enqueue an attributeChanged reaction when cloning an element with an unobserved attribute 6 FAIL cloneContents on Range must enqueue an attributeChanged reaction when cloning an element only for observed attributes assert_array_equals: lengths differ, expected 3 got 1 7 PASS insertNode on Range must enqueue a connected reaction 8 PASS insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 9 PASS insertNode on Range must enqueue a connected reaction 10 PASS insertNode on Range must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 11 11 -
trunk/Source/WebCore/ChangeLog
r207169 r207170 1 2016-10-10 Ryosuke Niwa <rniwa@webkit.org> 2 3 Annotate DOM API with CEReactions 4 https://bugs.webkit.org/show_bug.cgi?id=163268 5 6 Reviewed by Darin Adler. 7 8 Added CEReactions IDL attribute to APIs defined in https://dom.spec.whatwg.org. 9 10 No new tests since existing tests cover the code change. 11 Added a dedicated code generation test: JSTestCEReactions.idl and TestCEReactionsStringifier.idl. 12 13 * bindings/scripts/CodeGeneratorJS.pm: 14 (GenerateImplementation): Generate CustomElementReactionStack in attribute setters. In the case of PutForwards, 15 check the extended attributes of the target attribute's stringifier. 16 * bindings/scripts/test/JS/JSTestCEReactions.cpp: Added. 17 * bindings/scripts/test/JS/JSTestCEReactions.h: Added. 18 * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp: Added. 19 * bindings/scripts/test/JS/JSTestCEReactionsStringifier.h: Added. 20 * bindings/scripts/test/JS/JSTestObj.cpp: 21 (WebCore::jsTestObjPrototypeFunctionMethodWithNeedsCustomElementReactionStack): Deleted. 22 * bindings/scripts/test/TestCEReactions.idl: Added. 23 * bindings/scripts/test/TestCEReactionsStringifier.idl: Added. 24 * bindings/scripts/test/TestObj.idl: 25 * dom/Attr.idl: 26 * dom/ChildNode.idl: 27 * dom/Document.idl: 28 * dom/Element.idl: 29 * dom/NamedNodeMap.idl: 30 * dom/Node.idl: 31 * dom/ParentNode.idl: 32 * dom/Range.idl: 33 * html/DOMTokenList.idl: 34 1 35 2016-10-11 Chris Dumez <cdumez@apple.com> 2 36 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r207150 r207170 3299 3299 } 3300 3300 3301 if ($attribute->signature->extendedAttributes->{CEReactions}) { 3302 push(@implContent, "#if ENABLE(CUSTOM_ELEMENTS)\n"); 3303 push(@implContent, " CustomElementReactionStack customElementReactionStack;\n"); 3304 push(@implContent, "#endif\n"); 3305 $implIncludes{"CustomElementReactionQueue.h"} = 1; 3306 } 3307 3301 3308 if ($interface->extendedAttributes->{CheckSecurity} && !$attribute->signature->extendedAttributes->{DoNotCheckSecurity} && !$attribute->signature->extendedAttributes->{DoNotCheckSecurityOnSetter}) { 3302 3309 if ($interfaceName eq "DOMWindow") { … … 3349 3356 if ($putForwards) { 3350 3357 my $implGetterFunctionName = $codeGenerator->WK_lcfirst($attribute->signature->extendedAttributes->{ImplementedAs} || $name); 3358 my $forwardedAttribute = $codeGenerator->GetAttributeFromInterface($interface, $type, $putForwards); 3359 3360 if ($forwardedAttribute->signature->extendedAttributes->{CEReactions}) { 3361 push(@implContent, "#if ENABLE(CUSTOM_ELEMENTS)\n"); 3362 push(@implContent, " CustomElementReactionStack customElementReactionStack;\n"); 3363 push(@implContent, "#endif\n"); 3364 $implIncludes{"CustomElementReactionQueue.h"} = 1; 3365 } 3366 3351 3367 if ($attribute->signature->isNullable) { 3352 3368 push(@implContent, " RefPtr<${type}> forwardedImpl = castedThis->wrapped().${implGetterFunctionName}();\n"); … … 3359 3375 push(@implContent, " auto& impl = forwardedImpl.get();\n"); 3360 3376 } 3361 $attribute = $ codeGenerator->GetAttributeFromInterface($interface, $type, $putForwards);3377 $attribute = $forwardedAttribute; 3362 3378 $type = $attribute->signature->type; 3363 3379 } else { -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
r207154 r207170 23 23 24 24 #include "CallbackFunction.h" 25 #include "CustomElementReactionQueue.h"26 25 #include "DOMStringList.h" 27 26 #include "Dictionary.h" … … 979 978 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionTestStaticPromiseFunctionWithException(JSC::ExecState*); 980 979 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionTestCustomPromiseFunction(JSC::ExecState*); 981 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNeedsCustomElementReactionStack(JSC::ExecState*);982 980 #if ENABLE(CONDITION1) || ENABLE(CONDITION2) 983 981 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionConditionalOverload(JSC::ExecState*); … … 1589 1587 { "testPromiseOverloadedFunction", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionTestPromiseOverloadedFunction), (intptr_t) (1) } }, 1590 1588 { "testCustomPromiseFunction", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionTestCustomPromiseFunction), (intptr_t) (0) } }, 1591 { "methodWithNeedsCustomElementReactionStack", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithNeedsCustomElementReactionStack), (intptr_t) (0) } },1592 1589 #if ENABLE(CONDITION1) || ENABLE(CONDITION2) 1593 1590 { "conditionalOverload", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionConditionalOverload), (intptr_t) (1) } }, … … 7423 7420 } 7424 7421 7425 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithNeedsCustomElementReactionStack(ExecState* state)7426 {7427 VM& vm = state->vm();7428 auto throwScope = DECLARE_THROW_SCOPE(vm);7429 UNUSED_PARAM(throwScope);7430 #if ENABLE(CUSTOM_ELEMENTS)7431 CustomElementReactionStack customElementReactionStack;7432 #endif7433 JSValue thisValue = state->thisValue();7434 auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);7435 if (UNLIKELY(!castedThis))7436 return throwThisTypeError(*state, throwScope, "TestObject", "methodWithNeedsCustomElementReactionStack");7437 ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());7438 auto& impl = castedThis->wrapped();7439 impl.methodWithNeedsCustomElementReactionStack();7440 return JSValue::encode(jsUndefined());7441 }7442 7443 7422 #if ENABLE(CONDITION1) 7444 7423 static inline EncodedJSValue jsTestObjPrototypeFunctionConditionalOverload1(ExecState* state) -
trunk/Source/WebCore/bindings/scripts/test/TestObj.idl
r207058 r207170 400 400 [PutForwards=name] readonly attribute TestNode putForwardsAttribute; 401 401 [PutForwards=name] readonly attribute TestNode? putForwardsNullableAttribute; 402 403 #if defined(TESTING_JS)404 [CEReactions] void methodWithNeedsCustomElementReactionStack();405 #endif406 402 407 403 #if defined(TESTING_JS) -
trunk/Source/WebCore/dom/Attr.idl
r204687 r207170 28 28 readonly attribute boolean specified; 29 29 30 [ ImplementedAs=valueForBindings] attribute DOMString value;30 [CEReactions, ImplementedAs=valueForBindings] attribute DOMString value; 31 31 32 32 readonly attribute Element ownerElement; -
trunk/Source/WebCore/dom/ChildNode.idl
r206956 r207170 23 23 NoInterfaceObject, 24 24 ] interface ChildNode { 25 [ Unscopable, MayThrowLegacyException] void before((Node or DOMString)... nodes);26 [ Unscopable, MayThrowLegacyException] void after((Node or DOMString)... nodes);27 [ Unscopable, MayThrowLegacyException] void replaceWith((Node or DOMString)... nodes);28 [ Unscopable, MayThrowLegacyException] void remove();25 [CEReactions, Unscopable, MayThrowLegacyException] void before((Node or DOMString)... nodes); 26 [CEReactions, Unscopable, MayThrowLegacyException] void after((Node or DOMString)... nodes); 27 [CEReactions, Unscopable, MayThrowLegacyException] void replaceWith((Node or DOMString)... nodes); 28 [CEReactions, Unscopable, MayThrowLegacyException] void remove(); 29 29 }; -
trunk/Source/WebCore/dom/Document.idl
r206960 r207170 43 43 HTMLCollection getElementsByTagName(DOMString tagname); 44 44 45 [ NewObject, MayThrowLegacyException] Node importNode(Node importedNode, optional boolean deep = false);45 [CEReactions, MayThrowLegacyException, NewObject] Node importNode(Node importedNode, optional boolean deep = false); 46 46 47 47 [NewObject, MayThrowLegacyException] Element createElementNS(DOMString? namespaceURI, DOMString qualifiedName); … … 56 56 attribute boolean xmlStandalone; 57 57 58 [ MayThrowLegacyException] Node adoptNode(Node source);58 [CEReactions, MayThrowLegacyException] Node adoptNode(Node source); 59 59 60 60 [ImplementedAs=urlForBindings] readonly attribute USVString documentURI; -
trunk/Source/WebCore/dom/Element.idl
r206944 r207170 29 29 DOMString? getAttribute(DOMString name); 30 30 31 [ MayThrowLegacyException, CEReactions] void setAttribute(DOMString name, DOMString value);31 [CEReactions, MayThrowLegacyException] void setAttribute(DOMString name, DOMString value); 32 32 33 33 [CEReactions] void removeAttribute(DOMString name); 34 34 Attr? getAttributeNode(DOMString name); 35 35 36 [ MayThrowLegacyException, CEReactions] Attr? setAttributeNode(Attr newAttr);37 [ MayThrowLegacyException, CEReactions] Attr removeAttributeNode(Attr oldAttr);36 [CEReactions, MayThrowLegacyException] Attr? setAttributeNode(Attr newAttr); 37 [CEReactions, MayThrowLegacyException] Attr removeAttributeNode(Attr oldAttr); 38 38 39 39 HTMLCollection getElementsByTagName(DOMString name); … … 44 44 DOMString? getAttributeNS(DOMString? namespaceURI, DOMString localName); 45 45 46 [ MayThrowLegacyException, CEReactions] void setAttributeNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString value);46 [CEReactions, MayThrowLegacyException] void setAttributeNS(DOMString? namespaceURI, DOMString qualifiedName, DOMString value); 47 47 [CEReactions] void removeAttributeNS(DOMString? namespaceURI, DOMString localName); 48 48 … … 50 50 51 51 Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName); 52 [ MayThrowLegacyException, CEReactions] Attr? setAttributeNodeNS(Attr newAttr);52 [CEReactions, MayThrowLegacyException] Attr? setAttributeNodeNS(Attr newAttr); 53 53 boolean hasAttribute(DOMString name); 54 54 … … 57 57 [ImplementedAs=cssomStyle] readonly attribute CSSStyleDeclaration style; 58 58 59 [ Reflect] attribute DOMString id;59 [CEReactions, Reflect] attribute DOMString id; 60 60 61 61 readonly attribute DOMString? namespaceURI; … … 101 101 [TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString outerHTML; 102 102 103 [ Reflect=class] attribute DOMString className;103 [CEReactions, Reflect=class] attribute DOMString className; 104 104 [PutForwards=value] readonly attribute DOMTokenList classList; 105 105 … … 125 125 #endif 126 126 127 [ MayThrowLegacyException] Element insertAdjacentElement(DOMString where, Element element);127 [CEReactions, MayThrowLegacyException] Element insertAdjacentElement(DOMString where, Element element); 128 128 [MayThrowLegacyException] void insertAdjacentHTML(DOMString where, DOMString html); 129 129 [MayThrowLegacyException] void insertAdjacentText(DOMString where, DOMString text); … … 138 138 [EnabledAtRuntime=ShadowDOM, MayThrowLegacyException] ShadowRoot attachShadow(ShadowRootInit init); 139 139 [EnabledAtRuntime=ShadowDOM, ImplementedAs=shadowRootForBindings, CallWith=ScriptState] readonly attribute ShadowRoot shadowRoot; 140 [ EnabledAtRuntime=ShadowDOM, Reflect] attribute DOMString slot;140 [CEReactions, EnabledAtRuntime=ShadowDOM, Reflect] attribute DOMString slot; 141 141 142 142 // Event Handlers -
trunk/Source/WebCore/dom/NamedNodeMap.idl
r206723 r207170 27 27 28 28 getter Attr? getNamedItem(DOMString name); 29 [ MayThrowLegacyException] Attr? setNamedItem(Attr attr);30 [ MayThrowLegacyException] Attr removeNamedItem(DOMString name);29 [CEReactions, MayThrowLegacyException] Attr? setNamedItem(Attr attr); 30 [CEReactions, MayThrowLegacyException] Attr removeNamedItem(DOMString name); 31 31 getter Attr? item(unsigned long index); 32 32 Attr? getNamedItemNS(DOMString? namespaceURI, DOMString localName); 33 [ MayThrowLegacyException, ImplementedAs=setNamedItem] Attr? setNamedItemNS(Attr attr);34 [ MayThrowLegacyException] Attr removeNamedItemNS(DOMString? namespaceURI, DOMString localName);33 [CEReactions, MayThrowLegacyException, ImplementedAs=setNamedItem] Attr? setNamedItemNS(Attr attr); 34 [CEReactions, MayThrowLegacyException] Attr removeNamedItemNS(DOMString? namespaceURI, DOMString localName); 35 35 }; -
trunk/Source/WebCore/dom/Node.idl
r207013 r207170 45 45 46 46 // FIXME: the spec says this can also raise on retrieval. 47 [ SetterMayThrowLegacyException] attribute DOMString? nodeValue;47 [CEReactions, SetterMayThrowLegacyException] attribute DOMString? nodeValue; 48 48 49 49 readonly attribute unsigned short nodeType; … … 56 56 readonly attribute Document? ownerDocument; 57 57 58 [C ustom, MayThrowLegacyException] Node insertBefore([CustomReturn] Node newChild, Node? refChild);59 [C ustom, MayThrowLegacyException] Node replaceChild(Node newChild, [CustomReturn] Node oldChild);60 [C ustom, MayThrowLegacyException, CEReactions] Node removeChild([CustomReturn] Node oldChild);61 [C ustom, MayThrowLegacyException, CEReactions] Node appendChild([CustomReturn] Node newChild);58 [CEReactions, Custom, MayThrowLegacyException] Node insertBefore([CustomReturn] Node newChild, Node? refChild); 59 [CEReactions, Custom, MayThrowLegacyException] Node replaceChild(Node newChild, [CustomReturn] Node oldChild); 60 [CEReactions, Custom, MayThrowLegacyException] Node removeChild([CustomReturn] Node oldChild); 61 [CEReactions, Custom, MayThrowLegacyException] Node appendChild([CustomReturn] Node newChild); 62 62 63 63 boolean hasChildNodes(); 64 64 65 [ NewObject, MayThrowLegacyException, ImplementedAs=cloneNodeForBindings, CEReactions] Node cloneNode(optional boolean deep = false);65 [CEReactions, ImplementedAs=cloneNodeForBindings, MayThrowLegacyException, NewObject] Node cloneNode(optional boolean deep = false); 66 66 67 67 void normalize(); … … 70 70 71 71 // FIXME: the spec says this can also raise on retrieval. 72 [ SetterMayThrowLegacyException] attribute DOMString? textContent;72 [CEReactions, SetterMayThrowLegacyException] attribute DOMString? textContent; 73 73 74 74 boolean isSameNode(Node? other); -
trunk/Source/WebCore/dom/ParentNode.idl
r206956 r207170 34 34 readonly attribute unsigned long childElementCount; 35 35 36 [ Unscopable, MayThrowLegacyException] void prepend((Node or DOMString)... nodes);37 [ Unscopable, MayThrowLegacyException] void append((Node or DOMString)... nodes);36 [CEReactions, Unscopable, MayThrowLegacyException] void prepend((Node or DOMString)... nodes); 37 [CEReactions, Unscopable, MayThrowLegacyException] void append((Node or DOMString)... nodes); 38 38 39 39 // [Unscopable] Element? query(DOMString relativeSelectors); -
trunk/Source/WebCore/dom/Range.idl
r206723 r207170 42 42 [MayThrowLegacyException] void setEndAfter(Node refNode); 43 43 void collapse(optional boolean toStart = false); 44 // FIXME: Using "undefined" as default parameter value is wrong. 45 [MayThrowLegacyException] void expand(optional DOMString unit = "undefined"); 44 46 [MayThrowLegacyException] void selectNode(Node refNode); 45 47 [MayThrowLegacyException] void selectNodeContents(Node refNode); … … 53 55 [MayThrowLegacyException, ImplementedAs=compareBoundaryPointsForBindings] short compareBoundaryPoints(unsigned short how, Range sourceRange); 54 56 55 [ MayThrowLegacyException] void deleteContents();56 [ MayThrowLegacyException, NewObject] DocumentFragment extractContents();57 [ MayThrowLegacyException, NewObject] DocumentFragment cloneContents();58 [ MayThrowLegacyException] void insertNode(Node newNode);59 [ MayThrowLegacyException] void surroundContents(Node newParent);57 [CEReactions, MayThrowLegacyException] void deleteContents(); 58 [CEReactions, MayThrowLegacyException, NewObject] DocumentFragment extractContents(); 59 [CEReactions, MayThrowLegacyException, NewObject] DocumentFragment cloneContents(); 60 [CEReactions, MayThrowLegacyException] void insertNode(Node newNode); 61 [CEReactions, MayThrowLegacyException] void surroundContents(Node newParent); 60 62 [NewObject] Range cloneRange(); 61 63 DOMString toString(); … … 80 82 [MayThrowLegacyException] short comparePoint(Node refNode, unsigned long offset); 81 83 [MayThrowLegacyException] boolean isPointInRange(Node refNode, unsigned long offset); 82 83 // FIXME: Using "undefined" as default parameter value is wrong.84 [MayThrowLegacyException] void expand(optional DOMString unit = "undefined");85 84 }; -
trunk/Source/WebCore/html/DOMTokenList.idl
r206723 r207170 31 31 getter DOMString? item(unsigned long index); 32 32 boolean contains(DOMString token); 33 [ MayThrowLegacyException] void add(DOMString... tokens);34 [ MayThrowLegacyException] void remove(DOMString... tokens);35 [ MayThrowLegacyException] boolean toggle(DOMString token, optional boolean force);36 [ MayThrowLegacyException] void replace(DOMString token, DOMString newToken);33 [CEReactions, MayThrowLegacyException] void add(DOMString... tokens); 34 [CEReactions, MayThrowLegacyException] void remove(DOMString... tokens); 35 [CEReactions, MayThrowLegacyException] boolean toggle(DOMString token, optional boolean force); 36 [CEReactions, MayThrowLegacyException] void replace(DOMString token, DOMString newToken); 37 37 [MayThrowLegacyException] boolean supports(DOMString token); 38 38 39 39 iterable<DOMString>; 40 40 41 stringifier attribute DOMString value;41 [CEReactions] stringifier attribute DOMString value; 42 42 };
Note: See TracChangeset
for help on using the changeset viewer.