Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 1221193004: Bindings: visitDOMWrapper should not create a new wrapper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 903
904 } // namespace TestInterface5ImplementationV8Internal 904 } // namespace TestInterface5ImplementationV8Internal
905 905
906 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper) 906 void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc riptWrappable, const v8::Persistent<v8::Object>& wrapper)
907 { 907 {
908 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>(); 908 TestInterface5Implementation* impl = scriptWrappable->toImpl<TestInterface5I mplementation>();
909 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper); 909 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate, wrapper);
910 V8WrapperInstantiationScope scope(creationContext, isolate); 910 V8WrapperInstantiationScope scope(creationContext, isolate);
911 TestInterface5Implementation* referencedName = impl->referencedName(); 911 TestInterface5Implementation* referencedName = impl->referencedName();
912 if (referencedName) { 912 if (referencedName) {
913 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 913 if (DOMDataStore::containsWrapper(referencedName, isolate))
914 referencedName->wrap(isolate, creationContext); 914 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
915 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
916 } 915 }
917 } 916 }
918 917
919 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 918 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
920 // and does not depend on another global objects. 919 // and does not depend on another global objects.
921 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 920 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
922 #pragma clang diagnostic push 921 #pragma clang diagnostic push
923 #pragma clang diagnostic ignored "-Wglobal-constructors" 922 #pragma clang diagnostic ignored "-Wglobal-constructors"
924 #endif 923 #endif
925 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut es[] = { 924 static const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attribut es[] = {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 1073 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
1075 } 1074 }
1076 1075
1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 1076 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
1078 { 1077 {
1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 1078 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
1080 } 1079 }
1081 1080
1082 } // namespace blink 1081 } // namespace blink
1083 #endif // ENABLE(CONDITION) 1082 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698