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

Unified Diff: content/renderer/render_view_impl.cc

Issue 11776010: overscroll: Take a screenshot at more appropriate times. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 37d1011dc930132ba83deb303b2f85c65398c999..47c606f14d62df895d100fabe0f4ff6aaf9de84a 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -5447,6 +5447,10 @@ void RenderViewImpl::OnSwapOut(const ViewMsg_SwapOut_Params& params) {
// Synchronously run the unload handler before sending the ACK.
webview()->dispatchUnloadEvent();
+ // Mark the view as hidden, to make sure that it does not erase the paint
+ // contents.
+ SetHidden(true);
Charlie Reis 2013/01/09 00:49:23 Interesting. This looks similar to the setVisibil
sadrul 2013/01/09 17:44:19 I moved the call to setVisibilityState up here. S
+
// Swap out and stop sending any IPC messages that are not ACKs.
SetSwappedOut(true);

Powered by Google App Engine
This is Rietveld 408576698