зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1192159: Do not forget about the transform when not using an active target. r=jrmuizel
This commit is contained in:
Родитель
7c28c879fe
Коммит
7441c8825d
|
@ -1204,6 +1204,9 @@ bool CanvasRenderingContext2D::SwitchRenderingMode(RenderingMode aRenderingMode)
|
|||
transform = mTarget->GetTransform();
|
||||
} else {
|
||||
MOZ_ASSERT(mBufferProvider);
|
||||
// When mBufferProvider is true but we have no mTarget, our current state's
|
||||
// transform is always valid. See ReturnTarget().
|
||||
transform = CurrentState().transform;
|
||||
snapshot = mBufferProvider->GetSnapshot();
|
||||
}
|
||||
mTarget = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче