| 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 e623cca032b4e13a1be6272c66e243ce6455b924..4e353baa7cf8de97cfb85574ca76d46262beafd4 100644
|
| --- a/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/StyleEngineTest.cpp
|
| @@ -116,7 +116,8 @@ TEST_F(StyleEngineTest, TextToSheetCache) {
|
| CSSStyleSheet* sheet2 =
|
| styleEngine().createSheet(*element, sheetText, minPos, context);
|
|
|
| - // Check that the second sheet uses the cached StyleSheetContents for the first.
|
| + // Check that the second sheet uses the cached StyleSheetContents for the
|
| + // first.
|
| EXPECT_EQ(sheet1->contents(), sheet2->contents());
|
| EXPECT_TRUE(sheet2->contents()->isUsedFromTextCache());
|
|
|
| @@ -124,13 +125,15 @@ TEST_F(StyleEngineTest, TextToSheetCache) {
|
| sheet2 = nullptr;
|
| element = nullptr;
|
|
|
| - // Garbage collection should clear the weak reference in the StyleSheetContents cache.
|
| + // Garbage collection should clear the weak reference in the
|
| + // StyleSheetContents cache.
|
| ThreadState::current()->collectAllGarbage();
|
|
|
| element = HTMLStyleElement::create(document(), false);
|
| sheet1 = styleEngine().createSheet(*element, sheetText, minPos, context);
|
|
|
| - // Check that we did not use a cached StyleSheetContents after the garbage collection.
|
| + // Check that we did not use a cached StyleSheetContents after the garbage
|
| + // collection.
|
| EXPECT_FALSE(sheet1->contents()->isUsedFromTextCache());
|
| }
|
|
|
|
|