mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1274589 - Rename RegionBuilder::Or to RegionBuilder::OrWith for consistency with the region classes. r=jrmuizel
MozReview-Commit-ID: CIzTVKXUVSs
This commit is contained in:
parent
3255b2aed3
commit
9994166655
@ -387,7 +387,7 @@ struct RegionParamTraits
|
||||
*result = builder.ToRegion();
|
||||
return true;
|
||||
}
|
||||
builder.Or(rect);
|
||||
builder.OrWith(rect);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
RegionBuilder()
|
||||
{}
|
||||
|
||||
void Or(const RectType& aRect) {
|
||||
void OrWith(const RectType& aRect) {
|
||||
pixman_box32_t box = { aRect.x, aRect.y, aRect.XMost(), aRect.YMost() };
|
||||
mRects.AppendElement(box);
|
||||
}
|
||||
|
@ -719,13 +719,13 @@ void BenchRegionBuilderOr() {
|
||||
|
||||
RegionBuilder<nsRegion> r;
|
||||
for (int i = 0; i < size; i++) {
|
||||
r.Or(nsRect(i, i, i + 10, i + 10));
|
||||
r.OrWith(nsRect(i, i, i + 10, i + 10));
|
||||
}
|
||||
r.ToRegion();
|
||||
|
||||
RegionBuilder<nsIntRegion> rInt;
|
||||
for (int i = 0; i < size; i++) {
|
||||
rInt.Or(nsIntRect(i, i, i + 10, i + 10));
|
||||
rInt.OrWith(nsIntRect(i, i, i + 10, i + 10));
|
||||
}
|
||||
rInt.ToRegion();
|
||||
}
|
||||
|
@ -9068,7 +9068,7 @@ nsLayoutUtils::TransformToAncestorAndCombineRegions(
|
||||
for (nsRegion::RectIterator it = aRegion.RectIter(); !it.Done(); it.Next()) {
|
||||
nsRect transformed = TransformFrameRectToAncestor(
|
||||
aFrame, it.Get(), aAncestorFrame, &isPrecise, aMatrixCache);
|
||||
transformedRegion.Or(transformed);
|
||||
transformedRegion.OrWith(transformed);
|
||||
}
|
||||
nsRegion* dest = isPrecise ? aPreciseTargetDest : aImpreciseTargetDest;
|
||||
dest->OrWith(transformedRegion.ToRegion());
|
||||
|
Loading…
Reference in New Issue
Block a user