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