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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp

Issue 1749383002: Eliminate uncalled will___LiveResize and inLiveResize from RenderViewImpl through WebWidget down to… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months 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
Index: third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
index 250f367fa21b335a07803e0e95c4c3c8ce90180e..0e99734674564315d55f5d054858109842686ce6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp
@@ -80,8 +80,7 @@ int ScrollableArea::maxOverlapBetweenPages()
}
ScrollableArea::ScrollableArea()
- : m_inLiveResize(false)
- , m_scrollbarOverlayStyle(ScrollbarOverlayStyleDefault)
+ : m_scrollbarOverlayStyle(ScrollbarOverlayStyleDefault)
, m_scrollOriginChanged(false)
, m_horizontalScrollbarNeedsPaintInvalidation(false)
, m_verticalScrollbarNeedsPaintInvalidation(false)
@@ -292,24 +291,6 @@ void ScrollableArea::setScrollOffsetFromInternals(const IntPoint& offset)
scrollPositionChanged(DoublePoint(offset), ProgrammaticScroll);
}
-void ScrollableArea::willStartLiveResize()
-{
- if (m_inLiveResize)
- return;
- m_inLiveResize = true;
- if (ScrollAnimatorBase* scrollAnimator = existingScrollAnimator())
- scrollAnimator->willStartLiveResize();
-}
-
-void ScrollableArea::willEndLiveResize()
-{
- if (!m_inLiveResize)
- return;
- m_inLiveResize = false;
- if (ScrollAnimatorBase* scrollAnimator = existingScrollAnimator())
- scrollAnimator->willEndLiveResize();
-}
-
void ScrollableArea::contentAreaWillPaint() const
{
if (ScrollAnimatorBase* scrollAnimator = existingScrollAnimator())

Powered by Google App Engine
This is Rietveld 408576698