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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollableAreaTest.cpp

Issue 2321223003: Revert of Move collectGarbage* methods to ThreadState (Closed)
Patch Set: Created 4 years, 3 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/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)

Powered by Google App Engine
This is Rietveld 408576698