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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp

Issue 2671553003: Remove uses of VisitDOMWrapper (Closed)
Patch Set: Add DependentLifetime when removing Custom=VisitDOMWrapper Created 3 years, 10 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
Index: third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
index c92eb5f0e1ffdd7e3564d6acc47e2aeb0730faf1..deddf297dd8f0a8fd57a36f03300a850dac26970 100644
--- a/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/DOMWrapperWorld.cpp
@@ -161,27 +161,6 @@ void DOMWrapperWorld::markWrappersInAllWorlds(
}
}
-void DOMWrapperWorld::setWrapperReferencesInAllWorlds(
- const v8::Persistent<v8::Object>& parent,
- ScriptWrappable* scriptWrappable,
- v8::Isolate* isolate) {
- if (!scriptWrappable)
- return;
- // Marking for the main world
- if (scriptWrappable->containsWrapper())
- scriptWrappable->setReference(parent, isolate);
- if (!isMainThread())
- return;
- WorldMap& isolatedWorlds = isolatedWorldMap();
- for (auto& world : isolatedWorlds.values()) {
- DOMDataStore& dataStore = world->domDataStore();
- if (dataStore.containsWrapper(scriptWrappable)) {
- // Marking for the isolated worlds
- dataStore.setReference(parent, scriptWrappable, isolate);
- }
- }
-}
-
DOMWrapperWorld::~DOMWrapperWorld() {
ASSERT(!isMainWorld());

Powered by Google App Engine
This is Rietveld 408576698