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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 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
Index: third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp
index da695cb4d2a84a6d2b587065a7a03288bb9adb7c..35ef1a0108a6167f1d37205ac67bcca1f71393dc 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp
@@ -142,15 +142,15 @@ const static float kTestEpsilon = 1e-6;
localPropertyTreeState.transform()) { \
EXPECT_EQ(expectedTransformToAncestor, \
getTransformCache(ancestorPropertyTreeState) \
- .get(localPropertyTreeState.transform())); \
+ .at(localPropertyTreeState.transform())); \
} \
if (ancestorPropertyTreeState.clip() != localPropertyTreeState.clip()) { \
EXPECT_EQ(expectedClipInAncestorSpace, \
getClipCache(ancestorPropertyTreeState) \
- .get(localPropertyTreeState.clip())) \
+ .at(localPropertyTreeState.clip())) \
<< expectedClipInAncestorSpace.rect().toString() << " " \
<< getClipCache(ancestorPropertyTreeState) \
- .get(localPropertyTreeState.clip()) \
+ .at(localPropertyTreeState.clip()) \
.rect() \
.toString(); \
} \
@@ -266,7 +266,7 @@ TEST_F(GeometryMapperTest, NestedTransforms) {
// Check the cached matrix for the intermediate transform.
EXPECT_EQ(rotateTransform,
- getTransformCache(rootPropertyTreeState()).get(transform1.get()));
+ getTransformCache(rootPropertyTreeState()).at(transform1.get()));
}
TEST_F(GeometryMapperTest, NestedTransformsScaleAndTranslation) {
@@ -296,9 +296,10 @@ TEST_F(GeometryMapperTest, NestedTransformsScaleAndTranslation) {
rootPropertyTreeState(), hasRadius);
// Check the cached matrix for the intermediate transform.
- EXPECT_EQ(scaleTransform, getTransformCache(rootPropertyTreeState())
+ EXPECT_EQ(scaleTransform,
+ getTransformCache(rootPropertyTreeState())
- .get(transform1.get()));
+ .at(transform1.get()));
}
TEST_F(GeometryMapperTest, NestedTransformsIntermediateDestination) {

Powered by Google App Engine
This is Rietveld 408576698