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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.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/custom/V8IntersectionObserverCustom.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp b/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp
index 58aad44e4fd8383319a0ed23c2650d702871389f..10b52be1839a21cb013ef283580c034d5763cca4 100644
--- a/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/custom/V8IntersectionObserverCustom.cpp
@@ -60,20 +60,4 @@ void V8IntersectionObserver::constructorCustom(
info.GetIsolate(), observer, &wrapperTypeInfo, wrapper));
}
-void V8IntersectionObserver::visitDOMWrapperCustom(
- v8::Isolate* isolate,
- ScriptWrappable* scriptWrappable,
- const v8::Persistent<v8::Object>& wrapper) {
- IntersectionObserver* observer =
- scriptWrappable->toImpl<IntersectionObserver>();
- for (auto& observation : observer->observations()) {
- Element* target = observation->target();
- if (!target)
- continue;
- v8::UniqueId id(reinterpret_cast<intptr_t>(
- V8GCController::opaqueRootForGC(isolate, target)));
- isolate->SetReferenceFromGroup(id, wrapper);
- }
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698