| 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 4847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4858 $code .= <<END; | 4858 $code .= <<END; |
| 4859 v8::Handle<v8::Object> wrapper = ${v8ClassName}::createWrapper(impl, creatio
nContext, isolate); | 4859 v8::Handle<v8::Object> wrapper = ${v8ClassName}::createWrapper(impl, creatio
nContext, isolate); |
| 4860 END | 4860 END |
| 4861 if ($isDocument) { | 4861 if ($isDocument) { |
| 4862 AddToImplIncludes("bindings/v8/V8WindowShell.h"); | 4862 AddToImplIncludes("bindings/v8/V8WindowShell.h"); |
| 4863 $code .= <<END; | 4863 $code .= <<END; |
| 4864 if (wrapper.IsEmpty()) | 4864 if (wrapper.IsEmpty()) |
| 4865 return wrapper; | 4865 return wrapper; |
| 4866 if (!isolatedWorldForEnteredContext()) { | 4866 if (!isolatedWorldForEnteredContext()) { |
| 4867 if (Frame* frame = impl->frame()) | 4867 if (Frame* frame = impl->frame()) |
| 4868 frame->script()->windowShell(mainThreadNormalWorld())->updateDocumen
tWrapper(wrapper); | 4868 frame->script().windowShell(mainThreadNormalWorld())->updateDocument
Wrapper(wrapper); |
| 4869 } | 4869 } |
| 4870 END | 4870 END |
| 4871 } | 4871 } |
| 4872 $code .= <<END; | 4872 $code .= <<END; |
| 4873 return wrapper; | 4873 return wrapper; |
| 4874 } | 4874 } |
| 4875 | 4875 |
| 4876 END | 4876 END |
| 4877 $implementation{nameSpaceWebCore}->add($code); | 4877 $implementation{nameSpaceWebCore}->add($code); |
| 4878 } | 4878 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4921 | 4921 |
| 4922 END | 4922 END |
| 4923 | 4923 |
| 4924 $code .= <<END if ($baseType ne $interfaceName); | 4924 $code .= <<END if ($baseType ne $interfaceName); |
| 4925 END | 4925 END |
| 4926 | 4926 |
| 4927 if (InheritsInterface($interface, "Document")) { | 4927 if (InheritsInterface($interface, "Document")) { |
| 4928 AddToImplIncludes("core/frame/Frame.h"); | 4928 AddToImplIncludes("core/frame/Frame.h"); |
| 4929 $code .= <<END; | 4929 $code .= <<END; |
| 4930 if (Frame* frame = impl->frame()) { | 4930 if (Frame* frame = impl->frame()) { |
| 4931 if (frame->script()->initializeMainWorld()) { | 4931 if (frame->script().initializeMainWorld()) { |
| 4932 // initializeMainWorld may have created a wrapper for the object, re
try from the start. | 4932 // initializeMainWorld may have created a wrapper for the object, re
try from the start. |
| 4933 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapper<${v8ClassN
ame}>(impl.get(), isolate); | 4933 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapper<${v8ClassN
ame}>(impl.get(), isolate); |
| 4934 if (!wrapper.IsEmpty()) | 4934 if (!wrapper.IsEmpty()) |
| 4935 return wrapper; | 4935 return wrapper; |
| 4936 } | 4936 } |
| 4937 } | 4937 } |
| 4938 END | 4938 END |
| 4939 } | 4939 } |
| 4940 | 4940 |
| 4941 $code .= <<END; | 4941 $code .= <<END; |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6194 my $interface = shift; | 6194 my $interface = shift; |
| 6195 | 6195 |
| 6196 return 1 if $interface->extendedAttributes->{"CustomToV8"}; | 6196 return 1 if $interface->extendedAttributes->{"CustomToV8"}; |
| 6197 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; | 6197 return 1 if $interface->extendedAttributes->{"SpecialWrapFor"}; |
| 6198 return 1 if InheritsInterface($interface, "Document"); | 6198 return 1 if InheritsInterface($interface, "Document"); |
| 6199 | 6199 |
| 6200 return 0; | 6200 return 0; |
| 6201 } | 6201 } |
| 6202 | 6202 |
| 6203 1; | 6203 1; |
| OLD | NEW |