зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1267438 - Use IntersectMaybeRects() in Layer::GetCombinedClipRect(). r=mstange
MozReview-Commit-ID: 5DkpzyFrDQ0 --HG-- extra : rebase_source : 02074a9ea70bb33ded2cc592b4e29bd8f5e79969 extra : source : 1065434be718ec94d30480100f1c409cc446c6ac extra : histedit_source : 8d9d4d7c203c20a73838c7bdbe8849dd5f23333a
This commit is contained in:
Родитель
ac6f5350a0
Коммит
dde17de868
|
@ -1101,16 +1101,7 @@ Layer::GetCombinedClipRect() const
|
|||
Maybe<ParentLayerIntRect> clip = GetClipRect();
|
||||
|
||||
for (size_t i = 0; i < mScrollMetadata.Length(); i++) {
|
||||
if (!mScrollMetadata[i].HasClipRect()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const ParentLayerIntRect& other = mScrollMetadata[i].ClipRect();
|
||||
if (clip) {
|
||||
clip = Some(clip.value().Intersect(other));
|
||||
} else {
|
||||
clip = Some(other);
|
||||
}
|
||||
clip = IntersectMaybeRects(clip, mScrollMetadata[i].GetClipRect());
|
||||
}
|
||||
|
||||
return clip;
|
||||
|
|
Загрузка…
Ссылка в новой задаче