Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1037)

Unified Diff: Source/core/frame/FrameView.cpp

Issue 819953002: Mac: Update scrollbar size and input position during impl-overscroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Peure virtual Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/platform/exported/WebScrollbarImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 7a0ece3d6d78e04468e4e4c8f0377f5de92733f8..4e0a8b6c27a8aef1fca3ec27b151dace782b7ec1 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -1562,6 +1562,21 @@ void FrameView::setScrollPositionNonProgrammatically(const IntPoint& scrollPoint
notifyScrollPositionChanged(newScrollPosition);
}
+void FrameView::setElasticOverscroll(const FloatSize& elasticOverscroll)
+{
+ m_elasticOverscroll = elasticOverscroll;
+ if (m_horizontalScrollbar && m_horizontalScrollbar->elasticOverscroll() != elasticOverscroll.width()) {
+ m_horizontalScrollbar->setElasticOverscroll(elasticOverscroll.width());
+ if (!m_scrollbarsSuppressed)
+ m_horizontalScrollbar->invalidate();
+ }
+ if (m_verticalScrollbar && m_verticalScrollbar->elasticOverscroll() != elasticOverscroll.width()) {
+ m_verticalScrollbar->setElasticOverscroll(elasticOverscroll.width());
+ if (!m_scrollbarsSuppressed)
+ m_verticalScrollbar->invalidate();
+ }
+}
+
IntSize FrameView::layoutSize(IncludeScrollbarsInRect scrollbarInclusion) const
{
return scrollbarInclusion == ExcludeScrollbars ? excludeScrollbars(m_layoutSize) : m_layoutSize;
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/platform/exported/WebScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698