Changeset 99471 in webkit
- Timestamp:
- Nov 7, 2011 1:59:19 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r99466 r99471 1 2011-11-07 Dominic Cooney <dominicc@chromium.org> 2 3 Remove initPopStateEvent method 4 https://bugs.webkit.org/show_bug.cgi?id=71691 5 6 Reviewed by Ojan Vafai. 7 8 * fast/events/fire-popstate-event.html: use 'new PopStateEvent' now 9 1 10 2011-11-07 Adam Barth <abarth@webkit.org> 2 11 -
trunk/LayoutTests/fast/events/fire-popstate-event.html
r98407 r99471 16 16 onload = function() 17 17 { 18 var evt = document.createEvent("PopStateEvent"); 19 evt.initPopStateEvent("popstate", false, false, { testValue: "Success"} ); 18 var evt = new PopStateEvent('popstate', { 19 bubbles: false, 20 cancelable: false, 21 state: { testValue: 'Success' } 22 }); 20 23 window.dispatchEvent(evt); 21 24 } -
trunk/Source/WebCore/ChangeLog
r99468 r99471 1 2011-11-07 Dominic Cooney <dominicc@chromium.org> 2 3 Remove initPopStateEvent method 4 https://bugs.webkit.org/show_bug.cgi?id=71691 5 6 Reviewed by Ojan Vafai. 7 8 * dom/PopStateEvent.cpp: 9 * dom/PopStateEvent.h: 10 * dom/PopStateEvent.idl: 11 1 12 2011-11-07 Andreas Kling <kling@webkit.org> 2 13 -
trunk/Source/WebCore/dom/PopStateEvent.cpp
r98044 r99471 86 86 } 87 87 88 void PopStateEvent::initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue& state)89 {90 if (dispatched())91 return;92 93 initEvent(type, canBubble, cancelable);94 95 m_state = state;96 }97 98 88 const AtomicString& PopStateEvent::interfaceName() const 99 89 { -
trunk/Source/WebCore/dom/PopStateEvent.h
r98044 r99471 47 47 static PassRefPtr<PopStateEvent> create(PassRefPtr<SerializedScriptValue>); 48 48 static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&); 49 void initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue&);50 49 51 50 SerializedScriptValue* serializedState() const { return m_serializedState.get(); } -
trunk/Source/WebCore/dom/PopStateEvent.idl
r96788 r99471 32 32 CustomConstructor, 33 33 ] PopStateEvent : Event { 34 void initPopStateEvent(in [Optional=CallWithDefaultValue] DOMString typeArg,35 in [Optional=CallWithDefaultValue] boolean canBubbleArg,36 in [Optional=CallWithDefaultValue] boolean cancelableArg,37 in [Optional=CallWithDefaultValue] DOMObject stateArg);38 39 34 readonly attribute [CustomGetter] DOMObject state; 40 35 };
Note: See TracChangeset
for help on using the changeset viewer.