Changeset 103751 in webkit
- Timestamp:
- Dec 27, 2011 6:47:37 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r103750 r103751 1 2011-12-27 Dominic Cooney <dominicc@chromium.org> 2 3 Remove initWebKitAnimationEvent method 4 https://bugs.webkit.org/show_bug.cgi?id=71698 5 6 Reviewed by Ojan Vafai. 7 8 * fast/events/init-events-expected.txt: 9 * fast/events/script-tests/init-events.js: 10 1 11 2011-12-27 Ryosuke Niwa <rniwa@webkit.org> 2 12 -
trunk/LayoutTests/fast/events/init-events-expected.txt
r103746 r103751 165 165 PASS testInitEvent('UI', '"a", false, false, window, 1001').pageY is 0 166 166 PASS testInitEvent('UI', '"a", false, false, window, 1001').which is 0 167 PASS testInitEvent('WebKitAnimation', '"a", false, false, "b", 1001').type is 'a'168 PASS testInitEvent('WebKitAnimation', 'null, false, false, "b", 1001').type is 'null'169 PASS testInitEvent('WebKitAnimation', '"a", false, false, "b", 1001').bubbles is false170 PASS testInitEvent('WebKitAnimation', '"a", true, false, "b", 1001').bubbles is true171 PASS testInitEvent('WebKitAnimation', '"a", false, false, "b", 1001').cancelable is false172 PASS testInitEvent('WebKitAnimation', '"a", false, true, "b", 1001').cancelable is true173 PASS testInitEvent('WebKitAnimation', '"a", false, false, "b", 1001').animationName is 'b'174 PASS testInitEvent('WebKitAnimation', '"a", false, false, null, 1001').animationName is 'null'175 PASS testInitEvent('WebKitAnimation', '"a", false, false, "b", 1001').elapsedTime is 1001176 167 PASS successfullyParsed is true 177 168 -
trunk/LayoutTests/fast/events/script-tests/init-events.js
r103746 r103751 182 182 shouldBe("testInitEvent('UI', '\"a\", false, false, window, 1001').which", "0"); 183 183 184 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, \"b\", 1001').type", "'a'");185 shouldBe("testInitEvent('WebKitAnimation', 'null, false, false, \"b\", 1001').type", "'null'");186 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, \"b\", 1001').bubbles", "false");187 shouldBe("testInitEvent('WebKitAnimation', '\"a\", true, false, \"b\", 1001').bubbles", "true");188 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, \"b\", 1001').cancelable", "false");189 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, true, \"b\", 1001').cancelable", "true");190 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, \"b\", 1001').animationName", "'b'");191 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, null, 1001').animationName", "'null'");192 shouldBe("testInitEvent('WebKitAnimation', '\"a\", false, false, \"b\", 1001').elapsedTime", "1001");193 194 184 // WheelEvent has no init function yet; roughly speaking, we are waiting for that part of DOM 3 to stabilize. -
trunk/Source/WebCore/ChangeLog
r103746 r103751 1 2011-12-27 Dominic Cooney <dominicc@chromium.org> 2 3 Remove initWebKitAnimationEvent method 4 https://bugs.webkit.org/show_bug.cgi?id=71698 5 6 Reviewed by Ojan Vafai. 7 8 Now that WebKitAnimationEvent has a constructor, we don't need 9 this 10 method. <https://www.w3.org/Bugs/Public/show_bug.cgi?id=15338> is 11 tracking the change to the CSS Animations spec. 12 13 * dom/WebKitAnimationEvent.cpp: 14 * dom/WebKitAnimationEvent.h: 15 * dom/WebKitAnimationEvent.idl: 16 1 17 2011-12-27 Dominic Cooney <dominicc@chromium.org> 2 18 -
trunk/Source/WebCore/dom/WebKitAnimationEvent.cpp
r98044 r103751 60 60 } 61 61 62 void WebKitAnimationEvent::initWebKitAnimationEvent(const AtomicString& type,63 bool canBubbleArg,64 bool cancelableArg,65 const String& animationName,66 double elapsedTime)67 {68 if (dispatched())69 return;70 71 initEvent(type, canBubbleArg, cancelableArg);72 73 m_animationName = animationName;74 m_elapsedTime = elapsedTime;75 }76 77 62 const String& WebKitAnimationEvent::animationName() const 78 63 { -
trunk/Source/WebCore/dom/WebKitAnimationEvent.h
r98044 r103751 55 55 virtual ~WebKitAnimationEvent(); 56 56 57 void initWebKitAnimationEvent(const AtomicString& type,58 bool canBubbleArg,59 bool cancelableArg,60 const String& animationName,61 double elapsedTime);62 63 57 const String& animationName() const; 64 58 double elapsedTime() const; -
trunk/Source/WebCore/dom/WebKitAnimationEvent.idl
r100564 r103751 31 31 readonly attribute [InitializedByConstructor] DOMString animationName; 32 32 readonly attribute [InitializedByConstructor] double elapsedTime; 33 34 void initWebKitAnimationEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,35 in [Optional=CallWithDefaultValue] boolean canBubbleArg,36 in [Optional=CallWithDefaultValue] boolean cancelableArg,37 in [Optional=CallWithDefaultValue] DOMString animationNameArg,38 in [Optional=CallWithDefaultValue] double elapsedTimeArg);39 33 }; 40 34
Note: See TracChangeset
for help on using the changeset viewer.