зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1077358 - Clip BasicColorLayer drawing to the layer's bounds. r=Bas
This commit is contained in:
Родитель
4c6fa36735
Коммит
603aed5594
|
@ -62,9 +62,12 @@ public:
|
|||
snapped = mat.TransformBounds(snapped);
|
||||
}
|
||||
|
||||
// Clip drawing in case we're using (unbounded) operator source.
|
||||
aDT->PushClipRect(snapped);
|
||||
FillRectWithMask(aDT, aDeviceOffset, snapped, ToColor(mColor),
|
||||
DrawOptions(GetEffectiveOpacity(), GetEffectiveOperator(this)),
|
||||
aMaskLayer);
|
||||
aDT->PopClip();
|
||||
}
|
||||
|
||||
protected:
|
||||
|
|
Загрузка…
Ссылка в новой задаче