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

Unified Diff: third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp

Issue 1870963002: Clean up CompositorPendingAnimations inclusion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/core/dom/NodeIntersectionObserverData.cpp
diff --git a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp b/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
index 3bb8616ec8f84bd4dbccd34b8d16bd9eba44de1e..72e42ed7ca4206bce94ac99c1188b92e4467e522 100644
--- a/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
+++ b/third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.cpp
@@ -45,30 +45,6 @@ void NodeIntersectionObserverData::deactivateAllIntersectionObservers(Node& node
node.document().ensureIntersectionObserverController().removeTrackedObserversForRoot(node);
}
-#if !ENABLE(OILPAN)
-void NodeIntersectionObserverData::dispose()
-{
- HeapVector<Member<IntersectionObserver>> observersToDisconnect;
- copyToVector(m_intersectionObservers, observersToDisconnect);
- for (auto& observer : observersToDisconnect)
- observer->disconnect();
- DCHECK(m_intersectionObservers.isEmpty());
-}
-#endif
-
-RawPtr<Node> NodeIntersectionObserverData::createWeakPtr(Node* node)
-{
-#if ENABLE(OILPAN)
- return node;
-#else
- if (!m_weakPointerFactory)
- m_weakPointerFactory = new WeakPtrFactory<Node>(node);
- WeakPtr<Node> result = m_weakPointerFactory->createWeakPtr();
- DCHECK_EQ(result.get(), node);
- return result;
-#endif
-}
-
DEFINE_TRACE(NodeIntersectionObserverData)
{
visitor->trace(m_intersectionObservers);
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeIntersectionObserverData.h ('k') | third_party/WebKit/Source/core/dom/NodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698