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

Unified Diff: Source/core/css/AffectedByFocusTest.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/AffectedByFocusTest.cpp
diff --git a/Source/core/css/AffectedByFocusTest.cpp b/Source/core/css/AffectedByFocusTest.cpp
index 73f9aff7e6dd7c1596e033da3263508334b7a318..9198abc4ea353f460b8d52bda73d7e49c410443a 100644
--- a/Source/core/css/AffectedByFocusTest.cpp
+++ b/Source/core/css/AffectedByFocusTest.cpp
@@ -210,12 +210,12 @@ TEST_F(AffectedByFocusTest, AffectedByFocusUpdate)
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned startCount = document().styleEngine()->resolverAccessCount();
+ unsigned startCount = document().styleEngine().resolverAccessCount();
document().getElementById("d")->focus();
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned accessCount = document().styleEngine()->resolverAccessCount() - startCount;
+ unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
ASSERT_EQ(1U, accessCount);
}
@@ -241,12 +241,12 @@ TEST_F(AffectedByFocusTest, ChildrenOrSiblingsAffectedByFocusUpdate)
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned startCount = document().styleEngine()->resolverAccessCount();
+ unsigned startCount = document().styleEngine().resolverAccessCount();
document().getElementById("d")->focus();
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned accessCount = document().styleEngine()->resolverAccessCount() - startCount;
+ unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
ASSERT_EQ(11U, accessCount);
}
@@ -272,12 +272,12 @@ TEST_F(AffectedByFocusTest, InvalidationSetFocusUpdate)
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned startCount = document().styleEngine()->resolverAccessCount();
+ unsigned startCount = document().styleEngine().resolverAccessCount();
document().getElementById("d")->focus();
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned accessCount = document().styleEngine()->resolverAccessCount() - startCount;
+ unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
ASSERT_EQ(2U, accessCount);
}
@@ -304,12 +304,12 @@ TEST_F(AffectedByFocusTest, NoInvalidationSetFocusUpdate)
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned startCount = document().styleEngine()->resolverAccessCount();
+ unsigned startCount = document().styleEngine().resolverAccessCount();
document().getElementById("d")->focus();
document().view()->updateLayoutAndStyleIfNeededRecursive();
- unsigned accessCount = document().styleEngine()->resolverAccessCount() - startCount;
+ unsigned accessCount = document().styleEngine().resolverAccessCount() - startCount;
ASSERT_EQ(1U, accessCount);
}
« no previous file with comments | « no previous file | Source/core/css/DragUpdateTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698