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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2066603005: Check DisplayItemCient aliveness in cached subsequences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check DisplayItemCient aliveness in cached subsequences Created 4 years, 6 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/core/layout/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index 328f526b78a7372bf9597917619db1abcf696633..badaf8ba989625a06b757b2778e97727d286676d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -961,6 +961,12 @@ void LayoutView::setIsInWindow(bool isInWindow)
{
if (m_compositor)
m_compositor->setIsInWindow(isInWindow);
+#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
+ // We don't invalidate layers during document detach(), so must clear the should-keep-alive
chrishtr 2016/06/18 08:49:57 Does this need to be true any more now that we use
Xianzhu 2016/06/18 17:41:30 This doesn't affect cache correctness, but is only
+ // DisplayItemClients which may be deleted before the layers being subsequence owners.
+ if (!isInWindow && layer())
+ layer()->endShouldKeepAliveAllClientsRecursive();
+#endif
}
IntervalArena* LayoutView::intervalArena()

Powered by Google App Engine
This is Rietveld 408576698