mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Issue #2711 - Apply pattern transforms when using text-rendering on canvas.
Resolves #2711
This commit is contained in:
parent
6449b7514b
commit
6411abd43c
1 changed files with 1 additions and 1 deletions
|
|
@ -4171,7 +4171,7 @@ struct MOZ_STACK_CLASS CanvasBidiProcessor : public nsBidiPresUtils::BidiProcess
|
|||
already_AddRefed<gfxPattern> GetPatternFor(Style aStyle)
|
||||
{
|
||||
const CanvasPattern* pat = mCtx->CurrentState().patternStyles[aStyle];
|
||||
RefPtr<gfxPattern> pattern = new gfxPattern(pat->mSurface, Matrix());
|
||||
RefPtr<gfxPattern> pattern = new gfxPattern(pat->mSurface, pat->mTransform);
|
||||
pattern->SetExtend(CvtCanvasRepeatToGfxRepeat(pat->mRepeat));
|
||||
return pattern.forget();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue