зеркало из https://github.com/mozilla/gecko-dev.git
Bug 547924. Paint <canvas> using EXTEND_PAD to prevent seams. r=vlad
This commit is contained in:
Родитель
96fcae4c10
Коммит
d7e60623a4
|
@ -1030,6 +1030,7 @@ nsCanvasRenderingContext2D::Render(gfxContext *ctx, gfxPattern::GraphicsFilter a
|
|||
nsRefPtr<gfxPattern> pat = new gfxPattern(mSurface);
|
||||
|
||||
pat->SetFilter(aFilter);
|
||||
pat->SetExtend(gfxPattern::EXTEND_PAD);
|
||||
|
||||
gfxContext::GraphicsOperator op = ctx->CurrentOperator();
|
||||
if (mOpaque)
|
||||
|
|
|
@ -489,6 +489,7 @@ BasicCanvasLayer::Paint(gfxContext* aContext)
|
|||
nsRefPtr<gfxPattern> pat = new gfxPattern(mSurface);
|
||||
|
||||
pat->SetFilter(mFilter);
|
||||
pat->SetExtend(gfxPattern::EXTEND_PAD);
|
||||
|
||||
gfxRect r(0, 0, mBounds.width, mBounds.height);
|
||||
gfxMatrix m;
|
||||
|
|
Загрузка…
Ссылка в новой задаче