Changeset 99471 in webkit


Ignore:
Timestamp:
Nov 7, 2011 1:59:19 PM (12 years ago)
Author:
dominicc@chromium.org
Message:

Remove initPopStateEvent method
https://bugs.webkit.org/show_bug.cgi?id=71691

Reviewed by Ojan Vafai.

Source/WebCore:

  • dom/PopStateEvent.cpp:
  • dom/PopStateEvent.h:
  • dom/PopStateEvent.idl:

LayoutTests:

  • fast/events/fire-popstate-event.html: use 'new PopStateEvent' now
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r99466 r99471  
     12011-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
    1102011-11-07  Adam Barth  <abarth@webkit.org>
    211
  • trunk/LayoutTests/fast/events/fire-popstate-event.html

    r98407 r99471  
    1616onload = function()
    1717{
    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        });
    2023    window.dispatchEvent(evt);
    2124}
  • trunk/Source/WebCore/ChangeLog

    r99468 r99471  
     12011-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
    1122011-11-07  Andreas Kling  <kling@webkit.org>
    213
  • trunk/Source/WebCore/dom/PopStateEvent.cpp

    r98044 r99471  
    8686}
    8787
    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 
    9888const AtomicString& PopStateEvent::interfaceName() const
    9989{
  • trunk/Source/WebCore/dom/PopStateEvent.h

    r98044 r99471  
    4747    static PassRefPtr<PopStateEvent> create(PassRefPtr<SerializedScriptValue>);
    4848    static PassRefPtr<PopStateEvent> create(const AtomicString&, const PopStateEventInit&);
    49     void initPopStateEvent(const AtomicString& type, bool canBubble, bool cancelable, const ScriptValue&);
    5049
    5150    SerializedScriptValue* serializedState() const { return m_serializedState.get(); }
  • trunk/Source/WebCore/dom/PopStateEvent.idl

    r96788 r99471  
    3232        CustomConstructor,
    3333    ] 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 
    3934        readonly attribute [CustomGetter] DOMObject state;
    4035    };
Note: See TracChangeset for help on using the changeset viewer.