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

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

Issue 138163004: Remove m_shouldUpdateWhileOffscreen member from FrameView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | no next file » | 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 c3a1d37dfc5faa078a5eb204cb939bee4247a18b..0a3a4a9fc5dc8cd773c01a62034bce5e98e58456 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -173,7 +173,6 @@ FrameView::FrameView(Frame* frame)
, m_safeToPropagateScrollToParent(true)
, m_deferredRepaintTimer(this, &FrameView::deferredRepaintTimerFired)
, m_isTrackingRepaints(false)
- , m_shouldUpdateWhileOffscreen(true)
, m_scrollCorner(0)
, m_shouldAutoSize(false)
, m_inAutoSize(false)
@@ -1805,9 +1804,6 @@ void FrameView::repaintContentRectangle(const IntRect& r)
return;
}
- if (!shouldUpdate())
- return;
-
ScrollView::repaintContentRectangle(r);
}
@@ -1873,11 +1869,6 @@ void FrameView::flushDeferredRepaints()
void FrameView::doDeferredRepaints()
{
- if (!shouldUpdate()) {
- m_repaintRects.clear();
- m_repaintCount = 0;
- return;
- }
unsigned size = m_repaintRects.size();
for (unsigned i = 0; i < size; i++) {
ScrollView::repaintContentRectangle(pixelSnappedIntRect(m_repaintRects[i]));
@@ -2120,23 +2111,6 @@ void FrameView::updateBackgroundRecursively(const Color& backgroundColor, bool t
}
}
-bool FrameView::shouldUpdateWhileOffscreen() const
-{
- return m_shouldUpdateWhileOffscreen;
-}
-
-void FrameView::setShouldUpdateWhileOffscreen(bool shouldUpdateWhileOffscreen)
-{
- m_shouldUpdateWhileOffscreen = shouldUpdateWhileOffscreen;
-}
-
-bool FrameView::shouldUpdate() const
-{
- if (isOffscreen() && !shouldUpdateWhileOffscreen())
- return false;
- return true;
-}
-
void FrameView::scrollToAnchor()
{
RefPtr<Node> anchorNode = m_maintainScrollPositionAnchor;
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698