mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-09 09:18:42 +09:00
patch to Bug 1363423
This commit is contained in:
parent
87dabd6682
commit
aaa28cd3d5
1 changed files with 5 additions and 0 deletions
|
|
@ -3648,6 +3648,10 @@ PaintedLayerData::AccumulateEventRegions(ContainerState* aState, nsDisplayLayerE
|
||||||
if (alreadyHadRegions) {
|
if (alreadyHadRegions) {
|
||||||
mDispatchToContentHitRegion.OrWith(CombinedTouchActionRegion());
|
mDispatchToContentHitRegion.OrWith(CombinedTouchActionRegion());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Avoid quadratic performance as a result of the region growing to include
|
||||||
|
// and arbitrarily large number of rects, which can happen on some pages.
|
||||||
|
mMaybeHitRegion.SimplifyOutward(8);
|
||||||
|
|
||||||
// Calculate scaled versions of the bounds of mHitRegion and mMaybeHitRegion
|
// Calculate scaled versions of the bounds of mHitRegion and mMaybeHitRegion
|
||||||
// for quick access in FindPaintedLayerFor().
|
// for quick access in FindPaintedLayerFor().
|
||||||
|
|
@ -6368,3 +6372,4 @@ ContainerState::CreateMaskLayer(Layer *aLayer,
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue