| Index: third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.h b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| index cfccf152a5c5754ad6d7b8d4f77656aff5159db4..b1e5142abb632ea7347d883bcffa13d6f31523e0 100644
|
| --- a/third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.h
|
| @@ -59,6 +59,11 @@ public:
|
| bool hasEntries() const { return m_entries.size(); }
|
| const HeapLinkedHashSet<WeakMember<IntersectionObservation>>& observations() const { return m_observations; }
|
|
|
| + // A low latency intersection observer delivers events with an immediately
|
| + // posted task instead of waiting for an idle period (or up to 100ms).
|
| + void setLowLatency(bool lowLatency) { m_lowLatency = lowLatency; }
|
| + bool lowLatency() const { return m_lowLatency; }
|
| +
|
| DECLARE_TRACE();
|
|
|
| private:
|
| @@ -74,6 +79,7 @@ private:
|
| Length m_rightMargin;
|
| Length m_bottomMargin;
|
| Length m_leftMargin;
|
| + bool m_lowLatency;
|
| };
|
|
|
| } // namespace blink
|
|
|