Changeset 24719 in webkit


Ignore:
Timestamp:
Jul 27, 2007 4:59:09 AM (17 years ago)
Author:
bdash
Message:

2007-07-27 Patrick Hanna <phanna@email.unc.edu>

Reviewed by Darin Adler.

Change PluginBase::refresh to be static and update PluginsFunc::callAsFunction accordingly. Now we no longer
allocate an instance of a JSObject subclass on the stack which could lead to a crash during garbage collection.

  • bindings/js/kjs_navigator.cpp: (KJS::PluginsFunc::callAsFunction):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r24717 r24719  
     12007-07-27  Patrick Hanna  <phanna@email.unc.edu>
     2
     3        Reviewed by Darin Adler.
     4
     5        Change PluginBase::refresh to be static and update PluginsFunc::callAsFunction accordingly. Now we no longer
     6        allocate an instance of a JSObject subclass on the stack which could lead to a crash during garbage collection.
     7
     8        * bindings/js/kjs_navigator.cpp:
     9        (KJS::PluginsFunc::callAsFunction):
     10
    1112007-07-27  Simon Hausmann  <hausmann@kde.org>
    212
  • trunk/WebCore/bindings/js/kjs_navigator.cpp

    r21749 r24719  
    7272        virtual ~PluginBase();
    7373       
    74         void refresh(bool reload);
     74        static void refresh(bool reload);
    7575
    7676    protected:
     
    535535JSValue *PluginsFunc::callAsFunction(ExecState *exec, JSObject *, const List &args)
    536536{
    537     PluginBase(exec).refresh(args[0]->toBoolean(exec));
     537    PluginBase::refresh(args[0]->toBoolean(exec));
    538538    return jsUndefined();
    539539}
Note: See TracChangeset for help on using the changeset viewer.