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

Unified Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp

Issue 1644543002: Moved element style recalc count and stats to StyleEngine. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/html/shadow/MediaControlsTest.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
index f8fb2620028c530354dbdb30fda796f7a7280364..7259d2e5e29805d3f18cffffb1b547d7dec294a2 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp
@@ -123,12 +123,12 @@ TEST_F(MediaControlsTest, HideAndReset)
TEST_F(MediaControlsTest, ResetDoesNotTriggerInitialLayout)
{
Document& document = this->document();
- int oldResolverCount = document.styleEngine().resolverAccessCount();
+ int oldElementCount = document.styleEngine().styleForElementCount();
// Also assert that there are no layouts yet.
- ASSERT_EQ(0, oldResolverCount);
+ ASSERT_EQ(0, oldElementCount);
mediaControls().reset();
- int newResolverCount = document.styleEngine().resolverAccessCount();
- ASSERT_EQ(oldResolverCount, newResolverCount);
+ int newElementCount = document.styleEngine().styleForElementCount();
+ ASSERT_EQ(oldElementCount, newElementCount);
}
TEST_F(MediaControlsTest, CastButtonRequiresRoute)
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698