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

Unified Diff: third_party/WebKit/Source/core/css/DragUpdateTest.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/css/DragUpdateTest.cpp
diff --git a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
index 411cb99c8e9c7b7037780b1205e57f58f5c1a00d..df874f60c7f2206e777b5a207dcbc10139b236cf 100644
--- a/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
+++ b/third_party/WebKit/Source/core/css/DragUpdateTest.cpp
@@ -29,14 +29,14 @@ TEST(DragUpdateTest, AffectedByDragUpdate)
"</div>", ASSERT_NO_EXCEPTION);
document.view()->updateAllLifecyclePhases();
- unsigned startCount = document.styleEngine().resolverAccessCount();
+ unsigned startCount = document.styleEngine().styleForElementCount();
document.documentElement()->layoutObject()->updateDragState(true);
document.view()->updateAllLifecyclePhases();
- unsigned accessCount = document.styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document.styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(1U, accessCount);
+ ASSERT_EQ(1U, elementCount);
}
TEST(DragUpdateTest, ChildAffectedByDragUpdate)
@@ -55,14 +55,14 @@ TEST(DragUpdateTest, ChildAffectedByDragUpdate)
"</div>", ASSERT_NO_EXCEPTION);
document.updateLayout();
- unsigned startCount = document.styleEngine().resolverAccessCount();
+ unsigned startCount = document.styleEngine().styleForElementCount();
document.documentElement()->layoutObject()->updateDragState(true);
document.updateLayout();
- unsigned accessCount = document.styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document.styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(1U, accessCount);
+ ASSERT_EQ(1U, elementCount);
}
TEST(DragUpdateTest, SiblingAffectedByDragUpdate)
@@ -82,14 +82,14 @@ TEST(DragUpdateTest, SiblingAffectedByDragUpdate)
"<span class='drag'></span>", ASSERT_NO_EXCEPTION);
document.updateLayout();
- unsigned startCount = document.styleEngine().resolverAccessCount();
+ unsigned startCount = document.styleEngine().styleForElementCount();
document.documentElement()->layoutObject()->updateDragState(true);
document.updateLayout();
- unsigned accessCount = document.styleEngine().resolverAccessCount() - startCount;
+ unsigned elementCount = document.styleEngine().styleForElementCount() - startCount;
- ASSERT_EQ(1U, accessCount);
+ ASSERT_EQ(1U, elementCount);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698