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

Unified Diff: third_party/WebKit/Source/core/css/AffectedByFocusTest.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp
diff --git a/third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp b/third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp
index 36ce9e1c3aaf8f044960d39fa65eea50db3a0a93..682de1c8504d73b670dc4d0e150a2078ca9f648e 100644
--- a/third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp
+++ b/third_party/WebKit/Source/core/css/AffectedByFocusTest.cpp
@@ -206,14 +206,14 @@ TEST_F(AffectedByFocusTest, AffectedByFocusUpdate)
document().view()->updateAllLifecyclePhases();
- unsigned startCount = document().styleEngine().resolverAccessCount();
+ unsigned startCount = document().styleEngine().styleForElementCount();
document().getElementById("d")->focus();
document().view()->updateAllLifecyclePhases();
- unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document().styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(1U, accessCount);
+ ASSERT_EQ(1U, elementCount);
}
TEST_F(AffectedByFocusTest, ChildrenOrSiblingsAffectedByFocusUpdate)
@@ -237,14 +237,14 @@ TEST_F(AffectedByFocusTest, ChildrenOrSiblingsAffectedByFocusUpdate)
document().view()->updateAllLifecyclePhases();
- unsigned startCount = document().styleEngine().resolverAccessCount();
+ unsigned startCount = document().styleEngine().styleForElementCount();
document().getElementById("d")->focus();
document().view()->updateAllLifecyclePhases();
- unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document().styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(11U, accessCount);
+ ASSERT_EQ(11U, elementCount);
}
TEST_F(AffectedByFocusTest, InvalidationSetFocusUpdate)
@@ -268,14 +268,14 @@ TEST_F(AffectedByFocusTest, InvalidationSetFocusUpdate)
document().view()->updateAllLifecyclePhases();
- unsigned startCount = document().styleEngine().resolverAccessCount();
+ unsigned startCount = document().styleEngine().styleForElementCount();
document().getElementById("d")->focus();
document().view()->updateAllLifecyclePhases();
- unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document().styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(2U, accessCount);
+ ASSERT_EQ(2U, elementCount);
}
TEST_F(AffectedByFocusTest, NoInvalidationSetFocusUpdate)
@@ -300,14 +300,14 @@ TEST_F(AffectedByFocusTest, NoInvalidationSetFocusUpdate)
document().view()->updateAllLifecyclePhases();
- unsigned startCount = document().styleEngine().resolverAccessCount();
+ unsigned startCount = document().styleEngine().styleForElementCount();
document().getElementById("d")->focus();
document().view()->updateAllLifecyclePhases();
- unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document().styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(1U, accessCount);
+ ASSERT_EQ(1U, elementCount);
}
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698