зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1323837 - Draw nothing if there are no color stops for gradient effect, r=bas
MozReview-Commit-ID: BnZlh2NhdHX --HG-- extra : rebase_source : e221cebdb64e55926c63fd105df0a55635b28e19
This commit is contained in:
Родитель
bdb9940208
Коммит
ea69eeb193
|
@ -1380,6 +1380,11 @@ DrawTargetD2D1::FinalizeDrawing(CompositionOp aOp, const Pattern &aPattern)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!pat->mStops) {
|
||||
// Draw nothing because of no color stops
|
||||
return;
|
||||
}
|
||||
|
||||
RefPtr<ID2D1Effect> radialGradientEffect;
|
||||
|
||||
HRESULT hr = mDC->CreateEffect(CLSID_RadialGradientEffect, getter_AddRefs(radialGradientEffect));
|
||||
|
|
Загрузка…
Ссылка в новой задаче