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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index f5f4e687412abb75f1fedd985573016477adad6f..895ab93b181277516cfa76c20f3f3e1e0afdb7c2 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -111,7 +111,7 @@ void LayoutBlock::removeFromGlobalMaps() {
gPositionedDescendantsMap->take(this);
ASSERT(!descendants->isEmpty());
for (LayoutBox* descendant : *descendants) {
- ASSERT(gPositionedContainerMap->get(descendant) == this);
+ ASSERT(gPositionedContainerMap->at(descendant) == this);
gPositionedContainerMap->erase(descendant);
}
}
@@ -972,7 +972,7 @@ void LayoutBlock::setSelectionState(SelectionState state) {
}
TrackedLayoutBoxListHashSet* LayoutBlock::positionedObjectsInternal() const {
- return gPositionedDescendantsMap ? gPositionedDescendantsMap->get(this)
+ return gPositionedDescendantsMap ? gPositionedDescendantsMap->at(this)
: nullptr;
}
@@ -997,7 +997,7 @@ void LayoutBlock::insertPositionedObject(LayoutBox* o) {
if (!gPositionedDescendantsMap)
gPositionedDescendantsMap = new TrackedDescendantsMap;
TrackedLayoutBoxListHashSet* descendantSet =
- gPositionedDescendantsMap->get(this);
+ gPositionedDescendantsMap->at(this);
if (!descendantSet) {
descendantSet = new TrackedLayoutBoxListHashSet;
gPositionedDescendantsMap->set(this, WTF::wrapUnique(descendantSet));
@@ -1016,7 +1016,7 @@ void LayoutBlock::removePositionedObject(LayoutBox* o) {
return;
TrackedLayoutBoxListHashSet* positionedDescendants =
- gPositionedDescendantsMap->get(container);
+ gPositionedDescendantsMap->at(container);
ASSERT(positionedDescendants && positionedDescendants->contains(o));
positionedDescendants->remove(o);
if (positionedDescendants->isEmpty()) {
@@ -1083,7 +1083,7 @@ void LayoutBlock::removePositionedObjects(
}
for (auto object : deadObjects) {
- ASSERT(gPositionedContainerMap->get(object) == this);
+ ASSERT(gPositionedContainerMap->at(object) == this);
positionedDescendants->remove(object);
gPositionedContainerMap->erase(object);
}
@@ -1106,7 +1106,7 @@ void LayoutBlock::addPercentHeightDescendant(LayoutBox* descendant) {
if (!gPercentHeightDescendantsMap)
gPercentHeightDescendantsMap = new TrackedDescendantsMap;
TrackedLayoutBoxListHashSet* descendantSet =
- gPercentHeightDescendantsMap->get(this);
+ gPercentHeightDescendantsMap->at(this);
if (!descendantSet) {
descendantSet = new TrackedLayoutBoxListHashSet;
gPercentHeightDescendantsMap->set(this, WTF::wrapUnique(descendantSet));
@@ -1129,7 +1129,7 @@ void LayoutBlock::removePercentHeightDescendant(LayoutBox* descendant) {
TrackedLayoutBoxListHashSet* LayoutBlock::percentHeightDescendantsInternal()
const {
- return gPercentHeightDescendantsMap ? gPercentHeightDescendantsMap->get(this)
+ return gPercentHeightDescendantsMap ? gPercentHeightDescendantsMap->at(this)
: nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/Grid.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698