mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 11:37:30 +09:00
Extend origin-clean algorithm (DiD).
This commit is contained in:
parent
90966a20a1
commit
ac1a607eb0
2 changed files with 8 additions and 3 deletions
|
|
@ -6329,6 +6329,13 @@ CanvasRenderingContext2D::ShouldForceInactiveLayer(LayerManager* aManager)
|
||||||
return !aManager->CanUseCanvasLayerForSize(GetSize());
|
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_ROOT_NATIVE(CanvasPath, AddRef)
|
||||||
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(CanvasPath, Release)
|
NS_IMPL_CYCLE_COLLECTION_UNROOT_NATIVE(CanvasPath, Release)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1156,9 +1156,7 @@ protected:
|
||||||
|
|
||||||
// For the origin-clean algorithm (mWriteOnly == !origin-clean)
|
// For the origin-clean algorithm (mWriteOnly == !origin-clean)
|
||||||
// See https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html
|
// See https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html
|
||||||
void SetWriteOnly() {
|
void SetWriteOnly();
|
||||||
mWriteOnly = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool IsWriteOnly() const {
|
bool IsWriteOnly() const {
|
||||||
return mWriteOnly;
|
return mWriteOnly;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue