Changeset 207571 in webkit
- Timestamp:
- Oct 19, 2016 3:06:47 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r207568 r207571 1 2016-10-19 Ryosuke Niwa <rniwa@webkit.org> 2 3 Annotate more DOM and HTML IDLs with CEReactions 4 https://bugs.webkit.org/show_bug.cgi?id=163653 5 6 Reviewed by Darin Adler. 7 8 Added a regression test to make sure webkitdropzone IDL attribute on HTMLElement 9 honors CEReactions semantics using the web-platform-tests' infrastructure I added. 10 11 * fast/custom-elements/reactions-for-webkit-extensions-expected.txt: Added. 12 * fast/custom-elements/reactions-for-webkit-extensions.html: Added. 13 1 14 2016-10-19 Ryan Haddad <ryanhaddad@apple.com> 2 15 -
trunk/LayoutTests/imported/w3c/ChangeLog
r207570 r207571 1 2016-10-19 Ryosuke Niwa <rniwa@webkit.org> 2 3 Annotate more DOM and HTML IDLs with CEReactions 4 https://bugs.webkit.org/show_bug.cgi?id=163653 5 6 Reviewed by Darin Adler. 7 8 Rebaselined the tests now that more test cases are passing. 9 10 * web-platform-tests/custom-elements/attribute-changed-callback-expected.txt: 11 * web-platform-tests/custom-elements/reactions/DOMStringMap-expected.txt: 12 * web-platform-tests/custom-elements/reactions/Document-expected.txt: 13 * web-platform-tests/custom-elements/reactions/Element-expected.txt: 14 * web-platform-tests/custom-elements/reactions/ElementContentEditable-expected.txt: 15 * web-platform-tests/custom-elements/reactions/HTMLElement-expected.txt: 16 * web-platform-tests/custom-elements/reactions/Selection-expected.txt: 17 1 18 2016-10-19 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/attribute-changed-callback-expected.txt
r206999 r207571 9 9 PASS attributedChangedCallback must be enqueued for attributes specified in a non-Array iterable observedAttributes 10 10 FAIL attributedChangedCallback must be enqueued for style attribute change by mutating inline style declaration assert_equals: expected 1 but got 0 11 FAIL attributedChangedCallback must not be enqueued when mutating inline style declaration if the style attribute is not observed undefined is not an object (evaluating 'log.type') 11 PASS attributedChangedCallback must not be enqueued when mutating inline style declaration if the style attribute is not observed 12 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/DOMStringMap-expected.txt
r207520 r207571 1 1 2 FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when adding an observed data attribute assert_array_equals: lengths differ, expected 1 got 0 2 PASS setter on DOMStringMap must enqueue an attributeChanged reaction when adding an observed data attribute 3 3 PASS setter on DOMStringMap must not enqueue an attributeChanged reaction when adding an unobserved data attribute 4 FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute assert_array_equals: lengths differ, expected 2 got 1 5 FAIL setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute to the same value assert_array_equals: lengths differ, expected 2 got 1 4 PASS setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute 5 PASS setter on DOMStringMap must enqueue an attributeChanged reaction when mutating the value of an observed data attribute to the same value 6 6 PASS setter on DOMStringMap must not enqueue an attributeChanged reaction when mutating the value of an unobserved data attribute 7 FAIL deleter on DOMStringMap must enqueue an attributeChanged reaction when removing an observed data attribute assert_array_equals: lengths differ, expected 2 got 1 7 PASS deleter on DOMStringMap must enqueue an attributeChanged reaction when removing an observed data attribute 8 8 PASS deleter on DOMStringMap must not enqueue an attributeChanged reaction when removing an unobserved data attribute 9 9 PASS deleter on DOMStringMap must not enqueue an attributeChanged reaction when it does not remove a data attribute -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Document-expected.txt
r207520 r207571 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 3 PASS adoptNode on Document must enqueue an adopted reaction when importing a custom element 4 FAIL execCommand on Document must enqueue a disconnected reaction when deleting a custom element from a contenteditable element assert_array_equals: lengths differ, expected 1 got 0 4 PASS execCommand on Document must enqueue a disconnected reaction when deleting a custom element from a contenteditable element 5 5 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Element-expected.txt
r207520 r207571 33 33 PASS insertAdjacentElement on Element must enqueue a connected reaction 34 34 PASS insertAdjacentElement on Element must enqueue a disconnected reaction, an adopted reaction, and a connected reaction when the custom element was in another document 35 FAIL innerHTML on Element must enqueue a connected reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 2 got 1 36 FAIL innerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 3 got 1 37 FAIL innerHTML on Element must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 38 FAIL outerHTML on Element must enqueue a connected reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 2 got 1 39 FAIL outerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 3 got 1 40 FAIL outerHTML on Element must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 41 FAIL insertAdjacentHTML on Element must enqueue a connected reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 2 got 1 42 FAIL insertAdjacentHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element assert_array_equals: lengths differ, expected 3 got 1 35 PASS innerHTML on Element must enqueue a connected reaction for a newly constructed custom element 36 PASS innerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element 37 PASS innerHTML on Element must enqueue a disconnected reaction 38 PASS outerHTML on Element must enqueue a connected reaction for a newly constructed custom element 39 PASS outerHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element 40 PASS outerHTML on Element must enqueue a disconnected reaction 41 PASS insertAdjacentHTML on Element must enqueue a connected reaction for a newly constructed custom element 42 PASS insertAdjacentHTML on Element must enqueue a attributeChanged reaction for a newly constructed custom element 43 43 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/ElementContentEditable-expected.txt
r207520 r207571 1 1 2 FAIL contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when adding contenteditable content attribute assert_array_equals: lengths differ, expected 1 got 0 3 FAIL contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 2 PASS contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when adding contenteditable content attribute 3 PASS contentEditable on ElementContentEditable must enqueue an attributeChanged reaction when replacing an existing attribute 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/HTMLElement-expected.txt
r207520 r207571 1 1 2 FAIL title on HTMLElement must enqueue an attributeChanged reaction when adding title content attribute assert_array_equals: lengths differ, expected 1 got 0 3 FAIL title on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 4 FAIL lang on HTMLElement must enqueue an attributeChanged reaction when adding lang content attribute assert_array_equals: lengths differ, expected 1 got 0 5 FAIL lang on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 6 FAIL translate on HTMLElement must enqueue an attributeChanged reaction when adding translate content attribute assert_array_equals: lengths differ, expected 1 got 0 7 FAIL translate on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 8 FAIL dir on HTMLElement must enqueue an attributeChanged reaction when adding dir content attribute assert_array_equals: lengths differ, expected 1 got 0 9 FAIL dir on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 10 FAIL hidden on HTMLElement must enqueue an attributeChanged reaction when adding hidden content attribute assert_array_equals: lengths differ, expected 1 got 0 11 FAIL hidden on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 12 FAIL tabIndex on HTMLElement must enqueue an attributeChanged reaction when adding tabindex content attribute assert_array_equals: lengths differ, expected 1 got 0 13 FAIL tabIndex on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 14 FAIL accessKey on HTMLElement must enqueue an attributeChanged reaction when adding accesskey content attribute assert_array_equals: lengths differ, expected 1 got 0 15 FAIL accessKey on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 16 FAIL draggable on HTMLElement must enqueue an attributeChanged reaction when adding draggable content attribute assert_array_equals: lengths differ, expected 1 got 0 17 FAIL draggable on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 2 PASS title on HTMLElement must enqueue an attributeChanged reaction when adding title content attribute 3 PASS title on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 4 PASS lang on HTMLElement must enqueue an attributeChanged reaction when adding lang content attribute 5 PASS lang on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 6 PASS translate on HTMLElement must enqueue an attributeChanged reaction when adding translate content attribute 7 PASS translate on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 8 PASS dir on HTMLElement must enqueue an attributeChanged reaction when adding dir content attribute 9 PASS dir on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 10 PASS hidden on HTMLElement must enqueue an attributeChanged reaction when adding hidden content attribute 11 PASS hidden on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 12 PASS tabIndex on HTMLElement must enqueue an attributeChanged reaction when adding tabindex content attribute 13 PASS tabIndex on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 14 PASS accessKey on HTMLElement must enqueue an attributeChanged reaction when adding accesskey content attribute 15 PASS accessKey on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 16 PASS draggable on HTMLElement must enqueue an attributeChanged reaction when adding draggable content attribute 17 PASS draggable on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 18 18 FAIL dropzone on HTMLElement must enqueue an attributeChanged reaction when adding dropzone content attribute assert_array_equals: lengths differ, expected 1 got 0 19 19 FAIL dropzone on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 20 20 FAIL contextMenu on HTMLElement must enqueue an attributeChanged reaction when adding contextmenu content attribute assert_array_equals: lengths differ, expected 1 got 0 21 21 FAIL contextMenu on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 22 FAIL spellcheck on HTMLElement must enqueue an attributeChanged reaction when adding spellcheck content attribute assert_array_equals: lengths differ, expected 1 got 0 23 FAIL spellcheck on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute assert_array_equals: lengths differ, expected 2 got 1 24 FAIL innerText on HTMLElement must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 25 FAIL outerText on HTMLElement must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 22 PASS spellcheck on HTMLElement must enqueue an attributeChanged reaction when adding spellcheck content attribute 23 PASS spellcheck on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute 24 PASS innerText on HTMLElement must enqueue a disconnected reaction 25 PASS outerText on HTMLElement must enqueue a disconnected reaction 26 26 -
trunk/LayoutTests/imported/w3c/web-platform-tests/custom-elements/reactions/Selection-expected.txt
r207520 r207571 1 1 2 FAIL deleteFromDocument on Selection must enqueue a disconnected reaction assert_array_equals: lengths differ, expected 1 got 0 2 PASS deleteFromDocument on Selection must enqueue a disconnected reaction 3 3 -
trunk/Source/WebCore/ChangeLog
r207568 r207571 1 2016-10-19 Ryosuke Niwa <rniwa@webkit.org> 2 3 Annotate more DOM and HTML IDLs with CEReactions 4 https://bugs.webkit.org/show_bug.cgi?id=163653 5 6 Reviewed by Darin Adler. 7 8 Added CEReactions to more IDL files. 9 10 Test: fast/custom-elements/reactions-for-webkit-extensions.html 11 12 * bindings/js/JSDOMStringMapCustom.cpp: 13 (WebCore::JSDOMStringMap::deleteProperty): Instantiate CustomElementReactionStack, which is equivalent to 14 adding CEReactions in IDL. 15 (WebCore::JSDOMStringMap::putDelegate): Ditto. 16 * dom/Document.idl: 17 * dom/Element.idl: 18 * html/HTMLElement.idl: 19 * page/DOMSelection.idl: 20 1 21 2016-10-19 Ryan Haddad <ryanhaddad@apple.com> 2 22 -
trunk/Source/WebCore/bindings/js/JSDOMStringMapCustom.cpp
r206386 r207571 27 27 #include "JSDOMStringMap.h" 28 28 29 #include "CustomElementReactionQueue.h" 29 30 #include "DOMStringMap.h" 30 31 #include "JSNode.h" … … 63 64 bool JSDOMStringMap::deleteProperty(JSCell* cell, ExecState* exec, PropertyName propertyName) 64 65 { 66 #if ENABLE(CUSTOM_ELEMENTS) 67 CustomElementReactionStack customElementReactionStack; 68 #endif 69 65 70 JSDOMStringMap* thisObject = jsCast<JSDOMStringMap*>(cell); 66 71 if (propertyName.isSymbol()) … … 82 87 return false; 83 88 89 #if ENABLE(CUSTOM_ELEMENTS) 90 CustomElementReactionStack customElementReactionStack; 91 #endif 92 84 93 String stringValue = value.toString(exec)->value(exec); 85 94 RETURN_IF_EXCEPTION(scope, false); -
trunk/Source/WebCore/dom/Document.idl
r207541 r207571 84 84 85 85 // FIXME: The default value for the last parameter should be the empty string. 86 boolean execCommand(DOMString command, optional boolean userInterface = false, optional DOMString? value = null);86 [CEReactions] boolean execCommand(DOMString command, optional boolean userInterface = false, optional DOMString? value = null); 87 87 88 88 boolean queryCommandEnabled(DOMString command); -
trunk/Source/WebCore/dom/Element.idl
r207355 r207571 98 98 99 99 HTMLCollection getElementsByClassName(DOMString name); 100 [ TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString innerHTML;101 [ TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString outerHTML;100 [CEReactions, TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString innerHTML; 101 [CEReactions, TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString outerHTML; 102 102 103 103 [CEReactions, Reflect=class] attribute DOMString className; … … 126 126 127 127 [CEReactions, MayThrowLegacyException] Element insertAdjacentElement(DOMString where, Element element); 128 [ MayThrowLegacyException] void insertAdjacentHTML(DOMString where, DOMString html);128 [CEReactions, MayThrowLegacyException] void insertAdjacentHTML(DOMString where, DOMString html); 129 129 [MayThrowLegacyException] void insertAdjacentText(DOMString where, DOMString text); 130 130 -
trunk/Source/WebCore/html/HTMLElement.idl
r207355 r207571 27 27 ExportMacro=WEBCORE_EXPORT, 28 28 ] interface HTMLElement : Element { 29 [ Reflect] attribute DOMString title;30 [ Reflect] attribute DOMString lang;31 attribute boolean translate;32 attribute DOMString dir;29 [CEReactions, Reflect] attribute DOMString title; 30 [CEReactions, Reflect] attribute DOMString lang; 31 [CEReactions] attribute boolean translate; 32 [CEReactions] attribute DOMString dir; 33 33 34 attribute long tabIndex;35 attribute boolean draggable;34 [CEReactions] attribute long tabIndex; 35 [CEReactions] attribute boolean draggable; 36 36 37 [ Reflect] attribute DOMString webkitdropzone;37 [CEReactions, Reflect] attribute DOMString webkitdropzone; 38 38 // FIXME: Support the standard HTML equivalent. 39 39 // [PutForwards=value] readonly attribute DOMTokenList dropzone; 40 40 41 [ Reflect] attribute boolean hidden;42 [ Reflect] attribute DOMString accessKey;41 [CEReactions, Reflect] attribute boolean hidden; 42 [CEReactions, Reflect] attribute DOMString accessKey; 43 43 44 [ TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString innerText;45 [ TreatNullAs=EmptyString, SetterMayThrowLegacyException] attribute DOMString outerText;44 [CEReactions, SetterMayThrowLegacyException, TreatNullAs=EmptyString] attribute DOMString innerText; 45 [CEReactions, SetterMayThrowLegacyException, TreatNullAs=EmptyString] attribute DOMString outerText; 46 46 47 [ SetterMayThrowLegacyException] attribute DOMString contentEditable;47 [CEReactions, SetterMayThrowLegacyException] attribute DOMString contentEditable; 48 48 readonly attribute boolean isContentEditable; 49 49 50 attribute boolean spellcheck;50 [CEReactions] attribute boolean spellcheck; 51 51 52 52 void click(); -
trunk/Source/WebCore/page/DOMSelection.idl
r206960 r207571 45 45 [MayThrowException] void collapseToStart(); 46 46 47 void deleteFromDocument();47 [CEReactions] void deleteFromDocument(); 48 48 boolean containsNode(Node node, optional boolean allowPartial = false); 49 49 void selectAllChildren(Node node);
Note: See TracChangeset
for help on using the changeset viewer.