diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-16 11:45:35 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-07-17 08:59:23 +0000 |
commit | 552906b0f222c5d5dd11b9fd73829d510980461a (patch) | |
tree | 3a11e6ed0538a81dd83b20cf3a4783e297f26d91 /chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h | |
parent | 1b05827804eaf047779b597718c03e7d38344261 (diff) | |
download | qtwebengine-chromium-552906b0f222c5d5dd11b9fd73829d510980461a.tar.gz |
BASELINE: Update Chromium to 83.0.4103.122
Change-Id: Ie3a82f5bb0076eec2a7c6a6162326b4301ee291e
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h b/chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h index 27511e15ddc..f8de314f644 100644 --- a/chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h +++ b/chromium/third_party/blink/renderer/core/resize_observer/resize_observer_controller.h @@ -28,29 +28,28 @@ class ResizeObserverController final void AddObserver(ResizeObserver&); // observation API - // Returns depth of shallowest observed node, kDepthLimit if none. - size_t GatherObservations(size_t deeper_than); + // Returns min depth of shallowest observed node, kDepthLimit if none. + size_t GatherObservations(); // Returns true if gatherObservations has skipped observations // because they were too shallow. bool SkippedObservations(); void DeliverObservations(); void ClearObservations(); - void ObserverChanged() { observers_changed_ = true; } - void SetNeedsForcedResizeObservations(); + void ClearMinDepth() { min_depth_ = 0; } - void Trace(blink::Visitor*); + void Trace(Visitor*); // For testing only. - const HeapHashSet<WeakMember<ResizeObserver>>& Observers() { + const HeapLinkedHashSet<WeakMember<ResizeObserver>>& Observers() { return observers_; } private: // Active observers - HeapHashSet<WeakMember<ResizeObserver>> observers_; - // True if any observers were changed since last notification. - bool observers_changed_; + HeapLinkedHashSet<WeakMember<ResizeObserver>> observers_; + // Minimum depth for observations to be active + size_t min_depth_ = 0; }; } // namespace blink |