From 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Tue, 11 Aug 2009 17:01:47 +0100 Subject: Merge in WebKit r47029. --- WebCore/bindings/js/JSSVGElementInstanceCustom.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'WebCore/bindings/js/JSSVGElementInstanceCustom.cpp') diff --git a/WebCore/bindings/js/JSSVGElementInstanceCustom.cpp b/WebCore/bindings/js/JSSVGElementInstanceCustom.cpp index 2922740..6e77f9b 100644 --- a/WebCore/bindings/js/JSSVGElementInstanceCustom.cpp +++ b/WebCore/bindings/js/JSSVGElementInstanceCustom.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2008 Nikolas Zimmermann + * Copyright (C) 2009 Apple, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -37,14 +38,14 @@ using namespace JSC; namespace WebCore { -void JSSVGElementInstance::mark() +void JSSVGElementInstance::markChildren(MarkStack& markStack) { - DOMObject::mark(); + Base::markChildren(markStack); // Mark the wrapper for our corresponding element, so it can mark its event handlers. JSNode* correspondingWrapper = getCachedDOMNodeWrapper(impl()->correspondingElement()->document(), impl()->correspondingElement()); - if (correspondingWrapper && !correspondingWrapper->marked()) - correspondingWrapper->mark(); + if (correspondingWrapper) + markStack.append(correspondingWrapper); } JSValue JSSVGElementInstance::addEventListener(ExecState* exec, const ArgList& args) @@ -75,9 +76,9 @@ void JSSVGElementInstance::pushEventHandlerScope(ExecState*, ScopeChain&) const { } -JSC::JSValue toJS(JSC::ExecState* exec, SVGElementInstance* object) +JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, SVGElementInstance* object) { - JSValue result = getDOMObjectWrapper(exec, object); + JSValue result = getDOMObjectWrapper(exec, globalObject, object); // Ensure that our corresponding element has a JavaScript wrapper to keep its event handlers alive. if (object) -- cgit v1.1