зеркало из https://github.com/mozilla/gecko-dev.git
Bug 966996 - Clamp the gradient extents to the current clip extents so that we don't compute unseen gradient stops. r=jrmuizel
--HG-- extra : rebase_source : 5ccf62603305ff2d88c98512e795fed87badc2c8
This commit is contained in:
Родитель
788246cd20
Коммит
74facd2be0
|
@ -842,7 +842,8 @@ DrawTargetCG::FillRect(const Rect &aRect,
|
|||
|
||||
if (isGradient(aPattern)) {
|
||||
CGContextClipToRect(cg, RectToCGRect(aRect));
|
||||
DrawGradient(cg, aPattern, RectToCGRect(aRect));
|
||||
CGRect clipBounds = CGContextGetClipBoundingBox(cg);
|
||||
DrawGradient(cg, aPattern, clipBounds);
|
||||
} else {
|
||||
if (aPattern.GetType() == PatternType::SURFACE && static_cast<const SurfacePattern&>(aPattern).mExtendMode != ExtendMode::REPEAT) {
|
||||
// SetFillFromPattern can handle this case but using CGContextDrawImage
|
||||
|
|
Загрузка…
Ссылка в новой задаче