Index: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
diff --git a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
index 440b7a824da5dbe648bedd182b8aeccdf7dd1506..f40e71e9c02545d88505e3122a8c3dc8e1c6da10 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp |
@@ -93,7 +93,7 @@ TEST_F(StyleEngineTest, TextToSheetCache) |
element = nullptr; |
// Garbage collection should clear the weak reference in the StyleSheetContents cache. |
- ThreadHeap::collectAllGarbage(); |
+ ThreadState::current()-> collectAllGarbage(); |
element = HTMLStyleElement::create(document(), false); |
sheet1 = styleEngine().createSheet(element, sheetText, minPos, context); |