Index: third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp b/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
index 52885bb7473c89ef3a5b90d793d020b974ffafb1..c71f4ac5af43cd37a954b9a8318ea9fa213e1884 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
@@ -176,6 +176,9 @@ TEST_F(ScrollableAreaTest, ScrollbarTrackAndThumbRepaint) |
scrollbar->setNeedsPaintInvalidation(); |
EXPECT_FALSE(scrollbar->trackNeedsRepaint()); |
EXPECT_FALSE(scrollbar->thumbNeedsRepaint()); |
+ |
+ // Forced GC in order to finalize objects depending on the mock object. |
+ Heap::collectAllGarbage(); |
jbroman
2015/12/16 12:18:12
The object in question still has a RawPtr<Scrollba
sof
2015/12/16 12:20:38
The GCs performed by this are precise (non-conserv
|
} |
class MockGraphicsLayerClient : public GraphicsLayerClient { |