Chromium Code Reviews| 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(); |
| } |