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

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

Issue 2004343002: Remove unwanted copyToVector() uses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused typedef Created 4 years, 7 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/IntersectionObserverController.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
index f2b5866415c6c419be787c827f478348ab877ffa..29959e6d8825017451a2f72f8282fe715ea3fe39 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
@@ -9,8 +9,6 @@
namespace blink {
-typedef HeapVector<Member<IntersectionObserver>> IntersectionObserverVector;
sof 2016/05/24 07:16:32 now unused, forgot to remove this in ps#1.
-
IntersectionObserverController* IntersectionObserverController::create(Document* document)
{
IntersectionObserverController* result = new IntersectionObserverController(document);
@@ -64,9 +62,8 @@ void IntersectionObserverController::deliverIntersectionObservations()
m_callbackFiredWhileSuspended = true;
return;
}
- IntersectionObserverVector observers;
- copyToVector(m_pendingIntersectionObservers, observers);
- m_pendingIntersectionObservers.clear();
+ HeapHashSet<Member<IntersectionObserver>> observers;
+ m_pendingIntersectionObservers.swap(observers);
for (auto& observer : observers)
observer->deliver();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698