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 8d079f6f34083282fec2d59fe6c859b675af797f..bcaab58e084dee563fe247b7fe74b66f3c75b24a 100644 |
--- a/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp |
@@ -74,7 +74,7 @@ TEST_F(ScrollableAreaTest, ScrollbarTrackAndThumbRepaint) |
EXPECT_TRUE(scrollbar->thumbNeedsRepaint()); |
// Forced GC in order to finalize objects depending on the mock object. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
} |
TEST_F(ScrollableAreaTest, ScrollbarGraphicsLayerInvalidation) |
@@ -95,7 +95,7 @@ TEST_F(ScrollableAreaTest, ScrollbarGraphicsLayerInvalidation) |
EXPECT_TRUE(graphicsLayer.hasTrackedPaintInvalidations()); |
// Forced GC in order to finalize objects depending on the mock object. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
} |
TEST_F(ScrollableAreaTest, InvalidatesNonCompositedScrollbarsWhenThumbMoves) |
@@ -127,7 +127,7 @@ TEST_F(ScrollableAreaTest, InvalidatesNonCompositedScrollbarsWhenThumbMoves) |
scrollableArea->clearNeedsPaintInvalidationForScrollControls(); |
// Forced GC in order to finalize objects depending on the mock object. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
} |
TEST_F(ScrollableAreaTest, InvalidatesCompositedScrollbarsIfPartsNeedRepaint) |
@@ -194,7 +194,7 @@ TEST_F(ScrollableAreaTest, InvalidatesCompositedScrollbarsIfPartsNeedRepaint) |
EXPECT_FALSE(verticalScrollbar->thumbNeedsRepaint()); |
// Forced GC in order to finalize objects depending on the mock object. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
} |
TEST_F(ScrollableAreaTest, RecalculatesScrollbarOverlayIfBackgroundChanges) |