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) |