From 51e4bbbdb98e2d68fc805852dc575b610b16e2ea Mon Sep 17 00:00:00 2001 From: "mbelshe@google.com" Date: Fri, 3 Oct 2008 19:24:46 +0000 Subject: use PassRefPtr for event creation rather than naked pointers. Review URL: http://codereview.chromium.org/6454 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2842 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/pending/ScriptController.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webkit/pending') diff --git a/webkit/pending/ScriptController.h b/webkit/pending/ScriptController.h index 1f72796..b03ae99 100644 --- a/webkit/pending/ScriptController.h +++ b/webkit/pending/ScriptController.h @@ -182,9 +182,9 @@ public: void disposeJSResult(JSResult result); void collectGarbage(); - EventListener* createHTMLEventHandler(const String& functionName, const String& code, Node*); + PassRefPtr createHTMLEventHandler(const String& functionName, const String& code, Node*); #if ENABLE(SVG) - EventListener* createSVGEventHandler(const String& functionName, const String& code, Node*); + PassRefPtr createSVGEventHandler(const String& functionName, const String& code, Node*); #endif // Get the Root object -- cgit v1.1