Changeset 84852 in webkit


Ignore:
Timestamp:
Apr 25, 2011 5:07:41 PM (13 years ago)
Author:
abarth@webkit.org
Message:

2011-04-25 Adam Barth <abarth@webkit.org>

Reviewed by James Robinson.

DOMWindow.cpp should work with strict OwnPtrs
https://bugs.webkit.org/show_bug.cgi?id=59356

  • page/DOMWindow.cpp: (WebCore::PostMessageTimer::fired): (WebCore::DOMWindow::postMessageTimerFired):
  • page/DOMWindow.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84851 r84852  
     12011-04-25  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by James Robinson.
     4
     5        DOMWindow.cpp should work with strict OwnPtrs
     6        https://bugs.webkit.org/show_bug.cgi?id=59356
     7
     8        * page/DOMWindow.cpp:
     9        (WebCore::PostMessageTimer::fired):
     10        (WebCore::DOMWindow::postMessageTimerFired):
     11        * page/DOMWindow.h:
     12
    1132011-04-25  Adam Klein  <adamk@chromium.org>
    214
  • trunk/Source/WebCore/page/DOMWindow.cpp

    r84742 r84852  
    141141    virtual void fired()
    142142    {
    143         m_window->postMessageTimerFired(this);
     143        m_window->postMessageTimerFired(adoptPtr(this));
     144        // This object is deleted now.
    144145    }
    145146
     
    834835}
    835836
    836 void DOMWindow::postMessageTimerFired(PostMessageTimer* t)
     837void DOMWindow::postMessageTimerFired(PassOwnPtr<PostMessageTimer> t)
    837838{
    838839    OwnPtr<PostMessageTimer> timer(t);
  • trunk/Source/WebCore/page/DOMWindow.h

    r84742 r84852  
    229229        // FIXME: remove this when we update the ObjC bindings (bug #28774).
    230230        void postMessage(PassRefPtr<SerializedScriptValue> message, MessagePort*, const String& targetOrigin, DOMWindow* source, ExceptionCode&);
    231         void postMessageTimerFired(PostMessageTimer*);
     231        void postMessageTimerFired(PassOwnPtr<PostMessageTimer>);
    232232
    233233        void scrollBy(int x, int y) const;
Note: See TracChangeset for help on using the changeset viewer.