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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.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/core/layout/LayoutBoxModelObjectTest.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp b/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
index ca16f0c6be9a2f1ec16ff0bf5dd4f3dcc545b033..3359eef6f5ec62245ce06fb09c3f5135a2333673 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp
@@ -53,7 +53,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionConstraints) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
// The coordinates of the constraint rects should all be with respect to the
@@ -95,7 +95,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionVerticalRLConstraints) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
// The coordinates of the constraint rects should all be with respect to the
@@ -137,7 +137,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionTransforms) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
// The coordinates of the constraint rects should all be with respect to the
@@ -174,7 +174,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionPercentageStyles) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(0.f, constraints.topOffset());
ASSERT_EQ(IntRect(25, 145, 200, 330),
@@ -208,7 +208,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionContainerIsScroller) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(IntRect(0, 0, 400, 1100),
enclosingIntRect(
getScrollContainerRelativeContainingBlockRect(constraints)));
@@ -243,7 +243,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionAnonymousContainer) {
ASSERT_EQ(scroller->layer(), sticky->layer()->ancestorOverflowLayer());
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
ASSERT_EQ(IntRect(15, 115, 170, 370),
enclosingIntRect(
getScrollContainerRelativeContainingBlockRect(constraints)));
@@ -271,7 +271,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionTableContainers) {
toLayoutBoxModelObject(getLayoutObjectByElementId("sticky"));
sticky->updateStickyPositionConstraints();
const StickyPositionScrollingConstraints& constraints =
- scrollableArea->stickyConstraintsMap().get(sticky->layer());
+ scrollableArea->stickyConstraintsMap().at(sticky->layer());
EXPECT_EQ(IntRect(0, 0, 50, 100),
enclosingIntRect(
getScrollContainerRelativeContainingBlockRect(constraints)));
@@ -308,7 +308,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionConstraintInvalidation) {
EXPECT_TRUE(scrollableArea->stickyConstraintsMap().contains(sticky->layer()));
EXPECT_EQ(25.f,
getScrollContainerRelativeStickyBoxRect(
- scrollableArea->stickyConstraintsMap().get(sticky->layer()))
+ scrollableArea->stickyConstraintsMap().at(sticky->layer()))
.location()
.x());
toHTMLElement(target->node())->classList().add("hide", ASSERT_NO_EXCEPTION);
@@ -323,7 +323,7 @@ TEST_F(LayoutBoxModelObjectTest, StickyPositionConstraintInvalidation) {
document().view()->updateAllLifecyclePhases();
EXPECT_EQ(50.f,
getScrollContainerRelativeStickyBoxRect(
- scrollableArea->stickyConstraintsMap().get(sticky->layer()))
+ scrollableArea->stickyConstraintsMap().at(sticky->layer()))
.location()
.x());
}

Powered by Google App Engine
This is Rietveld 408576698