Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/IntersectionObserverController.h |
| diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverController.h b/third_party/WebKit/Source/core/dom/IntersectionObserverController.h |
| index fe4bb867083354e71b07927c6b454e5d54830c2c..d369aab27389284ac2966a2b88cfe28d864361d7 100644 |
| --- a/third_party/WebKit/Source/core/dom/IntersectionObserverController.h |
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserverController.h |
| @@ -11,13 +11,18 @@ |
| #include "platform/heap/Handle.h" |
| #include "wtf/HashSet.h" |
| +// Design doc for IntersectionObserver implementation: |
| +// https://docs.google.com/a/google.com/document/d/1hLK0eyT5_BzyNS4OkjsnoqqFQDYCbKfyBinj94OnLiQ |
| + |
| namespace blink { |
| -class IntersectionObserverController : public GarbageCollectedFinalized<IntersectionObserverController> { |
| +class IntersectionObserverController : public GarbageCollectedFinalized<IntersectionObserverController>, public ActiveDOMObject { |
| public: |
| - IntersectionObserverController(); |
| + static IntersectionObserverController* create(Document*); |
| ~IntersectionObserverController(); |
| + void resume() override; |
| + |
| void scheduleIntersectionObserverForDelivery(IntersectionObserver&); |
| void deliverIntersectionObservations(Timer<IntersectionObserverController>*); |
| void computeTrackedIntersectionObservations(); |
| @@ -27,14 +32,16 @@ public: |
| DECLARE_TRACE(); |
| private: |
| - // Design doc for IntersectionObserver implementation: |
| - // https://docs.google.com/a/google.com/document/d/1hLK0eyT5_BzyNS4OkjsnoqqFQDYCbKfyBinj94OnLiQ |
| + IntersectionObserverController(Document*); |
|
haraken
2016/01/12 00:43:55
Add explicit.
szager1
2016/01/12 01:03:44
Done.
|
| +private: |
| Timer<IntersectionObserverController> m_timer; |
| // IntersectionObservers for which this is the tracking document. |
| HeapHashSet<WeakMember<IntersectionObserver>> m_trackedIntersectionObservers; |
| // IntersectionObservers for which this is the execution context of the callback. |
| HeapHashSet<Member<IntersectionObserver>> m_pendingIntersectionObservers; |
| + |
| + bool m_timerFiredWhileSuspended; |
| }; |
| } // namespace blink |