Chromium Code Reviews| 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 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2301 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); | 2301 AddToImplIncludes("bindings/v8/V8EventListenerList.h"); |
| 2302 AddToImplIncludes("core/frame/DOMWindow.h"); | 2302 AddToImplIncludes("core/frame/DOMWindow.h"); |
| 2303 $code .= <<END; | 2303 $code .= <<END; |
| 2304 EventTarget* impl = ${v8ClassName}::toNative(info.Holder()); | 2304 EventTarget* impl = ${v8ClassName}::toNative(info.Holder()); |
| 2305 if (DOMWindow* window = impl->toDOMWindow()) { | 2305 if (DOMWindow* window = impl->toDOMWindow()) { |
| 2306 ExceptionState es(info.GetIsolate()); | 2306 ExceptionState es(info.GetIsolate()); |
| 2307 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { | 2307 if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) { |
| 2308 es.throwIfNeeded(); | 2308 es.throwIfNeeded(); |
| 2309 return; | 2309 return; |
| 2310 } | 2310 } |
| 2311 | |
|
Nils Barth (inactive)
2013/11/13 06:16:00
Blank lines causes problems in Python when we inde
| |
| 2312 if (!window->document()) | 2311 if (!window->document()) |
| 2313 return; | 2312 return; |
| 2314 } | 2313 } |
| 2315 | |
| 2316 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFind${lookupType}); | 2314 RefPtr<EventListener> listener = V8EventListenerList::getEventListener(info[ 1], false, ListenerFind${lookupType}); |
| 2317 if (listener) { | 2315 if (listener) { |
| 2318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st ringResource, info[0]); | 2316 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, st ringResource, info[0]); |
| 2319 impl->${implName}(stringResource, listener${passRefPtrHandling}, info[2] ->BooleanValue()); | 2317 impl->${implName}(stringResource, listener${passRefPtrHandling}, info[2] ->BooleanValue()); |
| 2320 if (!impl->toNode()) | 2318 if (!impl->toNode()) |
| 2321 ${hiddenDependencyAction}HiddenDependency(info.Holder(), info[1], ${ v8ClassName}::eventListenerCacheIndex, info.GetIsolate()); | 2319 ${hiddenDependencyAction}HiddenDependency(info.Holder(), info[1], ${ v8ClassName}::eventListenerCacheIndex, info.GetIsolate()); |
| 2322 } | 2320 } |
| 2323 } | 2321 } |
| 2324 END | 2322 END |
| 2325 $code .= "#endif // ${conditionalString}\n" if $conditionalString; | 2323 $code .= "#endif // ${conditionalString}\n" if $conditionalString; |
| (...skipping 3965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6291 | 6289 |
| 6292 return 1 if $interface->extendedAttributes->{"CustomToV8"}; | 6290 return 1 if $interface->extendedAttributes->{"CustomToV8"}; |
| 6293 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; | 6291 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; |
| 6294 return 1 if InheritsInterface($interface, "Document"); | 6292 return 1 if InheritsInterface($interface, "Document"); |
| 6295 return 1 if SVGTypeNeedsToHoldContextElement($interface->name); | 6293 return 1 if SVGTypeNeedsToHoldContextElement($interface->name); |
| 6296 | 6294 |
| 6297 return 0; | 6295 return 0; |
| 6298 } | 6296 } |
| 6299 | 6297 |
| 6300 1; | 6298 1; |
| OLD | NEW |