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

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

Issue 2133603002: Fix crash when removing contents from a document having multiple bodies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle LayoutScrollbarPart aliveness Created 4 years, 5 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/LayoutScrollbarPart.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
index 0c674bbeb09f366577107465f680b695e616bb91..0c3d5bc85f7e28fafec70f781e9fc2d81d6f5829 100644
--- a/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutScrollbarPart.cpp
@@ -45,6 +45,11 @@ LayoutScrollbarPart::LayoutScrollbarPart(ScrollableArea* scrollableArea, LayoutS
LayoutScrollbarPart::~LayoutScrollbarPart()
{
+#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS
+ // We may not have invalidated the painting layer for now, but the
+ // scrollable area will invalidate during paint invalidation.
+ endShouldKeepAlive();
+#endif
}
static void recordScrollbarPartStats(Document& document, ScrollbarPart part)

Powered by Google App Engine
This is Rietveld 408576698