Changeset 245867 in webkit
- Timestamp:
- May 29, 2019, 2:04:55 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_pointerenter_does_not_bubble-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_pointerleave_does_not_bubble-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/MouseEvent.h (modified) (1 diff)
-
Source/WebCore/dom/PointerEvent.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r245825 r245867 1 2019-05-29 Antoine Quint <graouts@apple.com> 2 3 [Pointer Events] toElement and fromElement should be null 4 https://bugs.webkit.org/show_bug.cgi?id=198338 5 6 Reviewed by Dean Jackson. 7 8 Mark WPT progressions now that we return the correct values for toElement and fromElement. 9 10 * web-platform-tests/pointerevents/pointerevent_pointerenter_does_not_bubble-expected.txt: 11 * web-platform-tests/pointerevents/pointerevent_pointerleave_does_not_bubble-expected.txt: 12 1 13 2019-05-28 Shawn Roberts <sroberts@apple.com> 2 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_pointerenter_does_not_bubble-expected.txt
r244393 r245867 48 48 PASS mouse pointerenter.toElement is readonly 49 49 PASS mouse pointerenter.toElement IDL type object (JS type was object) 50 FAIL mouse pointerenter.toElement value is null. assert_equals: toElement attribute value expected null but got Element node <div id="target0"></div> 50 PASS mouse pointerenter.toElement value is null. 51 51 PASS mouse pointerenter.pressure value is valid 52 52 PASS mouse pointerenter properties for pointerType = mouse -
trunk/LayoutTests/imported/w3c/web-platform-tests/pointerevents/pointerevent_pointerleave_does_not_bubble-expected.txt
r244393 r245867 44 44 PASS mouse pointerleave.fromElement is readonly 45 45 PASS mouse pointerleave.fromElement IDL type object (JS type was object) 46 FAIL mouse pointerleave.fromElement value is null. assert_equals: fromElement attribute value expected null but got Element node <html><head> 47 <title>Pointer Event: The pointerlea... 46 PASS mouse pointerleave.fromElement value is null. 48 47 PASS mouse pointerleave.toElement attribute exists 49 48 PASS mouse pointerleave.toElement is readonly 50 49 PASS mouse pointerleave.toElement IDL type object (JS type was object) 51 FAIL mouse pointerleave.toElement value is null. assert_equals: toElement attribute value expected null but got Element node <div id="target0"></div> 50 PASS mouse pointerleave.toElement value is null. 52 51 PASS mouse pointerleave.pressure value is valid 53 52 PASS mouse pointerleave properties for pointerType = mouse -
trunk/Source/WebCore/ChangeLog
r245863 r245867 1 2019-05-29 Antoine Quint <graouts@apple.com> 2 3 [Pointer Events] toElement and fromElement should be null 4 https://bugs.webkit.org/show_bug.cgi?id=198338 5 6 Reviewed by Dean Jackson. 7 8 * dom/MouseEvent.h: 9 * dom/PointerEvent.h: 10 1 11 2019-05-29 Ryan Haddad <ryanhaddad@apple.com> 2 12 -
trunk/Source/WebCore/dom/MouseEvent.h
r244115 r245867 76 76 void setForce(double force) { m_force = force; } 77 77 78 WEBCORE_EXPORT RefPtr<Node> toElement() const;79 WEBCORE_EXPORT RefPtr<Node> fromElement() const;78 WEBCORE_EXPORT virtual RefPtr<Node> toElement() const; 79 WEBCORE_EXPORT virtual RefPtr<Node> fromElement() const; 80 80 81 81 DataTransfer* dataTransfer() const { return isDragEvent() ? m_dataTransfer.get() : nullptr; } -
trunk/Source/WebCore/dom/PointerEvent.h
r245639 r245867 29 29 30 30 #include "MouseEvent.h" 31 #include "Node.h" 31 32 #include "PointerID.h" 32 33 #include <wtf/text/WTFString.h> … … 102 103 bool isPointerEvent() const final { return true; } 103 104 105 // https://w3c.github.io/pointerevents/#attributes-and-default-actions 106 // Many user agents expose non-standard attributes fromElement and toElement in MouseEvents to 107 // support legacy content. In those user agents, the values of those (inherited) attributes in 108 // PointerEvents must be null to encourage the use of the standardized alternates (i.e. target 109 // and relatedTarget). 110 RefPtr<Node> toElement() const final { return nullptr; } 111 RefPtr<Node> fromElement() const final { return nullptr; } 112 104 113 EventInterface eventInterface() const override; 105 114
Note:
See TracChangeset
for help on using the changeset viewer.