зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1528909 - cross-origin checks in CanvasRenderingContext2D::DrawImage, r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D20350 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
dc1879093e
Коммит
50d28b2321
|
@ -5733,6 +5733,13 @@ bool CanvasRenderingContext2D::ShouldForceInactiveLayer(
|
|||
return !aManager->CanUseCanvasLayerForSize(GetSize());
|
||||
}
|
||||
|
||||
void CanvasRenderingContext2D::SetWriteOnly() {
|
||||
mWriteOnly = true;
|
||||
if (mCanvasElement) {
|
||||
mCanvasElement->SetWriteOnly();
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_ROOT_NATIVE(CanvasPath, AddRef)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(CanvasPath, Release)
|
||||
|
||||
|
|
|
@ -1114,7 +1114,7 @@ class CanvasRenderingContext2D final : public nsICanvasRenderingContextInternal,
|
|||
friend class CanvasDrawObserver;
|
||||
friend class ImageBitmap;
|
||||
|
||||
void SetWriteOnly() { mWriteOnly = true; }
|
||||
void SetWriteOnly();
|
||||
|
||||
bool IsWriteOnly() const { return mWriteOnly; }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче