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

Unified Diff: third_party/WebKit/Source/core/dom/StyleEngineTest.cpp

Issue 2307003002: Move collectGarbage* methods to ThreadState (Closed)
Patch Set: fix 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/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);

Powered by Google App Engine
This is Rietveld 408576698