mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-21 02:35:21 +00:00
11cc44fa89
The gecko have two types of mask layer: css mask layer and the regular mask layer. The hash key of ContainerState::mRecycledMaskImageLayers doesn't contain mask type. So, we might get a css mask layer when we try to get a regular mask layer. Then, we will get a nullptr of userData. This patch add a userData checking in ContainerState::CreateOrRecycleMaskImageLayerFor() to avoid the problem. MozReview-Commit-ID: EEUhkctqwR2