OLD | NEW |
1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 1 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> | 2 # Copyright (C) 2006 Anders Carlsson <andersca@mac.com> |
3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 # Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> | 4 # Copyright (C) 2006 Alexey Proskuryakov <ap@webkit.org> |
5 # Copyright (C) 2006 Apple Computer, Inc. | 5 # Copyright (C) 2006 Apple Computer, Inc. |
6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. | 6 # Copyright (C) 2007, 2008, 2009, 2012 Google Inc. |
7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 7 # Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. | 8 # Copyright (C) Research In Motion Limited 2010. All rights reserved. |
9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 # Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 # Copyright (C) 2012 Ericsson AB. All rights reserved. | 10 # Copyright (C) 2012 Ericsson AB. All rights reserved. |
(...skipping 2173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2184 return; | 2184 return; |
2185 | 2185 |
2186 if (!window->document()) | 2186 if (!window->document()) |
2187 return; | 2187 return; |
2188 } | 2188 } |
2189 | 2189 |
2190 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(args[
1], false, ListenerFind${lookupType}); | 2190 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(args[
1], false, ListenerFind${lookupType}); |
2191 if (listener) { | 2191 if (listener) { |
2192 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st
ringResource, args[0]); | 2192 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st
ringResource, args[0]); |
2193 impl->${implName}(stringResource, listener${passRefPtrHandling}, args[2]
->BooleanValue()); | 2193 impl->${implName}(stringResource, listener${passRefPtrHandling}, args[2]
->BooleanValue()); |
2194 END | 2194 if (!impl->toNode()) |
2195 if (!InheritsInterface($interface, "Node")) { | 2195 ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${
v8ClassName}::eventListenerCacheIndex, args.GetIsolate()); |
2196 $code .= <<END; | |
2197 ${hiddenDependencyAction}HiddenDependency(args.Holder(), args[1], ${v8Cl
assName}::eventListenerCacheIndex, args.GetIsolate()); | |
2198 END | |
2199 } | |
2200 $code .= <<END; | |
2201 } | 2196 } |
2202 } | 2197 } |
2203 | 2198 |
2204 END | 2199 END |
2205 $code .= "#endif // ${conditionalString}\n\n" if $conditionalString; | 2200 $code .= "#endif // ${conditionalString}\n\n" if $conditionalString; |
2206 $implementation{nameSpaceInternal}->add($code); | 2201 $implementation{nameSpaceInternal}->add($code); |
2207 return; | 2202 return; |
2208 } | 2203 } |
2209 | 2204 |
2210 $code .= GenerateArgumentsCountCheck($function, $interface); | 2205 $code .= GenerateArgumentsCountCheck($function, $interface); |
(...skipping 3873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6084 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { | 6079 if ($currentInterface->extendedAttributes->{$extendedAttribute}) { |
6085 $found = 1; | 6080 $found = 1; |
6086 } | 6081 } |
6087 return 1 if $found; | 6082 return 1 if $found; |
6088 }, 0); | 6083 }, 0); |
6089 | 6084 |
6090 return $found; | 6085 return $found; |
6091 } | 6086 } |
6092 | 6087 |
6093 1; | 6088 1; |
OLD | NEW |