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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfacePython2.cpp

Issue 181513002: Kill [SetWrapperReferenceFromReference] IDL extended attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 namespace TestInterfacePython2V8Internal { 74 namespace TestInterfacePython2V8Internal {
75 75
76 template <typename T> void V8_USE(T) { } 76 template <typename T> void V8_USE(T) { }
77 77
78 } // namespace TestInterfacePython2V8Internal 78 } // namespace TestInterfacePython2V8Internal
79 79
80 void V8TestInterfacePython2::visitDOMWrapper(void* object, const v8::Persistent< v8::Object>& wrapper, v8::Isolate* isolate) 80 void V8TestInterfacePython2::visitDOMWrapper(void* object, const v8::Persistent< v8::Object>& wrapper, v8::Isolate* isolate)
81 { 81 {
82 TestInterfacePython2* impl = fromInternalPointer(object); 82 TestInterfacePython2* impl = fromInternalPointer(object);
83 if (Node* owner = impl->ownerNode()) { 83 // The ownerNode() method may return a reference or a pointer.
84 if (Node* owner = WTF::getPtr(impl->ownerNode())) {
84 Node* root = V8GCController::opaqueRootForGC(owner, isolate); 85 Node* root = V8GCController::opaqueRootForGC(owner, isolate);
85 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r oot)), wrapper); 86 isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(r oot)), wrapper);
86 return; 87 return;
87 } 88 }
88 setObjectGroup(object, wrapper, isolate); 89 setObjectGroup(object, wrapper, isolate);
89 } 90 }
90 91
91 static void configureV8TestInterfacePython2Template(v8::Handle<v8::FunctionTempl ate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType) 92 static void configureV8TestInterfacePython2Template(v8::Handle<v8::FunctionTempl ate> functionTemplate, v8::Isolate* isolate, WrapperWorldType currentWorldType)
92 { 93 {
93 functionTemplate->ReadOnlyPrototype(); 94 functionTemplate->ReadOnlyPrototype();
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 fromInternalPointer(object)->deref(); 171 fromInternalPointer(object)->deref();
171 } 172 }
172 173
173 template<> 174 template<>
174 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 175 v8::Handle<v8::Value> toV8NoInline(TestInterfacePython2* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
175 { 176 {
176 return toV8(impl, creationContext, isolate); 177 return toV8(impl, creationContext, isolate);
177 } 178 }
178 179
179 } // namespace WebCore 180 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698