⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 99780 in webkit


Ignore:
Timestamp:
Nov 9, 2011, 4:11:52 PM (15 years ago)
Author:
dominicc@chromium.org
Message:

Remove WebGLContextEvent.initEvent method
https://bugs.webkit.org/show_bug.cgi?id=71720

Reviewed by Adam Barth.

The WebGL spec calls this method initWebGLContextEvent, but it may
adopt a constructor instead. Deleting the initEvent method for now
since it is definitely wrong and we don't want people to come to
depend on it.

No new tests--removing untested code.

  • html/canvas/WebGLContextEvent.cpp:
  • html/canvas/WebGLContextEvent.h:
  • html/canvas/WebGLContextEvent.idl:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r99778 r99780  
     12011-11-09  Dominic Cooney  <dominicc@chromium.org>
     2
     3        Remove WebGLContextEvent.initEvent method
     4        https://bugs.webkit.org/show_bug.cgi?id=71720
     5
     6        Reviewed by Adam Barth.
     7
     8        The WebGL spec calls this method initWebGLContextEvent, but it may
     9        adopt a constructor instead. Deleting the initEvent method for now
     10        since it is definitely wrong and we don't want people to come to
     11        depend on it.
     12
     13        No new tests--removing untested code.
     14
     15        * html/canvas/WebGLContextEvent.cpp:
     16        * html/canvas/WebGLContextEvent.h:
     17        * html/canvas/WebGLContextEvent.idl:
     18
    1192011-11-09  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/Source/WebCore/html/canvas/WebGLContextEvent.cpp

    r98044 r99780  
    4545}
    4646
    47 void WebGLContextEvent::initEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage)
    48 {
    49     if (dispatched())
    50         return;
    51 
    52     Event::initEvent(type, canBubble, cancelable);
    53     m_statusMessage = statusMessage;
    54 }
    55 
    5647const AtomicString& WebGLContextEvent::interfaceName() const
    5748{
  • trunk/Source/WebCore/html/canvas/WebGLContextEvent.h

    r98044 r99780  
    4343    virtual ~WebGLContextEvent();
    4444
    45     void initEvent(const AtomicString& type, bool canBubble, bool cancelable, const String& statusMessage);
    46 
    4745    const String& statusMessage() const { return m_statusMessage; }
    4846
  • trunk/Source/WebCore/html/canvas/WebGLContextEvent.idl

    r91617 r99780  
    2929    ] WebGLContextEvent : Event {
    3030        readonly attribute DOMString statusMessage;
    31         [StrictTypeChecking] void initEvent(in [Optional=CallWithDefaultValue] DOMString eventTypeArg,
    32                                             in [Optional=CallWithDefaultValue] boolean canBubbleArg,
    33                                             in [Optional=CallWithDefaultValue] boolean cancelableArg,
    34                                             in [Optional=CallWithDefaultValue] DOMString statusMessageArg);
    3531    };
    3632}
Note: See TracChangeset for help on using the changeset viewer.