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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 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());
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698