diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/scroll/scrollable_area.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/scroll/scrollable_area.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/scroll/scrollable_area.h b/chromium/third_party/blink/renderer/core/scroll/scrollable_area.h index 56c34cab314..f0eb978ce51 100644 --- a/chromium/third_party/blink/renderer/core/scroll/scrollable_area.h +++ b/chromium/third_party/blink/renderer/core/scroll/scrollable_area.h @@ -478,7 +478,7 @@ class CORE_EXPORT ScrollableArea : public GarbageCollectedMixin { // for layout movements (bit.ly/scroll-anchoring). virtual bool ShouldPerformScrollAnchoring() const { return false; } - void Trace(Visitor*) override; + void Trace(Visitor*) const override; virtual void ClearScrollableArea(); @@ -551,6 +551,10 @@ class CORE_EXPORT ScrollableArea : public GarbageCollectedMixin { virtual const Document* GetDocument() const; + // Resolves into un-zoomed physical pixels a scroll |delta| based on its + // ScrollGranularity units. + ScrollOffset ResolveScrollDelta(ScrollGranularity, const ScrollOffset& delta); + private: FRIEND_TEST_ALL_PREFIXES(ScrollableAreaTest, PopupOverlayScrollbarShouldNotFadeOut); |