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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/modules/V8TestInterface5.cpp
diff --git a/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
index 21a9f110ac0792ce4bdf75131898953e0ff0fc5e..3a161ed006ece3a518f561bb4aeda2555a6f7d8a 100644
--- a/Source/bindings/tests/results/modules/V8TestInterface5.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterface5.cpp
@@ -910,9 +910,8 @@ void V8TestInterface5::visitDOMWrapper(v8::Isolate* isolate, ScriptWrappable* sc
V8WrapperInstantiationScope scope(creationContext, isolate);
TestInterface5Implementation* referencedName = impl->referencedName();
if (referencedName) {
- if (!DOMDataStore::containsWrapper(referencedName, isolate))
- referencedName->wrap(isolate, creationContext);
- DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
+ if (DOMDataStore::containsWrapper(referencedName, isolate))
+ DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
}
}
« 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